IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

PSUtilities.misc:makeSystemCall java Service is not running

  • 1.  PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/03/13 11:32 AM

    Hi All,

    I want to call windows(cmd) command in webMethods developer so that i am using makeSystemCall service from PSUtilities package but whenever i am trying to run this service i am getting below error:

    Could not run ‘makeSystemCall’.

    java.lang.NullPointerException

    Can anyone please help me on this it’s really very urgent.

    webMethods version :- 8.0
    IntegrationServer :- Solaris 10

    command :- cmd /c ping ‘some address’ -t

    I have disable the config entry code in java service so i hope no need to edit config file.

    Please HELP!!!

    Warm Regards,
    Yogesh Bhandari


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/03/13 03:53 PM

    Try using executeOSCommand which is available in WmPublic…


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/03/13 05:24 PM

    But executeOSCommand is used to execute shell script or OS(IntegraionServer) command…rit??


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/03/13 06:24 PM

    It can run anything. It is simply creating an OS shell and running whatever command-line you pass.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 5.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/04/13 04:45 PM

    But it is also throwing below error when i am passing cmd /c ping ‘server’ -t as command

    Could not run ‘executeOSCommand’

    Java.io.IOException: Cannot run program “executeOSCommand”: error=2, No such file or directory


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 6.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/04/13 06:20 PM

    Drop the cmd /c part from the command. That’s for Windows. You said your IS is running on Solaris. Just do ping host

    If you use the -t options you’ll need to specify a ttl.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/07/13 06:32 AM

    Yes IS is running on Solaris…but my main concern is to override the IS layer and invoke cmd command from flow service…Can you assist??


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 8.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/07/13 06:32 PM

    You cannot “override” the “IS layer.” All services run on IS, nowhere else. You cannot invoke “cmd” on Solaris–it doesn’t exist.

    It is quite common for those new to Developer/IS to believe that services run in Developer run locally. They do not. They run on IS. Always. There is no way to change that.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 9.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/08/13 07:54 AM

    Thanks Reamon…So it is not possible to call cmd Command from Developer…:frowning:


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 10.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/08/13 08:30 AM

    No. Developer cannot be used to call anything at all. It doesn’t run the services. IS does.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 11.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/09/13 09:25 AM


  • 12.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/12/13 01:45 PM

    create a java service to call the dos command and you should be ok
    Sorry for the 10 years diference…


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 13.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/12/13 10:32 PM

    He doesn’t need to create a Java service. There is already one available. Developer does not execute services. IS does. So only commands & programs on the IS host can be executed using the services identified in this thread.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 14.  RE: PSUtilities.misc:makeSystemCall java Service is not running

    Posted 01/13/13 10:50 AM

    Yes, Reamon is right…i tried to write java service in developer but getting same error message…:frowning:


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB