Forum Stats

  • 3,733,360 Users
  • 2,246,748 Discussions
  • 7,856,667 Comments

Discussions

Glassfish - VERY strange ClassCastException

I get this exception when try to call remote web service...

Strange - because we have this exception ONLY in Glassfish 2.1/3.1 environment...

When im start code from command line (JDK 1.6.0_16-b01) all works fine! So looks its a Glassfish problem

Any ideas?

Task execution failed com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

       at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:131)

       at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:219)

       at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:143)

       at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:139)

       at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:961)

       at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:910)

       at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:873)

       at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:775)

       at com.sun.xml.ws.client.Stub.process(Stub.java:429)

       at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:168)

       at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)

       at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:102)

       at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:151)

       at $Proxy317.zapCableDevice(Unknown Source)

       at com.dob.ns.service.ZAPService.authorizeSTB(ZAPService.java:128)

       at com.dob.ns.service.ZAPService.process(ZAPService.java:91)

       at com.dob.ns.core.DOBProcessDescriptor$DOBServiceExecutor.run(DOBProcessDescriptor.java:269)

       at java.lang.Thread.run(Thread.java:619)

Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

       at com.sun.xml.ws.transport.http.client.HttpClientTransport.createHttpConnection(HttpClientTransport.java:287)

       at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:116)

       ... 17 more

This discussion has been closed.