This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
JDK 1.4.1_fcs, NetBeans_dev_2002090250100 How to reproduce 1) start NetBeans 2) create RMI server 3) start local RMI registry 4) start RMI server 5) stop local RMI registry 6) Terminate RMI server 7) start local RMI registry now JVM crash with internal JVM error Something similar happend on Solaris 8 (same version of JDK and same NB build). Difference is that JVM not crash but is inpossible to browse RMI registry. There is not difference between using RMI Executor with codebase as URL or file:///
Created attachment 7518 [details] JVM Crash Log
Indeed this in an JVM Error. JVM crashes in the BSD Socket's accept JNI call in one of the Tomcat threads. See attached JVM Crash Log. When RMI Executor is changed to use file protocol instead of http protocol everything works fine. The workaround is to use local files for java.rmi.server.codebase and java.security.policy.
We already had such a problem in the past reported under Issuezilla #21022. There was also bug reported against JVM #4623152 related to this problem. This JVM one is marked as fixed for J2SE 1.4.1. Now we are experiencing this problem again, so I recommend Tomas to fill a new JVM bug or reopen the older one.
Bug 4623152 mentioned by Martin was problem in classloading that hid another crash in sockets - I reported part related to sockets as 4680160. Tomas, can you look if it is our case?
The crash is caused by lazy initialization of http server from executor, threads of the http server belongs to the executor ThreadGroup. When the process is killed, the core part of execution engine calls depricated stop method on the ThreadGroup. Implies that the http threads are killed. Some of the threads are in JNI socketAccept call, which was not ThreadDeath aware in JDK 1.4.1 and 1.4.0 and ThreadDeath causes JVM crash. Both parts of this bug (JDK and NetBeabs) are fixed.
Verified.
Closed. Hope this is OK ;-)