You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Tim Sawyer <ti...@calidris.force9.co.uk> on 2002/08/06 13:21:03 UTC
Class Cast Exception
Hello.
I'm new to Axis (using Beta 3) and I've just thrown together a quick
test for myself...I have a web app running in a web app server (Orion
1.5.2) and a client as a JSP running in a different web app server, on a
different port number.
When I try and run my example, I get this error:
- Mapping Exception to AxisFault
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultString: (500)Internal Server Error
faultActor: null
faultDetail:
null: return code: 500
<HTML><HEAD><TITLE>500 Internal Server
Error</TITLE></HEAD><BODY><H1>500 Internal
Server Error</H1><PRE>java.lang.ClassCastException:
org.apache.axis.attachments.AttachmentsImpl<br> at
org.apache.axis.Message.setup(Message.java:304)<br> at
org.apache.axis.Message.&lt;init&gt;(Message.java:229)<br> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:536)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:211)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:309)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:336)<br>
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown
Source)<br>
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown
Source)<br>
at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown
Source)<br>
at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown
Source)<br>
at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown
Source)<br></PRE></BODY></HTML></BODY></HTML>
(500)Internal Server Error
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:800)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:164) at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2027)
at org.apache.axis.client.Call.invoke(Call.java:2016)
at org.apache.axis.client.Call.invoke(Call.java:1786)
at org.apache.axis.client.Call.invoke(Call.java:1711)
at org.apache.axis.client.Call.invoke(Call.java:1251)
at
com.pancredit.wstest.client.EchoMessageProxy.echoMessage(EchoMessageProxy.java:39)
at __jspPage1_test_jsp._jspService(__jspPage1_test_jsp.java:36)
at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)
at com.evermind._ah._rad(Unknown Source)
at com.evermind.server.http.JSPServlet.service(Unknown Source)
at com.evermind._cxb._abe(Unknown Source)
at com.evermind._cxb._uec(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)
(500)Internal Server Error
I had a look at the Message.java source, and saw the comment about
activation.jar, so I took the one from the JAF and put that in.
The comment implied that it would work without, but it doesn't seem to
be working for me!
Anyway, then I got this error, which looks suspiciously similar:
- Mapping Exception to AxisFault
java.lang.ClassCastException:
org.apache.axis.attachments.AttachmentsImpl
at org.apache.axis.Message.setup(Message.java:304)
at org.apache.axis.Message.<init>(Message.java:237)
at org.apache.axis.client.Call.invoke(Call.java:1767)
at org.apache.axis.client.Call.invoke(Call.java:1711)
at org.apache.axis.client.Call.invoke(Call.java:1251)
at
com.pancredit.wstest.client.EchoMessageProxy.echoMessage(EchoMessageProxy.java:39)
at __jspPage0_test_jsp._jspService(__jspPage0_test_jsp.java:36)
at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)
at com.evermind._ah._rad(Unknown Source)
at com.evermind.server.http.JSPServlet.service(Unknown Source)
at com.evermind._cxb._abe(Unknown Source)
at com.evermind._cxb._uec(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)
Error invoking operation:
java.lang.ClassCastException:
org.apache.axis.attachments.AttachmentsImpl
Am I doing something obviously wrong? Can someone point me in the right
direction? I couldn't find anything in the mailing list archives about
casting exceptions.
I have the following libraries available to both client and server:
54368 Jul 5 14:53 activation.jar
867459 Jul 31 11:17 axis.jar
24287 Jul 31 11:17 commons-logging.jar
32069 Jul 31 11:17 jaxrpc.jar
378778 Jul 31 11:17 log4j-1.2.4.jar
18468 Jul 31 11:17 saaj.jar
130773 Jul 31 11:17 tt-bytecode.jar
109356 Jul 31 11:17 wsdl4j.jar
933730 Jul 31 11:17 xercesImpl.jar
136310 Jul 31 11:17 xercesSamples.jar
78440 Jul 31 11:17 xmlParserAPIs.jar
Thanks,
Tim.