java.lang.ClassCastException: org.apache.axis.handlers.http.URLMapper cannot be cast to org.apache.axis.Handler

JIRA | cyrille martin | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When Run Cli and CSUM are both installed on Confluence 5.9.2 and you perform a restart of the Confluence instance; for each call of the macro cli we have in the view mode the following error in the screen: {code} Cause: org.apache.axis.ConfigurationException: java.lang.ClassCastException: org.apache.axis.handlers.http.URLMapper cannot be cast to org.apache.axis.Handler java.lang.ClassCastException: org.apache.axis.handlers.http.URLMapper cannot be cast to org.apache.axis.Handler at org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:302) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.java:394) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:276) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:151) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410) at org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257) at org.apache.axis.configuration.SimpleProvider.getTransport(SimpleProvider.java:208) at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:234) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at com.atlassian.confluence.rpc.axis.AxisSoapServer.serviceInTransaction(AxisSoapServer.java:130) at com.atlassian.confluence.rpc.axis.AxisSoapServer.access$000(AxisSoapServer.java:26) at com.atlassian.confluence.rpc.axis.AxisSoapServer$1.doInTransaction(AxisSoapServer.java:81) at com.atlassian.confluence.rpc.axis.AxisSoapServer$1.doInTransaction(AxisSoapServer.java:75) ... {code} And in the Catalina.out : {code} log4j:ERROR A "com.atlassian.confluence.logging.ConfluenceHomeLogAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [com.atlassian.plugins.document-conversion-library [225]] whereas object of type log4j:ERROR "com.atlassian.confluence.logging.ConfluenceHomeLogAppender" was loaded by [WebappClassLoader context: ROOT delegate: false ----------> Parent Classloader: java.net.URLClassLoader@19469ea2 ]. log4j:ERROR Could not instantiate appender named "confluencelog". log4j:ERROR A "com.atlassian.core.logging.ThreadLocalErrorLogAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [com.atlassian.plugins.document-conversion-library [225]] whereas object of type log4j:ERROR "com.atlassian.core.logging.ThreadLocalErrorLogAppender" was loaded by [WebappClassLoader context: ROOT delegate: false ----------> Parent Classloader: java.net.URLClassLoader@19469ea2 ]. log4j:ERROR Could not instantiate appender named "errorlog". log4j:ERROR A "com.atlassian.confluence.logging.ConfluenceHomeLogAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [com.atlassian.plugins.document-conversion-library [225]] whereas object of type log4j:ERROR "com.atlassian.confluence.logging.ConfluenceHomeLogAppender" was loaded by [WebappClassLoader context: ROOT delegate: false ----------> Parent Classloader: java.net.URLClassLoader@19469ea2 ]. log4j:ERROR Could not instantiate appender named "confluencelog". {code} Thank you for your help. Best Regards, Cyrille Martin

    JIRA | 1 year ago | cyrille martin
    java.lang.ClassCastException: org.apache.axis.handlers.http.URLMapper cannot be cast to org.apache.axis.Handler
  2. 0

    When Run Cli and CSUM are both installed on Confluence 5.9.2 and you perform a restart of the Confluence instance; for each call of the macro cli we have in the view mode the following error in the screen: {code} Cause: org.apache.axis.ConfigurationException: java.lang.ClassCastException: org.apache.axis.handlers.http.URLMapper cannot be cast to org.apache.axis.Handler java.lang.ClassCastException: org.apache.axis.handlers.http.URLMapper cannot be cast to org.apache.axis.Handler at org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:302) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.java:394) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:276) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:151) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260) at org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410) at org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257) at org.apache.axis.configuration.SimpleProvider.getTransport(SimpleProvider.java:208) at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:234) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at com.atlassian.confluence.rpc.axis.AxisSoapServer.serviceInTransaction(AxisSoapServer.java:130) at com.atlassian.confluence.rpc.axis.AxisSoapServer.access$000(AxisSoapServer.java:26) at com.atlassian.confluence.rpc.axis.AxisSoapServer$1.doInTransaction(AxisSoapServer.java:81) at com.atlassian.confluence.rpc.axis.AxisSoapServer$1.doInTransaction(AxisSoapServer.java:75) ... {code} And in the Catalina.out : {code} log4j:ERROR A "com.atlassian.confluence.logging.ConfluenceHomeLogAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [com.atlassian.plugins.document-conversion-library [225]] whereas object of type log4j:ERROR "com.atlassian.confluence.logging.ConfluenceHomeLogAppender" was loaded by [WebappClassLoader context: ROOT delegate: false ----------> Parent Classloader: java.net.URLClassLoader@19469ea2 ]. log4j:ERROR Could not instantiate appender named "confluencelog". log4j:ERROR A "com.atlassian.core.logging.ThreadLocalErrorLogAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [com.atlassian.plugins.document-conversion-library [225]] whereas object of type log4j:ERROR "com.atlassian.core.logging.ThreadLocalErrorLogAppender" was loaded by [WebappClassLoader context: ROOT delegate: false ----------> Parent Classloader: java.net.URLClassLoader@19469ea2 ]. log4j:ERROR Could not instantiate appender named "errorlog". log4j:ERROR A "com.atlassian.confluence.logging.ConfluenceHomeLogAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [com.atlassian.plugins.document-conversion-library [225]] whereas object of type log4j:ERROR "com.atlassian.confluence.logging.ConfluenceHomeLogAppender" was loaded by [WebappClassLoader context: ROOT delegate: false ----------> Parent Classloader: java.net.URLClassLoader@19469ea2 ]. log4j:ERROR Could not instantiate appender named "confluencelog". {code} Thank you for your help. Best Regards, Cyrille Martin

    JIRA | 1 year ago | cyrille martin
    java.lang.ClassCastException: org.apache.axis.handlers.http.URLMapper cannot be cast to org.apache.axis.Handler
  3. 0

    When I try to consume a webservice I get this error I can see the wsdl of the webservice. The webservice was basically a function in one of my EJBs ..being exposed as a webservice, iow. (The code [shown below error] works in my jdeveloper env (with axis installed similarly as on sturdy orion server) Jdeveloper has a mini-me orion server in it...so hypothetically things should work same in both places...but on Orion server ..No) ===Start error============== AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (500)Internal Server Error faultActor: faultNode: faultDetail: {}: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;ja &lt;br&gt; at org.apache.axis.Message.&amp;lt;init&amp;gt;(Message.java:232 &lt;br&gt; at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet &lt;br&gt; at org.apache.axis.transport.http.AxisServletBase.service(AxisSe &lt;br&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;&lt;/BODY&gt;&lt;/HTML&gt;:336) {http://xml.apache.org/axis/}HttpErrorCode:500 (500)Internal Server Error at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j ava:744) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.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:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:2424) at org.apache.axis.client.Call.invoke(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:1804) at <line in my application which says call.invoke()> at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148 2) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind._cub._phd(.:518) at com.evermind._cub._bgc(.:174) at com.evermind._ax._lqc(.:614) at com.evermind._ax._tvb(.:189) at com.evermind._bf.run(.:62) ====End Error======== ==Start code=== try { String endpoint = "http://localhost:8081/axis/services/ValidateCreditCardService"; Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress(endpoint); call.setOperationName(new QName("validateCreditCardWS")); Object ret = call.invoke(new Object[] { "abcd", "u000001", "90210", "junglee jaanwar", "4111111111111111", "02", "06", "", "2.30" }); System.out.println("return from validate credit card web service: " + ret); } catch(Exception e) { e.printStackTrace(); } ====End code===

    Apache's JIRA Issue Tracker | 1 decade ago | neal ravindran
    java.lang.ClassCastException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When I try to consume a webservice I get this error I can see the wsdl of the webservice. The webservice was basically a function in one of my EJBs ..being exposed as a webservice, iow. (The code [shown below error] works in my jdeveloper env (with axis installed similarly as on sturdy orion server) Jdeveloper has a mini-me orion server in it...so hypothetically things should work same in both places...but on Orion server ..No) ===Start error============== AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (500)Internal Server Error faultActor: faultNode: faultDetail: {}: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;ja &lt;br&gt; at org.apache.axis.Message.&amp;lt;init&amp;gt;(Message.java:232 &lt;br&gt; at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet &lt;br&gt; at org.apache.axis.transport.http.AxisServletBase.service(AxisSe &lt;br&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;&lt;/BODY&gt;&lt;/HTML&gt;:336) {http://xml.apache.org/axis/}HttpErrorCode:500 (500)Internal Server Error at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j ava:744) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.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:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:2424) at org.apache.axis.client.Call.invoke(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:1804) at <line in my application which says call.invoke()> at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148 2) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind._cub._phd(.:518) at com.evermind._cub._bgc(.:174) at com.evermind._ax._lqc(.:614) at com.evermind._ax._tvb(.:189) at com.evermind._bf.run(.:62) ====End Error======== ==Start code=== try { String endpoint = "http://localhost:8081/axis/services/ValidateCreditCardService"; Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress(endpoint); call.setOperationName(new QName("validateCreditCardWS")); Object ret = call.invoke(new Object[] { "abcd", "u000001", "90210", "junglee jaanwar", "4111111111111111", "02", "06", "", "2.30" }); System.out.println("return from validate credit card web service: " + ret); } catch(Exception e) { e.printStackTrace(); } ====End code===

    Apache's JIRA Issue Tracker | 1 decade ago | neal ravindran
    java.lang.ClassCastException

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.axis.handlers.http.URLMapper cannot be cast to org.apache.axis.Handler

      at org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance()
    2. Axis Web Services
      AxisServlet.doPost
      1. org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:302)
      2. org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
      3. org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
      4. org.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.java:394)
      5. org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:276)
      6. org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
      7. org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125)
      8. org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
      9. org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
      10. org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:151)
      11. org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
      12. org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
      13. org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410)
      14. org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
      15. org.apache.axis.configuration.SimpleProvider.getTransport(SimpleProvider.java:208)
      16. org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
      17. org.apache.axis.server.AxisServer.invoke(AxisServer.java:234)
      18. org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
      18 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      1 frame
    4. Axis Web Services
      AxisServletBase.service
      1. org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame
    6. com.atlassian.confluence
      AxisSoapServer$1.doInTransaction
      1. com.atlassian.confluence.rpc.axis.AxisSoapServer.serviceInTransaction(AxisSoapServer.java:130)
      2. com.atlassian.confluence.rpc.axis.AxisSoapServer.access$000(AxisSoapServer.java:26)
      3. com.atlassian.confluence.rpc.axis.AxisSoapServer$1.doInTransaction(AxisSoapServer.java:81)
      4. com.atlassian.confluence.rpc.axis.AxisSoapServer$1.doInTransaction(AxisSoapServer.java:75)
      4 frames