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.
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.
Created attachment 28233 [details] Settings
Created attachment 28234 [details] Attempting to profile class
Created attachment 28235 [details] Result after attempting to profile from ant target (in build.xml)
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>
And, the version of profiler is M11. (Sorry! It's early :))
Thanks for the bugreport. Can you please attach the IDE log and the profiled application output?
Closing as works-for-me, until more information is available.
Closing old issues