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.

Bug 100641 - Immediate crash upon attach to JBoss
Summary: Immediate crash upon attach to JBoss
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
: 101815 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-11 16:07 UTC by jchristi
Modified: 2008-11-26 17:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jchristi 2007-04-11 16:07:25 UTC
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
Comment 1 Tomas Hurka 2007-04-26 12:31:26 UTC
*** Issue 101815 has been marked as a duplicate of this issue. ***
Comment 2 Tomas Hurka 2007-04-26 12:35:31 UTC
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).
Comment 3 Tomas Hurka 2007-04-27 08:50:14 UTC
*** Issue 101815 has been marked as a duplicate of this issue. ***
Comment 4 Alexander Kouznetsov 2007-04-27 08:59:12 UTC
TODO: Scenario from Issue 101815 should also be tested during Verification.
Comment 5 Tomas Hurka 2007-07-11 09:06:38 UTC
RetransformClasses fails with the following error:
JVMTI_ERROR_INVALID_CLASS (21)
Comment 6 Tomas Hurka 2007-07-11 10:12:54 UTC
RetransformClasses fails for org.apache.tomcat.jni.OS class.

Comment 7 Tomas Hurka 2007-08-22 12:59:42 UTC
Closing as wontfix, since I believe this is JDK bug. I will work with JDK team so they can fix this problem.
Comment 8 Alexander Kouznetsov 2007-09-10 17:55:36 UTC
Verified wontfix
Comment 9 jessholle 2008-03-26 12:39:14 UTC
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.
Comment 10 Tomas Hurka 2008-03-26 12:56:23 UTC
I am well aware of 6546266. It will be fixed in 6.1.
Comment 11 J Bachorik 2008-03-28 16:20:52 UTC
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
Comment 12 J Bachorik 2008-03-29 11:22:25 UTC
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
Comment 13 krzyk 2008-10-14 15:07:33 UTC
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

Comment 14 Tomas Hurka 2008-10-14 15:49:12 UTC
This is a different bug.
Comment 15 Rashid Urusov 2008-11-26 17:22:31 UTC
VERIFIED in Build 200811240201