axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3804) UnsupportedOperationException thrown by OMElementStreamWriter
Date Tue, 21 Jul 2009 00:59:14 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen resolved AXIS2-3804.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

In r795935 I changed MTOMAwareOMBuilder to throw IllegalArgumentException instead of UnsupportedOperationException.
According to the specs, that is the right type of exception. Therefore this issue should be
solved.

Please also note that:
- OMElementStreamWriter has been removed in favor of MTOMAwareOMBuilder.
- Probably at some point, MTOMAwareOMBuilder will be moved to Axiom.
- Using MTOMAwareOMBuilder to implement OMDataSource#getReader should be considered as an
anti-pattern. See [1] for a discussion.

[1] http://people.apache.org/~veithen/axiom/tutorial/ch05.html#d0e1030

> UnsupportedOperationException thrown by OMElementStreamWriter
> -------------------------------------------------------------
>
>                 Key: AXIS2-3804
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3804
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.4
>         Environment: Windows XP 32bit
>            Reporter: CP
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>
> I have just upgraded from Axis2 1.3 to 1.4 and now I'm getting an UnsupportedOperationException
thrown by OMElementStreamWriter. I posted this in the users forum but got no reply so I'm
assuming it's a problem with no obvious solution.
> See below for stack trace. Any idea why this is happening now and not with v1.3? Is there
an easy workaround if a fix cannot be made soon?
> Thank You.
> 2008-05-14 16:46:09,574 ERROR [http-80-1] llom.OMSourcedElementImpl
> (OMSourcedElementImpl.java:170) - Could not get parser from data source for
> element {http://www.xyz.com/schemas/Results}records javax.xml.stream.XMLStreamException:
java.lang.UnsupportedOperationException:
> this method has not yet been implemented at
> com.xyz.framework.webServices.CalculationEngineWebService$ResultsOMDataSource.serialize(CalculationEngineWebService.java:351)
at
> com.xyz.framework.webServices.CalculationEngineWebService$ResultsOMDataSource.getReader(CalculationEngineWebService.java:287)
at
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getDirectReader(OMSourcedElementImpl.java:167)
at
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.forceExpand(OMSourcedElementImpl.java:190)
at
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getFirstOMChild(OMSourcedElementImpl.java:838)
at
> org.apache.axiom.om.impl.llom.OMNavigator._getFirstChild(OMNavigator.java:142) at
> org.apache.axiom.om.impl.llom.OMNavigator.updateNextNode(OMNavigator.java:114) at org.apache.axiom.om.impl.llom.OMNavigator.next(OMNavigator.java:97)
at
> org.apache.axiom.om.impl.llom.OMStAXWrapper.updateNextNode(OMStAXWrapper.java:1061) at
> org.apache.axiom.om.impl.llom.OMStAXWrapper.updateLastNode(OMStAXWrapper.java:1052) at
> org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:977) at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506) at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161) at org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:449)
at
> org.apache.axiom.om.impl.dom.DocumentImpl.build(DocumentImpl.java:488) at
> org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:130) at
> org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:150) at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:58)
at
> org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64) at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:429)
at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45)
at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833) at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285) at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.UnsupportedOperationException: this method has not yet been
> implemented at
> org.apache.axis2.databinding.utils.writer.OMElementStreamWriter.getProperty(OMElementStreamWriter.java:242)
at
> org.apache.axiom.om.impl.MTOMXMLStreamWriter.getProperty(MTOMXMLStreamWriter.java:265)
at
> org.apache.axiom.om.impl.util.OMSerializerUtil.isSetPrefixBeforeStartElement(OMSerializerUtil.java:172)
at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:243)
at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:197)
at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:913)
at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
at
> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:388) at
> com.xyz.framework.webServices.CalculationEngineWebService$ResultsOMDataSource.serialize(CalculationEngineWebService.java:341)
... 40 more 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message