users@jaxb.java.net

Re: Unmarshaller expecting element with null namespace

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Wed, 10 Nov 2010 13:35:01 -0500

Hi Lexi,

As usual you are a genius and a huge help! That was it. The file had
gotten renamed etc. during obfuscation.

On 11/10/2010 01:26 PM, Aleksei Valikov wrote:
> 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
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>


-- 
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com