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 92336 - Dynamic attach to a tomcat server throws unknown error
Summary: Dynamic attach to a tomcat server throws unknown error
Status: VERIFIED DUPLICATE of bug 92344
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-11 14:33 UTC by ehucka
Modified: 2007-01-12 14:03 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 2007-01-11 14:33:38 UTC
NetBeans IDE Dev (Build 200701101900)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Windows XP version 5.1 running on x86

Steps to reproduce:
1. configure tomcat server for dynamic attach through attach wizard -
autointegration
2. start the server
3. attach to the server using e.g. monitoring

Profiler throws an error dialog without message. Log of tomcat server contains:

Profiler Agent: JNI On Load Initializing...
Profiler Agent: JNI OnLoad Initialized succesfully
Profiler Agent: Waiting for connection on port 5140 (Protocol version: 4)

Profiler seems to be at:

org.netbeans.modules.profiler.NetBeansProfiler.displayError(NetBeansProfiler.java:1115)
org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:851)
org.netbeans.modules.profiler.actions.ProfilingSupport.doAttach(ProfilingSupport.java:448)

After confirmation of the error an exception was thrown to ide log:

java.lang.NullPointerException
        at
org.netbeans.modules.profiler.NetBeansProfiler.performInstrumentation(NetBeansProfiler.java:1749)
        at
org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:847)
        at
org.netbeans.modules.profiler.actions.ProfilingSupport.doAttach(ProfilingSupport.java:448)
        at
org.netbeans.modules.profiler.actions.AttachAction.actionPerformed(AttachAction.java:56)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 1 Tomas Hurka 2007-01-11 15:28:44 UTC

*** This issue has been marked as a duplicate of 92344 ***
Comment 2 ehucka 2007-01-12 14:03:22 UTC
verified