You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2006/08/03 19:44:16 UTC

[jira] Commented: (AXIS2-970) Problem when performing AXIOM to SAAJ conversion

    [ http://issues.apache.org/jira/browse/AXIS2-970?page=comments#action_12425578 ] 
            
Rich Scheuerle commented on AXIS2-970:
--------------------------------------

Thanks Brian,

Can you supply a small test the demonstrates the problem.  This will make it easier for me to validate.

scheu

> Problem when performing AXIOM to SAAJ conversion
> ------------------------------------------------
>
>                 Key: AXIS2-970
>                 URL: http://issues.apache.org/jira/browse/AXIS2-970
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Brian DePradine
>            Priority: Critical
>
> I am trying to use SAAJConverterImpl.toSAAJ(OMElement, SOAPElement) to perform AXIOM to SAAJ conversion, however, I get the following exception:
> java.lang.UnsupportedOperationException: This element was not created in a manner to be switched
> 	at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReader(OMElementImpl.java:632)
> 	at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReaderWithoutCaching(OMElementImpl.java:622)
> 	at org.apache.axis2.jaxws.message.util.impl.SAAJConverterImpl.toSAAJ(SAAJConverterImpl.java:133)
> 	at com.ibm.ws.wsaddressing.jaxws.converters.EndpointReferenceConverter.fromAxis2(EndpointReferenceConverter.java:81)
> 	at com.ibm.ws.wsaddressing.jaxws.converters.EndpointReferenceConverterTest.testIbmEPRConversion(EndpointReferenceConverterTest.java:36)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:615)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> I think this exception is being thrown because the method expects an OMElement that is associated with a builder, and therefore an XMLStreamReader. However, I am creating my OMElement by calling org.apache.axis2.addressing.EndpointReference.toOM(). This means that my OMElement has no builder. It seems to me that toSAAJ() should also support OMElements without a builder.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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