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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_10

      Description

      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!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: