axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Scheuerle (JIRA)" <>
Subject [jira] Commented: (AXIS2-970) Problem when performing AXIOM to SAAJ conversion
Date Thu, 03 Aug 2006 17:44:16 GMT
    [ ] 
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.


> Problem when performing AXIOM to SAAJ conversion
> ------------------------------------------------
>                 Key: AXIS2-970
>                 URL:
>             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
> 	at
> 	at org.apache.axis2.jaxws.message.util.impl.SAAJConverterImpl.toSAAJ(
> 	at
> 	at
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at junit.framework.TestCase.runTest(
> 	at junit.framework.TestCase.runBare(
> 	at junit.framework.TestResult$1.protect(
> 	at junit.framework.TestResult.runProtected(
> 	at
> 	at
> 	at junit.framework.TestSuite.runTest(
> 	at
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> 	at
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> 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:
For more information on JIRA, see:


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

View raw message