java.lang.ClassCastException: com.sun.net.httpserver.Headers cannot be cast to com.sun.xml.ws.transport.Headers

Google Groups | minami | 5 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

    XML reader error:com.ctc.wstx.exc.WstxUnexpectedCharException: while calling SOAP web service

    Stack Overflow | 3 years ago | Anand
    com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '-' (code 45) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]
  2. 0

    Java JAX-WS service returning SOAP fault when queried by Perl's SOAP::Lite module

    Stack Overflow | 5 years ago | user1020925
    com.sun.xml.internal.ws.protocol.soap.VersionMismatchException: Couldn't create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/en velope/, but got http://schemas.xmlsoap.org/wsdl/soap/ at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCod ec.java:167) at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCod ec.java:292) at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCod ec.java:118)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      com.sun.net.httpserver.Headers cannot be cast to com.sun.xml.ws.transport.Headers

      at com.jaxws.json.codec.JSONCodec.decode()
    2. com.jaxws.json
      JSONCodec.decode
      1. com.jaxws.json.codec.JSONCodec.decode(JSONCodec.java:482)
      1 frame
    3. JAX-WS RI Runtime Bundle
      WSHttpHandler.handle
      1. com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:336)
      2. com.sun.xml.ws.transport.http.HttpAdapter.access$400(HttpAdapter.java:96)
      3. com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:591)
      4. com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:259)
      5. com.sun.xml.ws.transport.http.server.WSHttpHandler.handleExchange(WSHttpHandler.java:110)
      6. com.sun.xml.ws.transport.http.server.WSHttpHandler.handle(WSHttpHandler.java:95)
      6 frames
    4. Jetty :: Http Service Provider Interface
      HttpSpiContextHandler.doScope
      1. org.eclipse.jetty.http.spi.HttpSpiContextHandler.doScope(HttpSpiContextHandler.java:81)
      1 frame
    5. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      2. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
      3. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
      4. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
      5. org.eclipse.jetty.server.Server.handle(Server.java:347)
      6. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:451)
      7. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:931)
      8. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:870)
      9. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:238)
      10. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
      10 frames
    6. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:615)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:722)
      3 frames