Skip to main content

Need help: ArrayIndexOutOfBound Exception - Jaxb 2.1.13

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2013-05-02

Hi All,

I am facing ArrayIndex out of bound issue while marshaling a xml request. It works sometimes and sometimes it does not work and throws exception. If i am sending a single request it works but when it is running in a a part of parallel threads it throws exception.

Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at com.sun.xml.bind.v2.util.CollisionCheckStack.pushNocheck(
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(
at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(
at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(

I am using jaxb-impl-2.1.13 for marshaling.