users@jaxb.java.net

Re: Unmarshaller expecting element with null namespace

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Wed, 10 Nov 2010 19:26:07 +0100

Maybe package-info.class is missing after obfuscation?

On Wed, Nov 10, 2010 at 7:03 PM, Farrukh Najmi
<farrukh_at_wellfleetsoftware.com> wrote:
>
> I have a server and client that are fairly mature and stable and use
> spring-ws and JAXB for the server interface.
>
> Recently I obfuscated my server code and now the server boots up normal but
> when it gets a request from a pre-existing client it gives an error during
> unmarhsaling in the server side.
>
> The Error indicates that binding classes for some but not all packages are
> being expected without a namespace when there should be a namespace. See
> simplified example:
>
> org.springframework.ws.soap.client.SoapFaultClientException: JAXB
> unmarshalling exception: unexpected element (uri:"urn:acme:sampleNS",
> local:"SampleRequest"). Expected elements are
> <{http://www.w3.org/2005/08/addressing}Action>,<{}SampleRequest>,<{}SampleResponse>,....
>
> Its clear that the obfuscation messed something when the JAXB binding
> generated code was processed.
>
> Can any one hazard a guess as to what will cause the JAXBContext to drop the
> namespace on some packages and not others?
>
> Thanks for your help.
>
> --
> Regards,
> Farrukh Najmi
>
> Web: http://www.wellfleetsoftware.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>