users@jaxb.java.net

Parse error on unmarshal - upgrading from jaxb 2.0 to jaxb 2.1

From: ginsohn <adinkale_at_gmail.com>
Date: Sat, 10 Jul 2010 00:22:09 -0700 (PDT)

Hi,
I have a problem with unmarshaling. I'll describe what I'm trying to do:

My application ran until now with Java 1.5 and jaxb 2.0, and in this a
particular class I interact with a C process via stdin and stdout,
marshaling the request (to stdin) from a JAXB object, and unmarshaling the
response (from stdout) into an object from the same schema. The C process
adds "std::ends" (^@, represents end of stream, caret+NULL char) to the end
of the XML response.

I am now upgrading to Java 1.6. I'm doing it for now only at runtime, so I
re-built the schema with jaxb 2.1 with Java 1.5 compiler, but now the call
to "unmarshal" fails with the error:
"javax.xml.stream.XMLStreamException: ParseError at [row,col]:[7,14]
Message: Content is not allowed in trailing section."

It seems that it somehow fails to parse the closing NULL, while before all
was good. I checked the XML input and output, they look the same as they did
before. My XSD has not changed either, I only re-built the Java classes with
jaxb 2.1 libraries.

What am I missing? Please advise, thanks
-- 
View this message in context: http://old.nabble.com/Parse-error-on-unmarshal---upgrading-from-jaxb-2.0-to-jaxb-2.1-tp29124524p29124524.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.