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.
I am successfully configuring a CVM application to be profiled with Netbeans 7.1. However, when I try to attach from Netbeans, I get this error in my client log. I believe if I used retrotranslator to remove any 1.5 fields from the classes used by the client I would be able to successfully attach. This used to work fine in Netbeans 6.8. 20120311 19:41:51.626 INFO RI.Stack.StdOut- Profiler Agent: Standard session 20120311 19:41:51.678 INFO RI.Stack.StdOut- java.lang.NoSuchMethodError: java.lang.Integer: method valueOf(I)Ljava/lang/Integer; not found 20120311 19:41:51.679 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.global.TransactionalSupport.lockExclusively(TransactionalSupport.java:189) 20120311 19:41:51.679 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.global.TransactionalSupport.beginTrans(TransactionalSupport.java:90) 20120311 19:41:51.679 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.global.TransactionalSupport.beginTrans(TransactionalSupport.java:76) 20120311 19:41:51.679 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.global.ProfilingSessionStatus.beginTrans(ProfilingSessionStatus.java:275) 20120311 19:41:51.679 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.global.ProfilingSessionStatus.resetInstrClassAndMethodInfo(ProfilingSessionStatus.java:288) 20120311 19:41:51.680 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.server.ProfilerInterface.initiateProfiling(ProfilerInterface.java:575) 20120311 19:41:51.680 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.server.ProfilerServer.handleClientCommand(ProfilerServer.java:1399) 20120311 19:41:51.680 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1714) 20120311 19:41:51.680 INFO RI.Stack.StdOut- at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:685) 20120311 19:41:51.681 INFO RI.Stack.StdOut- at java.lang.Thread.startup(Thread.java:785)
Profiling should work now. Sampling (which is new in NetBeans 7.1) will need more work. Fixed in profiler-main changeset: 214783:583d9c9dc2f0 user: Tomas Hurka <thurka@netbeans.org> date: Mon Mar 12 14:27:47 2012 +0100 summary: bugfix #209445, server part of profiler must use JDK 1.4 API
Integrated into 'main-golden', will be available in build *201203170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/583d9c9dc2f0 User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #209445, server part of profiler must use JDK 1.4 API