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
  • 1.  problem with java.lang.NullPointerException

    Posted 02/27/06 09:05 AM

    hello, dear all.
    I’ve met another wired problem.
    When i run the wm service, there is a java.lang.NullPointerException error returned.
    Then I trace the service step by step and found this error occured when doing the getCurrentDateString service. I set the format to:yyyyMMdd_HHmmss and left other parameters empty. It’s wired that when I disabled this step or moved it to another place( say at the beginning of the service) , everything works fine. By the way, i used getCurrentDateString in the transformer. I don’t know whether this matteres.
    Thanks& regards.
    Nancy


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


  • 2.  RE: problem with java.lang.NullPointerException

    Posted 02/27/06 07:34 PM

    hi Nancy

    Does your transformer happen to be in a loop? If so, try calling the getCurrentDateString as a step, rather than a transformer in a map step.

    There always seems to be problems with transformers in loops. This thread is just an example: [url]wmusers.com

    Just a thought,
    Cort


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


  • 3.  RE: problem with java.lang.NullPointerException

    Posted 03/01/06 02:51 AM

    Thanks Cort
    But neither of the parameter is a loop. It’s just a simple set value operation like currentDate=getCurrentDateString( sysdate, ‘yyyyMMddHHmmss’).

    Nancy


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


  • 4.  RE: problem with java.lang.NullPointerException

    Posted 03/01/06 04:42 PM

    after setting the variable to current date are u populating it in a database table ,if so check the date format accepted by the database. bec i just checked the getdatestring and it gives me the perfect string.
    HTH
    sri


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