users@glassfish.java.net

Re: Illegal access error when executing an AppClient.

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 May 2007 14:48:28 PDT

hi,

it doesnt matter which call I do, I get this error, I call the appclient by:
appclient <gf-folder>\domains\domain1\generated\xml\j2ee-apps\myapp\myappClient.jar <some> <parameters>


It happens when I do undeploy/deploy new instance of my app without stopping/starting the server,

If i do stop/start it works fine, until I redeploy, then when I call a client method, I get this error again until I stop/start and so on...


Here is the full stack trace:



[#|2007-05-17T01:42:13.125+0300|INFO|sun-appserver9.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;|PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)|#]

[#|2007-05-17T01:42:13.125+0300|INFO|sun-appserver9.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;|PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)|#]

[#|2007-05-17T01:42:13.125+0300|INFO|sun-appserver9.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;|PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)|#]

[#|2007-05-17T01:42:13.125+0300|INFO|sun-appserver9.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;|PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)|#]

[#|2007-05-17T01:42:13.140+0300|INFO|sun-appserver9.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;|PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)|#]

[#|2007-05-17T01:42:13.140+0300|INFO|sun-appserver9.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;|PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)|#]

[#|2007-05-17T01:42:13.140+0300|WARNING|sun-appserver9.1|javax.enterprise.resource.corba.ee._INITIALIZING_.rpc.protocol|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;java.lang.InternalError;Error loading com.sun.corba.ee.impl.io.IIOPOutputStream;_RequestID=5b91f4a9-56f7-416b-b4b0-93ecaf1aed9f;|"IOP00010202: (UNKNOWN) Unknown user exception thrown by the server - exception: java.lang.InternalError; message: Error loading com.sun.corba.ee.impl.io.IIOPOutputStream"
org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.runtimeexception(ORBUtilSystemException.java:9893)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.convertThrowableToSystemException(CorbaMessageMediatorImpl.java:2059)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:2009)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1962)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:271)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1821)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1681)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1063)
        at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:179)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:781)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:538)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2542)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:502)
Caused by: java.lang.InternalError: Error loading com.sun.corba.ee.impl.io.IIOPOutputStream
        at com.sun.corba.ee.impl.io.ValueHandlerImpl$StreamFactory.run(ValueHandlerImpl.java:838)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.createOutputStream(ValueHandlerImpl.java:794)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:198)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:793)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:876)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:890)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:649)
        at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:245)
        at com.sun.corba.ee.impl.presentation.rmi.ExceptionHandlerImpl$ExceptionRWRMIImpl.write(ExceptionHandlerImpl.java:146)
        at com.sun.corba.ee.impl.presentation.rmi.ExceptionHandlerImpl.writeException(ExceptionHandlerImpl.java:244)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.writeException(DynamicMethodMarshallerImpl.java:453)
        at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:150)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:658)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:198)
        ... 8 more
Caused by: java.lang.ThreadDeath
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
        at com.sun.corba.ee.spi.orbutil.misc.ORBClassLoader.loadClass(ORBClassLoader.java:22)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl$StreamFactory.run(ValueHandlerImpl.java:832)
        ... 23 more
|#]

[#|2007-05-17T01:42:13.265+0300|INFO|sun-appserver9.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;|PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)|#]

[#|2007-05-17T01:42:13.265+0300|WARNING|sun-appserver9.1|javax.enterprise.resource.corba.ee._INITIALIZING_.rpc.protocol|_ThreadID=15;_ThreadName=p: thread-pool-1; w: 4;java.lang.InternalError;Error loading com.sun.corba.ee.impl.io.IIOPOutputStream;_RequestID=5b91f4a9-56f7-416b-b4b0-93ecaf1aed9f;|"IOP00010202: (UNKNOWN) Unknown user exception thrown by the server - exception: java.lang.InternalError; message: Error loading com.sun.corba.ee.impl.io.IIOPOutputStream"
org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.runtimeexception(ORBUtilSystemException.java:9893)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.convertThrowableToSystemException(CorbaMessageMediatorImpl.java:2059)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:2009)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1962)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:271)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1821)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1681)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1063)
        at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:179)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:781)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:538)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2542)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:502)
Caused by: java.lang.InternalError: Error loading com.sun.corba.ee.impl.io.IIOPOutputStream
        at com.sun.corba.ee.impl.io.ValueHandlerImpl$StreamFactory.run(ValueHandlerImpl.java:838)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.createOutputStream(ValueHandlerImpl.java:794)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:198)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:793)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:876)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:890)
        at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:241)
        at com.sun.corba.ee.impl.corba.TCUtility.marshalIn(TCUtility.java:133)
        at com.sun.corba.ee.impl.corba.AnyImpl.write_value(AnyImpl.java:580)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_any(CDROutputStream_1_0.java:575)
        at com.sun.corba.ee.impl.encoding.CDROutputStream.write_any(CDROutputStream.java:214)
        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAny(Util.java:366)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$10.write(DynamicMethodMarshallerImpl.java:262)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.writeResult(DynamicMethodMarshallerImpl.java:443)
        at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:129)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:658)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:198)
        ... 8 more
Caused by: java.lang.ThreadDeath
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
        at com.sun.corba.ee.spi.orbutil.misc.ORBClassLoader.loadClass(ORBClassLoader.java:22)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl$StreamFactory.run(ValueHandlerImpl.java:832)
        ... 26 more
|#]



thanks
[Message sent by forum member 'demiant' (demiant)]

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