axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zachary Marshall" <Zachary.Marsh...@sas.com>
Subject RE: Axis2: CassCastException when adding a custom SOAP Header element
Date Fri, 08 Jun 2007 13:17:47 GMT
What version of Axis are you using? Also, are you using rampart? 

-----Original Message-----
From: Simon Steinacker [mailto:simon.steinacker@student.uibk.ac.at] 
Sent: Friday, June 08, 2007 7:08 AM
To: axis-user@ws.apache.org
Subject: Axis2: CassCastException when adding a custom SOAP Header element

Hello,

I am creating a custom OMElement that I need to send inside the soap header. I do this by
adding a handler to the handler chain and through that I modify the MessageContext (the header
inside it).

But when this modified MessageContext is processed by the axis engine I get the following
weird exception:

org.apache.axis2.AxisFault: java.lang.ClassCastException: 
org.apache.axiom.om.impl.llom.OMElementImpl
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
    at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
    at
org.txservice1.testservice.TestServiceStub.helloMe(TestServiceStub.java:348)
    at
org.txservice1.testservice.TxService1Test.testCall(TxService1Test.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



Does anyone know what the problem could be?
Thanks a lot,
Simon


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


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


Mime
View raw message