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 87963 - Error '0' after dynamic attach to an application
Summary: Error '0' after dynamic attach to an application
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 14:57 UTC by ehucka
Modified: 2006-11-13 14:41 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 ehucka 2006-10-25 14:57:44 UTC
profiler 061025, jdk 1.6.0 b102

Steps to reproduce:

1. set analyze performance, entire application
2. attach to a running application using dynamic attach
3. Error message dialog occurs with message '0'

The profiler agent stay running in attached application but profiler (in ide)
doesn't recognize it. It allows to attach to the application again. The profiled
application than throws:

Profiler Agent Error: Exception when trying to establish connection with client:
java.net.BindException: Address already in use
Comment 1 ehucka 2006-10-25 15:28:52 UTC
It seems strange error '0' is caused by exception found in ide log:

java.lang.ArrayIndexOutOfBoundsException: 0
com.sun.tools.profiler.wireprotocol.InitiateInstrumentationCommand.<init>(InitiateInstrumentationCommand.java:49)
com.sun.tools.profiler.ProfilerClient.initiateRecursiveCPUProfInstrumentation(ProfilerClient.java:393)
org.netbeans.modules.profiler.NetBeansProfiler.instrumentSelectedRoots(NetBeansProfiler.java:1045)
org.netbeans.profiler.common.Profiler.performInstrumentation(Profiler.java:154)
org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:850)
org.netbeans.modules.profiler.actions.ProfilingSupport.doAttach(ProfilingSupport.java:445)
org.netbeans.modules.profiler.actions.AttachAction.actionPerformed(AttachAction.java:56)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 2 Tomas Hurka 2006-10-27 13:59:14 UTC
Fixed in trunk.
Comment 3 ehucka 2006-11-13 14:41:28 UTC
verified