webMethods

webMethods

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

classCastException when appending to StringList

  • 1.  classCastException when appending to StringList

    Posted Sat February 22, 2014 03:24 AM

    Hi Team,

    I am getting classCastException when appending string to StringList.Before this step,i am checking index of a string and the result is 1192.If the index is >0 then I am appending the required string to StringList.But while doing this I am getting an error like "classCastException cannot convert java.lang.string to [L]java.lang.string.
    Please help me out.

    Thanks,
    Ramesh


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: classCastException when appending to StringList

    Posted Sat February 22, 2014 05:42 AM

    Hi Ramesh,

    I did understand that you are trying to append string to stringList and you have some logic on index value. If index is greater than one append string to stringList. Correct me if i am wrong 8)

    If possible can you share me the screen shot of the flow code.

    And also have a look at the link


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: classCastException when appending to StringList

    Posted Sat February 22, 2014 12:04 PM

    Thanks Mahesh.

    I got the reason where i am going wrong.

    Thanks,
    Ramesh


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: classCastException when appending to StringList

    Posted Sat February 22, 2014 12:27 PM

    Ramesh,
    Can you tell us what was the reason?


    #webMethods
    #Integration-Server-and-ESB