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 ax...@ws.apache.org on 2004/10/07 15:55:51 UTC
[jira] Commented: (AXIS-1561) Logic problem in SOAPPart.getAsBytes() causes ClassCastException
The following comment has been added to this issue:
Author: Ashutosh Shahi
Created: Thu, 7 Oct 2004 6:54 AM
Body:
Hi Erich,
Can you post your client code. I would like to see what processing you are doing so that "currentForm" is changed to FORM_STRING and also not being typecasted to String.
Regards,
Ashutosh
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1561?page=comments#action_53810
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1561
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1561
Summary: Logic problem in SOAPPart.getAsBytes() causes ClassCastException
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Components:
Basic Architecture
Versions:
1.2 Beta
Assignee:
Reporter: Erich Oliphant
Created: Mon, 20 Sep 2004 2:09 PM
Updated: Thu, 7 Oct 2004 6:54 AM
Environment: ALL
1.2 beta 3 sources
Description:
I've encountered situation where the if ( currentForm == FORM_STRING ) block is executed when 'currentMessage' is actually an ..axis.Message. Which generates a ClassCastException when this (~ line 454):
--
currentMessageAsString = (String) currentMessage;
--
is executed.
Here's a stack trace generated by my sample app:
--
avax.xml.soap.SOAPException: java.lang.ClassCastException
at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:95)
at SeatMapRequester.getSeatMap(SeatMapRequester.java:208)
at SeatMapRequester.main(SeatMapRequester.java:368)
Caused by: java.lang.ClassCastException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:97)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
at org.apache.axis.client.Call.invoke(Call.java:2718)
at org.apache.axis.client.Call.invoke(Call.java:1832)
at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
... 2 more
Caused by: java.lang.ClassCastException
at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:455)
at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:222)
at org.apache.axis.Message.getContentLength(Message.java:490)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:336)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
... 10 more
--
Note that it's reporting line 455 because I added a debug statement to see what the actual class was.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira