java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments

Atlassian JIRA | Christian Schulze | 6 years ago
  1. 0

    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)

    Atlassian JIRA | 6 years ago | Christian Schulze
    java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
  2. 0

    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)

    Atlassian JIRA | 6 years ago | Christian Schulze
    java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
  3. 0

    Application Loader - An error occurred on the Apple server while trying to authenticate the package

    Stack Overflow | 6 years ago | Gerald Kaszuba
    java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to force jboss to load classes from jars in webapp's lib

    Stack Overflow | 6 years ago | Jboss Crezy
    java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
  6. 0

    Installing Axis 1.4 jar files (Web Services forum at Coderanch)

    coderanch.com | 8 months ago
    java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments

      at org.apache.axis.Message.setup()
    2. Axis Web Services
      Call.invoke
      1. org.apache.axis.Message.setup(Message.java:352)
      2. org.apache.axis.Message.<init>(Message.java:246)
      3. org.apache.axis.client.Call.invoke(Call.java:2425)
      4. org.apache.axis.client.Call.invoke(Call.java:2366)
      5. org.apache.axis.client.Call.invoke(Call.java:1812)
      5 frames