users@glassfish.java.net

Throwable.initCause() throws IllegalStateException then hides real error

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Feb 2007 06:11:36 PST

Hi,

I am developing a javax.xml.rpc.handler.Handler, but it is still buggy.
Unfortunately I get the following stack trace hiding the real cause:
java.lang.IllegalStateException: Can't overwrite cause
        at java.lang.Throwable.initCause(Throwable.java:320)
        at com.sun.enterprise.webservice.EjbContainerPreHandler.handleRequest(EjbContainerPreHandler.java:80)
        at com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:86)
        at com.sun.xml.rpc.server.StreamingHandler.callRequestHandlers(StreamingHandler.java:945)
        at com.sun.xml.rpc.server.StreamingHandler.preHandlingHook(StreamingHandler.java:851)
        at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:110)
        at com.sun.enterprise.webservice.EjbWebServiceDispatcher.handlePost(EjbWebServiceDispatcher.java:140)
        at com.sun.enterprise.webservice.EjbWebServiceDispatcher.invoke(EjbWebServiceDispatcher.java:79)
        at com.sun.enterprise.webservice.EjbWebServiceValve.dispatchToEjbEndpoint(EjbWebServiceValve.java:187)
        at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:131)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:542)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
        at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
        at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
        at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)

Any tip to know the real error ?

Regards,

Laurent
[Message sent by forum member 'sauvage' (sauvage)]

http://forums.java.net/jive/thread.jspa?messageID=203748