Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8000752

jvisualvm profiler fails to profile oc4j.jar: 'Error: Agent JAR loaded but agent failed to initialize'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • None
    • tools
    • sparc
    • solaris_10

      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!

            thurka Tomáš Hůrka
            thlenz Thomas Lenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: