axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Okken (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5080) The combination of rampart and jaxb databinding leads to an UnsupportedOperationException when attempting to sign a message response.
Date Thu, 30 Jun 2011 15:07:29 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057869#comment-13057869
] 

Brett Okken commented on AXIS2-5080:
------------------------------------

>> The problem is that Axiom is not supposed to invoke a custom builder here. The custom
builder is registered with the original LLOM envelope, but it is not clear to me why it would
be invoked after conversion to DOOM. 

It appears that some of the conversion is deferred. When ParentNode.getChildNodes is called,
the custom builder is used to build out the items which were deferred.

> The combination of rampart and jaxb databinding leads to an UnsupportedOperationException
when attempting to sign a message response.
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5080
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5080
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.5.5, 1.6.0
>         Environment: axis2 1.5.5 and 1.6, axiom 1.2.11, rampart 1.5.1 and 1.6.
>            Reporter: Brett Okken
>         Attachments: AXIOM-5080.patch
>
>
> The problem appears to be in the way that jaxb is converted to axiom does not work with
DOM.
> Caused by: java.lang.UnsupportedOperationException: Not supported for DOM
>         at org.apache.axiom.om.impl.dom.factory.OMDOMFactory.createOMElement(OMDOMFactory.java:194)
>         at org.apache.axis2.datasource.jaxb.JAXBCustomBuilder.create(JAXBCustomBuilder.java:91)
>         at org.apache.axiom.om.impl.builder.StAXOMBuilder.createWithCustomBuilder(StAXOMBuilder.java:344)
>         at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement(StAXSOAPModelBuilder.java:221)
>         at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
>         at org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:447)
>         at org.apache.axiom.om.impl.dom.ParentNode.getChildNodes(ParentNode.java:168)
>         at org.apache.ws.security.util.WSSecurityUtil.findChildElement(WSSecurityUtil.java:596)
>         at org.apache.ws.security.util.WSSecurityUtil.findWsseSecurityHeaderBlock(WSSecurityUtil.java:717)
>         at org.apache.ws.security.message.WSSecHeader.insertSecurityHeader(WSSecHeader.java:145)
>         at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:379)
>         at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61)
>         at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
>         at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:419)
>         at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:196)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message