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 92236 - Cannot profile j2ee application using glassfish
Summary: Cannot profile j2ee application using glassfish
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks: 91682
  Show dependency tree
 
Reported: 2007-01-10 16:00 UTC by ehucka
Modified: 2007-01-12 11:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
crash log (6.47 KB, text/plain)
2007-01-11 09:23 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2007-01-10 16:00:17 UTC
NetBeans IDE Dev (Build 200701091900)
1.5.0_11; Java HotSpot(TM) Client VM 1.5.0_11-b03
Windows XP version 5.1 running on x86

I cannot profile any j2ee application with glassfish server. I tried to monitor
e.g. TomcatServletExample on glassfish v1 ur1 p01 b02 and it always failed by
nbproject\profiler-build-impl.xml:31: Starting server in profile mode failed.
Comment 1 Peter Pis 2007-01-10 16:11:56 UTC
Eman, should this issue be considered as a show stopper for M6?
Comment 2 ehucka 2007-01-10 17:39:05 UTC
Set as showstopper for m6.
Comment 3 ehucka 2007-01-10 18:19:15 UTC
Local direct attach to a glassfish produced this exception:

Could not load Logmanager "com.sun.enterprise.server.logging.ServerLogManager"
java.lang.ClassNotFoundException: com.sun.enterprise.server.logging.ServerLogManager
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.util.logging.LogManager$1.run(LogManager.java:166)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:156)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at com.sun.jmx.trace.Trace.initDestination(Trace.java:46)
        at com.sun.jmx.trace.Trace.<clinit>(Trace.java:25)
        at javax.management.MBeanServerFactory.debug(MBeanServerFactory.java:543)
        at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServ
erFactory.java:502)
        at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanSer
verFactory.java:530)
        at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory
.java:304)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFact
ory.java:219)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFact
ory.java:180)
        at sun.management.ManagementFactory.createPlatformMBeanServer(Management
Factory.java:264)
        at java.lang.management.ManagementFactory.getPlatformMBeanServer(Managem
entFactory.java:512)
        at com.sun.tools.profiler.server.system.HeapDump.initialize(HeapDump.jav
a:33)
        at com.sun.tools.profiler.server.ProfilerInterface.initProfilerInterface
(ProfilerInterface.java:98)
        at com.sun.tools.profiler.server.ProfilerServer.initSupportingFunctional
ity(ProfilerServer.java:186)
        at com.sun.tools.profiler.server.ProfilerServer.doActivate(ProfilerServe
r.java:394)
        at com.sun.tools.profiler.server.ProfilerServer.activate(ProfilerServer.
java:345)
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  Internal Error (455843455054494F4E530E4350500112), pid=5384, tid=4764
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
# An error report file with more information is saved as hs_err_pid5384.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Profiler Agent: Initializing...
Profiler Agent: Options: >"E:\Builds\dev\NetBeans m6\profiler1\lib",5140<
Profiler Agent: Initialized succesfully


Is it related to this issue?
Comment 4 Tomas Hurka 2007-01-11 07:44:47 UTC
Emane yes, it is.
It is a bug in glassfish and/or JDK. Please attach crash log. 
See https://glassfish.dev.java.net/issues/show_bug.cgi?id=1409
Please add your comments to glassfish issue and also report JDK crash.
I will try to find some workaround.
Comment 5 ehucka 2007-01-11 09:23:09 UTC
Created attachment 37251 [details]
crash log
Comment 6 Tomas Hurka 2007-01-11 09:26:12 UTC
Please add bug ID and link to JDK bug. 
Comment 7 Tomas Hurka 2007-01-11 14:32:52 UTC
Workaround found and committed to trunk.
Comment 8 ehucka 2007-01-12 08:34:20 UTC
It was reported as jdk bug 6512128.
Comment 9 ehucka 2007-01-12 11:50:37 UTC
verified