Trying to profile oc4j.jar with jvisualvm gives the following error dialog:
Error
Agent JAR loaded but agent failed to initiali...
OK
The behaviour is identical, regardless if the 'CPU' or the 'Memory' button is pressed within
jvisualvm's 'Profiler' tab.
Jvisualvm prints out the following exception message on the shell window:
% /data/jdk1.8.0/bin/jvisualvm
Exception in thread "Attach Listener" 12/10/11 13:23:39 java.lang.reflect.InvocationTargetException
12/10/11 13:23:39 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12/10/11 13:23:39 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
12/10/11 13:23:39 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12/10/11 13:23:39 at java.lang.reflect.Method.invoke(Method.java:474)
12/10/11 13:23:39 at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
12/10/11 13:23:39 at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:407)
12/10/11 13:23:39 Caused by: java.lang.NullPointerException
12/10/11 13:23:39 at org.netbeans.lib.profiler.server.ProfilerActivate15.getArchiveFile(ProfilerActivate15.java:40)
12/10/11 13:23:39 at org.netbeans.lib.profiler.server.ProfilerActivate15.activate(ProfilerActivate15.java:61)
12/10/11 13:23:39 at org.netbeans.lib.profiler.server.ProfilerActivate15.agentmain(ProfilerActivate15.java:26)
12/10/11 13:23:39 ... 6 more
Agent failed to start!
Error
Agent JAR loaded but agent failed to initiali...
OK
The behaviour is identical, regardless if the 'CPU' or the 'Memory' button is pressed within
jvisualvm's 'Profiler' tab.
Jvisualvm prints out the following exception message on the shell window:
% /data/jdk1.8.0/bin/jvisualvm
Exception in thread "Attach Listener" 12/10/11 13:23:39 java.lang.reflect.InvocationTargetException
12/10/11 13:23:39 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12/10/11 13:23:39 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
12/10/11 13:23:39 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12/10/11 13:23:39 at java.lang.reflect.Method.invoke(Method.java:474)
12/10/11 13:23:39 at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
12/10/11 13:23:39 at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:407)
12/10/11 13:23:39 Caused by: java.lang.NullPointerException
12/10/11 13:23:39 at org.netbeans.lib.profiler.server.ProfilerActivate15.getArchiveFile(ProfilerActivate15.java:40)
12/10/11 13:23:39 at org.netbeans.lib.profiler.server.ProfilerActivate15.activate(ProfilerActivate15.java:61)
12/10/11 13:23:39 at org.netbeans.lib.profiler.server.ProfilerActivate15.agentmain(ProfilerActivate15.java:26)
12/10/11 13:23:39 ... 6 more
Agent failed to start!
- duplicates
-
JDK-8024453 Integrate new version of Java VisualVM based on VisualVM 1.3.6 into JDK 8
- Resolved
- relates to
-
JDK-8024453 Integrate new version of Java VisualVM based on VisualVM 1.3.6 into JDK 8
- Resolved
-
JDK-8025825 Integrate new version of Java VisualVM based on VisualVM 1.3.6 into JDK 8
- Closed