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.
I tried to attach to a JBoss app server that was starting up and the JVM immediately crashed. A popup window showed up my desktop saying: Microsoft Visual C++ Runtime Library, Program: C:\Program Files\Java\jdk1.6.0_01\bin\java.exe File:..\src-jdk15\class_file_cache.c Line: 118 Expression: res == JVMTI_ERROR_NONE The below showed up in the java console at the time: Profiler Agent: JNI On Load Initializing... Profiler Agent: JNI OnLoad Initialized succesfully <O,03/29/07 22:05:13 UTC,STDOUT> Profiler Agent: Waiting for connection on port 5140 (Protocol version: 6) <O,03/29/07 22:05:13 UTC,STDOUT> Profiler Agent: Established local connection with the tool <R,03/29/07 22:05:13 UTC,STDERR> Failed to load MBeanServerBuilder class org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org. jboss.mx.server.MBeanServerBuilderImpl cache_loade_classes, classes 4401 Retransform called Retransform end
*** Issue 101815 has been marked as a duplicate of this issue. ***
This looks like JDK bug. The same steps produce JVM crash on Linux. This is reported as JDK bug #6546266 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6546266).
TODO: Scenario from Issue 101815 should also be tested during Verification.
RetransformClasses fails with the following error: JVMTI_ERROR_INVALID_CLASS (21)
RetransformClasses fails for org.apache.tomcat.jni.OS class.
Closing as wontfix, since I believe this is JDK bug. I will work with JDK team so they can fix this problem.
Verified wontfix
See resolution on http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6546266. Either this is a NetBeans bug or a JDK bug -- but it is not neither. In the JDC bug cited, the JDK guys are now saying it is a NetBeans bug and make it sound like the NetBeans guys agreed. At any rate a fix is needed for NB 6.1 *and* 6.0 as this is a pretty embarrassing hole.
I am well aware of 6546266. It will be fixed in 6.1.
fix in trunk changeset: 76492:5361e990261e tag: tip user: yardus@netbeans.org date: Fri Mar 28 16:20:33 2008 +0100 summary: #100641 - Immediate crash upon attach to JBoss
sorry, due to troubles with HG the changeset with fix has changed changeset: 76680:3984163fbdb6 tag: tip user: yardus@netbeans.org date: Sat Mar 29 11:18:57 2008 +0100 summary: #100641 -Immediate crash upon attach to JBoss
As this problem still happens on 6.1 I'm reopenning this bug. I'm trying to connect to a jetty server using: VisualVm 1.0.1, NetBeans 6.1 profiler and NetBeans 6.5 profiler. I'm using dynamic attach. Every time my jetty server craches with something like this: Profiler Agent: JNI On Load Initializing... Profiler Agent: JNI OnLoad Initialized succesfully Profiler Agent: Waiting for connection on port 5140 (Protocol version: 8) Profiler Agent: Established local connection with the tool Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x062cd0c5, pid=9861, tid=3014458256 # # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing linux-x86) # Problematic frame: # V [libjvm.so+0x2cd0c5] # # An error report file with more information is saved as: # /home/sg0891848/dev/airgui/java/airgui-services/hs_err_pid9861.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp
This is a different bug.
VERIFIED in Build 200811240201