users@jaxb.java.net

Re: Debugable source code needed for version 2.1.8 of Jaxb

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Fri, 27 Feb 2009 15:42:14 +0100

Off-list, Jose has confirmed by surmise that the exception occurs during
unmarshalling and is, most likely, due to some mishap in connection with the
transfer of the XML file between systems.

This doesn't clarify the no-debug-flag question for 2.1.8, though.

-W

On Tue, Feb 24, 2009 at 3:28 PM, Jose Correia <correij_at_gmail.com> wrote:

> Hi all
>
> Our software is using jaxb-api.jar and jaxb-impl.jar for version 2.1.8. We
> decided to try our software on linux to see how it would fare (as opposed to
> Windows XP/2000/2003).
>
> We are trying it with Ubuntu 8.0.4 Desktop version and we are using Sun's
> jdk version 6 update 12.
>
> The line that crashes is:
>
> Unmarshaller u = jc.createUnmarshaller();
>
> where jc is: jc = JAXBContext.newInstance(JAXB_CONTEXT);
>
> Exception it gives is:
>
> javax.xml.bind.UnmarshalException
> - with linked exception:
> [com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:
> Invalid byte 2 of 2-byte UTF-8 sequence.]
>
> So I was trying to debug the jaxb code, I got source from downloading ri
> 2.1.8 which sources for relevant jars but it seems classes were compiled
> without "allow debugging" set to true, because if I put it on debug on
> eclipse and I have ensured eclipse knows about the source of those jars, it
> then doesn't show me the line numbers.
>
> From past experience that tells me it wasn't compiled with that debug flag
> on.
>
> Anyway if anyone can help with exception or how to get debugabble classes I
> would appreciate it. I tried getting into the cvs source with:
>
> cvs -d:pserver:yourid_at_cvs.dev.java.net:/cvs co -d jaxb-ri
> jaxb2-sources/jaxb-ri
>
> but using my sun id (that I used to subscribe to mailing list) it came back
> with unknown id. I have applied to become a code observer within the
> https://jaxb2-sources.dev.java.net/ project.
>
> Thanks
> Jose
>