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.  Internal error while comparing two strings

    Posted 07/23/08 07:14 AM

    Hi everyone,

    Did anyone of you encounter an internal error when trying to compare an arbitrary string to ‘.’? We are running wm 6.1.

    You can try it yourself, simply create a small flow:

    str1 = ABCDE
    str2 = .

    BRANCH (Evaluate labels = true)
    SEQUENCE (%str1% = %str2%)

    If you debug it, it will throw an ‘Internal Exception’ ([ITU.0001.0001]), if you just run it, it will throw:

    ‘java.lang.StringIndexOutOfBoundsException: String index out of range: 1’

    The workaround is easy (i just wrote a small java string compare), but it should not be necessary!

    Maybe webMethods interprets the ‘.’ as a number and internally tries to cast the string into a float?

    Any ideas :confused:?

    Thanks a lot for any suggestion!
    Best regards,
    Marcus


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


  • 2.  RE: Internal error while comparing two strings

    Posted 07/23/08 09:04 AM


  • 3.  RE: Internal error while comparing two strings

    Posted 07/24/08 11:31 AM

    Hi Rama,

    it’s not happening in a java service, my description above was describing the structure of a flow service.

    Just create a simple flow service according to the described structure.

    Best regards,
    Marcus


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


  • 4.  RE: Internal error while comparing two strings

    Posted 07/25/08 12:32 AM

    Seems like a possible bug. You probably want to open a service request with tech support. Unfortunately, the first thing they’ll probably want you to do is upgrade to a more recent version. Have you tried this on another version? I ran this on 6.5 SP2 on Win XP and had no trouble.


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