java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

Stack Overflow | FiveO | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Return empty response in REST API in WSO2 ESB

    Stack Overflow | 8 months ago | FiveO
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to java.lang.Boolean

      at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse()
    2. org.apache.synapse
      PassThroughHttpSender.invoke
      1. org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:468)
      2. org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)
      2 frames
    3. org.apache.axis2
      AxisEngine.send
      1. org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
      1 frame
    4. Apache Synapse - Core
      SynapseMessageReceiver.receive
      1. org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
      2. org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:28)
      3. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
      4. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
      5. org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
      6. org.apache.synapse.rest.Resource.process(Resource.java:297)
      7. org.apache.synapse.rest.API.process(API.java:378)
      8. org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97)
      9. org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65)
      10. org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:266)
      11. org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
      11 frames
    5. org.apache.axis2
      AxisEngine.receive
      1. org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
      1 frame
    6. org.apache.synapse
      ServerWorker.run
      1. org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
      2. org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:363)
      3. org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
      3 frames
    7. Apache Axis2 - Transport - Base
      NativeWorkerPool$1.run
      1. org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      1 frame
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames