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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

Stack trace

  • 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 at com.jaxws.json.codec.JSONCodec.throwMessageCreationException(JSONCodec.java:544) at com.jaxws.json.codec.JSONCodec.decode(JSONCodec.java:503) at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:321) Caused by: com.jaxws.json.codec.JSONFault: Failed to create message body.java.util.ArrayList cannot be cast to java.util.Map at com.jaxws.json.codec.decode.JSONDecoder.getWSMessage(JSONDecoder.java:198) at com.jaxws.json.codec.JSONCodec.decode(JSONCodec.java:497) ... 3 more Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map at com.jaxws.json.codec.MessageBodyBuilder.handleMessage(MessageBodyBuilder.java:121) at com.jaxws.json.codec.decode.JSONDecoder.getWSMessage(JSONDecoder.java:196)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.