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 209445 - Unable to attach to CVM target due to unsupported Java API (Integer.valueOf)
Summary: Unable to attach to CVM target due to unsupported Java API (Integer.valueOf)
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 7.1
Hardware: PC All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 03:21 UTC by sdeboy
Modified: 2012-03-17 10:38 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 sdeboy 2012-03-12 03:21:34 UTC
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)
Comment 1 Tomas Hurka 2012-03-12 13:32:08 UTC
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
Comment 2 Quality Engineering 2012-03-17 10:38:28 UTC
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