ivy 5.0.9 I created an Helper Class which should serialize / deserialize a Java Bean with the java.beans.XMLEncoder / XMLDecoder Class. Serialization works great, but if I want to deserialize the xml string within an Ivy Script Element, I got the following Error: java.lang.ArrayIndexOutOfBoundsException: 0 If I do the deserialization within the Helper Class itself (as described as follows), the deserialization works great. Is there a way to bring it working within the Ivy Script Step? Thanks in advance for your ideas... Helper Class "decode"
Calling the method using Ivy Script Step (Not working)
Calling the method directly in the Helper Class by main method (Works great)
} Bean Employee (in ivy located under /src/test/entity )
} asked 24.02.2014 at 14:24 Stefan Flavio Sadeghi ♦♦ |
Hi Peter I did the serialization/deserialization with another - free available - library: the simple-xml. With it, it works without any problems and quite fast. The library is available at Thanks and regards, Stefan answered 28.03.2014 at 13:13 Stefan Flavio Sadeghi ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 24.02.2014 at 14:24
Seen: 4,186 times
Last updated: 28.03.2014 at 13:57
Hi Stefan, could you please provide a stacktrace of the ArrayIndexOutOfBoundsException? Also: if you log the in.usrData is the String in the right format or is it somehow escaped?