com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: com.jaxws.json.codec.JSONFault: Failed to create message body.java.util.ArrayList cannot be cast to java.util.Map

Google Groups | param | 6 years 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

    [newbie] Unable to decode array parameter from JSON request on jsonwebservice-ri-0.6.0.jar

    Google Groups | 6 years ago | param
    com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: com.jaxws.json.codec.JSONFault: Failed to create message body.java.util.ArrayList cannot be cast to java.util.Map

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.ArrayList cannot be cast to java.util.Map

      at com.jaxws.json.codec.MessageBodyBuilder.handleMessage()
    2. com.jaxws.json
      JSONDecoder.getWSMessage
      1. com.jaxws.json.codec.MessageBodyBuilder.handleMessage(MessageBodyBuilder.java:121)
      2. com.jaxws.json.codec.decode.JSONDecoder.getWSMessage(JSONDecoder.java:196)
      2 frames