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 71087 - Can't instrument freeform project classes
Summary: Can't instrument freeform project classes
Status: CLOSED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-06 13:47 UTC by clever
Modified: 2007-03-14 10:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Settings (14.23 KB, image/png)
2006-01-06 13:47 UTC, clever
Details
Attempting to profile class (4.94 KB, image/png)
2006-01-06 13:48 UTC, clever
Details
Result after attempting to profile from ant target (in build.xml) (5.49 KB, image/png)
2006-01-06 13:48 UTC, clever
Details

Note You need to log in before you can comment on or make changes to this bug.
Description clever 2006-01-06 13:47:21 UTC
Using Netbeans 5.0 / 12222005 build, I have a web project containing ant targets
that call main classes with various parameters.  It seems that even main classes
that I can right-click and run exhibit the "can't profile" problem.

Also, it's worth noting that the profiler works correctly for the web
application. It attaches to Tomcat and runs just fine. I see metrics and
instrumented methods under that scenario.

When I create a java application project, the options appear, and I am able to
profile. It seems to be a problem with freeform projects, or web projects
containing ant targets to main classes.

Attached are screenshots showing my settings and experience.
Comment 1 clever 2006-01-06 13:47:44 UTC
Created attachment 28233 [details]
Settings
Comment 2 clever 2006-01-06 13:48:16 UTC
Created attachment 28234 [details]
Attempting to profile class
Comment 3 clever 2006-01-06 13:48:51 UTC
Created attachment 28235 [details]
Result after attempting to profile from ant target (in build.xml)
Comment 4 clever 2006-01-06 13:49:38 UTC
FYI, this is the ant target that invokes the profiler::

<target name="HR Synchronization - Full (w/ Profiler)" description="Synchronize
data with HR" depends="compile">
    <nbprofiledirect>
        <classpath path="${build.classes.dir}:${javac.classpath}" />
    </nbprofiledirect>
   
    <java fork="true" classname=" com.tekelec.corpdir.tools.MaintenanceMan">
      <jvmarg value="${profiler.info.jvmargs.agent}"/>
      <classpath path="${build.classes.dir}:${javac.classpath }" />
      <arg value="-hrsynch" />
      <arg value="-full" />
    </java>
  </target>
Comment 5 clever 2006-01-06 13:50:00 UTC
And, the version of profiler is M11. (Sorry! It's early :))
Comment 6 iformanek 2006-01-06 18:27:27 UTC
Thanks for the bugreport.
Can you please attach the IDE log and the profiled application output?
Comment 7 Tomas Hurka 2006-09-15 09:33:56 UTC
Closing as works-for-me, until more information is available.
Comment 8 Alexander Kouznetsov 2007-03-14 10:02:45 UTC
Closing old issues