java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hello, I want to use the JiraSoapService in my plugin to communicate with another Jira. I add this to my pom.xml: {code:xml} <dependency> <groupId>com.atlassian.jira.plugins</groupId> <artifactId>jira-soapclient</artifactId> <version>${jira.version}</version> </dependency> {code} But when I try to login to another Jira. {code:java} String baseUrl = url + "/rpc/soap/jirasoapservice-v2"; JiraSoapService jiraSoapService = jiraSoapServiceLocator.getJirasoapserviceV2(new URL(baseUrl)); String login = jiraSoapService.login("admin", "admin"); {code} I get a ClassCastException: AxisFault [INFO] [talledLocalContainer] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException [INFO] [talledLocalContainer] faultSubcode: [INFO] [talledLocalContainer] faultString: java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments [INFO] [talledLocalContainer] faultActor: [INFO] [talledLocalContainer] faultNode: [INFO] [talledLocalContainer] faultDetail: [INFO] [talledLocalContainer] {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments [INFO] [talledLocalContainer] at org.apache.axis.Message.setup(Message.java:352) [INFO] [talledLocalContainer] at org.apache.axis.Message.<init>(Message.java:246) [INFO] [talledLocalContainer] at org.apache.axis.client.Call.invoke(Call.java:2425) [INFO] [talledLocalContainer] at org.apache.axis.client.Call.invoke(Call.java:2366) [INFO] [talledLocalContainer] at org.apache.axis.client.Call.invoke(Call.java:1812)
    via by Christian Schulze,
  • Hello, I want to use the JiraSoapService in my plugin to communicate with another Jira. I add this to my pom.xml: {code:xml} <dependency> <groupId>com.atlassian.jira.plugins</groupId> <artifactId>jira-soapclient</artifactId> <version>${jira.version}</version> </dependency> {code} But when I try to login to another Jira. {code:java} String baseUrl = url + "/rpc/soap/jirasoapservice-v2"; JiraSoapService jiraSoapService = jiraSoapServiceLocator.getJirasoapserviceV2(new URL(baseUrl)); String login = jiraSoapService.login("admin", "admin"); {code} I get a ClassCastException: AxisFault [INFO] [talledLocalContainer] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException [INFO] [talledLocalContainer] faultSubcode: [INFO] [talledLocalContainer] faultString: java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments [INFO] [talledLocalContainer] faultActor: [INFO] [talledLocalContainer] faultNode: [INFO] [talledLocalContainer] faultDetail: [INFO] [talledLocalContainer] {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments [INFO] [talledLocalContainer] at org.apache.axis.Message.setup(Message.java:352) [INFO] [talledLocalContainer] at org.apache.axis.Message.<init>(Message.java:246) [INFO] [talledLocalContainer] at org.apache.axis.client.Call.invoke(Call.java:2425) [INFO] [talledLocalContainer] at org.apache.axis.client.Call.invoke(Call.java:2366) [INFO] [talledLocalContainer] at org.apache.axis.client.Call.invoke(Call.java:1812)
    via by Christian Schulze,
  • strange interaction with Axis & OSGi
    via Stack Overflow by javamonkey79
    ,
  • webservice error
    via by gam...@hotmail.com,
  • db:: 7.01::ClassCastException (ClassLoader Error) 8k
    via by Unknown author,
    • java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments at org.apache.axis.Message.setup(Message.java:352) at org.apache.axis.Message.<init>(Message.java:246) at org.apache.axis.client.Call.invoke(Call.java:2425) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812)
    No Bugmate found.