axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Sawyer <...@calidris.force9.co.uk>
Subject Class Cast Exception
Date Tue, 06 Aug 2002 11:21:03 GMT
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
&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;500 Internal Server
Error&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;500
Internal
Server Error&lt;/H1&gt;&lt;PRE&gt;java.lang.ClassCastException:
org.apache.axis.attachments.AttachmentsImpl&lt;br&gt;	at
org.apache.axis.Message.setup(Message.java:304)&lt;br&gt;	at
org.apache.axis.Message.&amp;lt;init&amp;gt;(Message.java:229)&lt;br&gt;	at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:536)&lt;br&gt;

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:211)&lt;br&gt;	
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:309)&lt;br&gt;	
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:336)&lt;br&gt;	
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown
Source)&lt;br&gt;	
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown
Source)&lt;br&gt;	
at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown
Source)&lt;br&gt;	
at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown
Source)&lt;br&gt;	
at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown
Source)&lt;br&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;&lt;/BODY&gt;&lt;/HTML&gt;

(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.


Mime
View raw message