axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rustam Abdullaev (JIRA)" <>
Subject [jira] Created: (AXIS2-4981) Axis2 + Rampart X.509 + JAXB = Namespace URIs and local names to the unmarshaller needs to be interned.
Date Thu, 17 Mar 2011 11:46:29 GMT
Axis2 + Rampart X.509 + JAXB = Namespace URIs and local names to the unmarshaller needs to
be interned.

                 Key: AXIS2-4981
             Project: Axis2
          Issue Type: Bug
    Affects Versions: 1.5.4
            Reporter: Rustam Abdullaev

When Axis2 is used with JAXB bindings and unencrypted SOAP body, all goes well, but as soon
as SOAP Body is encrypted (using X.509 token), both client-side and server-side JAXB bindings
stop working, on the client silently retuning empty response objects (all fields = null).

The null response object is caused by the fact that JAXB by default swallows errors.
Add this code to the generated stub (fromOM()) to reveal the underlying exception:

                        new ValidationEventHandler() {
                            public boolean handleEvent(ValidationEvent event ) {
                                throw new RuntimeException(event.getMessage(),

The underlying error is:

Namespace URIs and local names to the unmarshaller needs to be interned.

	at test.TestServiceStub$1.handleEvent(
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(
	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(
	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(
	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(
	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(
	at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(
	at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(
	at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(
	at test.TestServiceStub.fromOM(
	at test.TestServiceStub.test(

It looks like the error originates in Axiom ( returns
non-interned strings).

Tried different component versions / combinations, all resulted in the same error:
Axis2 1.4 - 1.5.4
Rampart 1.4 - 1.5.1
JAXB 2.1.0 - 2.1.13
Axiom 1.2.0 - 1.2.11

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message