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 214401

Summary: Exception in thread "server-timer1" java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
Product: profiler Reporter: hborda
Component: IdeAssignee: issues@profiler <issues>
Status: RESOLVED WORKSFORME    
Severity: normal CC: thurka
Priority: P4    
Version: 7.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description hborda 2012-06-18 20:53:05 UTC
I'm running JBoss 7 and JDK 1.7.0_03-b05.

I'm running JVisualVM, which most of the features work very well, but when I try to profile my application then I get the following on the JBoss console:

Profiler Agent: Redefining 17 classes at idx 100, out of total 117
16:16:59,195 ERROR [stderr] (server-timer1) Exception in thread "server-timer1"java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
16:16:59,195 ERROR [stderr] (server-timer1)     at org.jboss.sun.net.httpserver.ServerImpl$ServerTimerTask1.run(ServerImpl.java:895)
16:16:59,195 ERROR [stderr] (server-timer1)     at java.util.TimerThread.mainLoop(Timer.java:555)
16:16:59,195 ERROR [stderr] (server-timer1)     at java.util.TimerThread.run(Timer.java:505)
 
I did a massive search and I could not find anything relevant to my case.

I'm really sorry if this is not the right forum to post this question.
Comment 1 hborda 2012-06-19 11:45:59 UTC
Petr, I see you have been assigned this, let me share with you what I already tried.


1- I copy jfluid-serverjar and jfluid-server-15.jar to the the "jboss" lib, also to the "standalone" lib and also to "my web application" lib. I always got the same exception.
2 - I modified JBoss standalone.bat and added this line
SET JBOSS_CLASSPATH=%JAVA_HOME%\lib\visualvm\profiler\lib\jfluid-server.jar;%JBOSS_CLASSPATH%
and I got the same exception.

Please let me know what else I could do to help and I will happy to do so.

Regards, Hugo
Comment 2 Petr Hejl 2012-12-18 14:59:56 UTC
Tomasi any advice on this? I'm not really familiar with profiler.
Comment 3 Tomas Hurka 2015-09-01 08:14:49 UTC
You need to modify JBoss startup arguments. JBoss has to be started with "-Djboss.modules.system.pkgs=org.jboss.byteman,org.netbeans.lib.profiler.server" system property.