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.

 View Only
Expand all | Collapse all

java.lang.NumberFormatException: For input string: " "

  • 1.  java.lang.NumberFormatException: For input string: " "

    Posted Tue September 14, 2010 10:41 AM

    Hi all,
    We are facing issue with java.lang.NumberFormatException: For input string: " " . the error that we are getting looks like below.

    java.lang.NumberFormatException: For input string: " "
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)


    Due to this we are getting lot of alert emails from the server. Pls tell me the possible solution for this issue.

    thanks


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


  • 2.  RE: java.lang.NumberFormatException: For input string: " "

    Posted Tue September 14, 2010 12:13 PM

    for input string you are giving string like 123absd but it should be number like 123345 should not contain string for any chars .


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


  • 3.  RE: java.lang.NumberFormatException: For input string: " "

    Posted Tue September 14, 2010 01:29 PM

    You must be using some “math” function (eg: pub.math:addInts) in your flow that has at least one mandatory input parameter, which should be a numeric value and since you are passing a blank string its throwing you NumberFormatException.


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


  • 4.  RE: java.lang.NumberFormatException: For input string: " "

    Posted Wed September 15, 2010 07:12 AM

    Thanks for the posts,

    Issue has been resolved now. problem was with the empty space which was hard coded. :slight_smile:


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