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 247483 - Agent JAR loaded but failed to initialize
Summary: Agent JAR loaded but failed to initialize
Status: RESOLVED DUPLICATE of bug 243540
Alias: None
Product: profiler
Classification: Unclassified
Component: Attach (show other bugs)
Version: 8.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 01:03 UTC by SireeshJ
Modified: 2014-09-26 10:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SireeshJ 2014-09-26 01:03:53 UTC
Steps to reproduce:

1. Running java 7 play framework 1.x application on eclipse.
2. Attach the Netbeans 8.0.1 profiler to the server process.
3. Get the following exception

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
	at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:407)
Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\NetBeans 8.0.1\profiler\lib\deployed\jdk16\windows\profilerinterface.dll: The specified procedure could not be found
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
	at java.lang.Runtime.load0(Runtime.java:795)
	at java.lang.System.load(System.java:1062)
	at org.netbeans.lib.profiler.server.ProfilerServer.loadNativeLibrary(ProfilerServer.java:828)
	at org.netbeans.lib.profiler.server.ProfilerActivate15.activate(ProfilerActivate15.java:135)
	at org.netbeans.lib.profiler.server.ProfilerActivate15.agentmain(ProfilerActivate15.java:64)
	... 6 more


Expected Result: Profiler should get attached to the application to be instrumented.

I got the save result on trying to profile a vanilla java 7 application running through eclipse as well.
Comment 1 Jiri Sedlacek 2014-09-26 08:13:25 UTC
Already filed, profiler 8.0+ doesn't work on Windows XP. As a workaround please use profiler 7.4.

*** This bug has been marked as a duplicate of bug 243540 ***
Comment 2 SireeshJ 2014-09-26 10:21:56 UTC
Thanks for your response!