0 Replies Latest reply: Apr 24, 2012 2:20 PM by joe_boy12 RSS

ESB Message Deserialization Exception

joe_boy12 Novice

my sample code throws following Exception when I try to de-serialize the message from a JBM queue which. Any guesses it works most of the times but fails few times - some XMLs have custom namespace inside.

 

java.io.IOException: Util.deserialize caught XMLStreamException

        at org.jboss.soa.esb.util.Util.deserialize(Util.java:225)

        at com.abc.esb.client.DLQJDBCTest.start(DLQJDBCTest.java:109)

        at com.abc.esb.client.DLQJDBCTest.main(DLQJDBCTest.java:47)

Caused by: javax.xml.stream.XMLStreamException: Namespace URI  specified did not match with current namespace URI

        at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.require(XMLStreamReaderImpl.java:1084)

        at org.jboss.internal.soa.esb.util.stax.StreamHelper.checkEndTag(StreamHelper.java:348)

        at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:72)

        at org.jboss.internal.soa.esb.message.format.xml.CallImpl.<init>(CallImpl.java:73)

        at org.jboss.internal.soa.esb.message.format.xml.HeaderImpl.<init>(HeaderImpl.java:55)

        at org.jboss.internal.soa.esb.message.format.xml.MessageImpl.putElement(MessageImpl.java:251)

        at org.jboss.internal.soa.esb.util.stax.ParsingSupport.parse(ParsingSupport.java:68)

        at org.jboss.internal.soa.esb.message.format.xml.MessageImpl.<init>(MessageImpl.java:112)

        at org.jboss.soa.esb.util.Util.deserialize(Util.java:219)

 

 

Joe