dev@jaxb.java.net

Upgrading from jaxb2 to jaxb 2.1 - unmarshaling error

From: ginsohn <adinkale_at_gmail.com>
Date: Fri, 9 Jul 2010 15:56:35 -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, NULL char + caret) 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/Upgrading-from-jaxb2-to-jaxb-2.1---unmarshaling-error-tp29123038p29123038.html
Sent from the java.net - jaxb dev mailing list archive at Nabble.com.