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.
I am running profiler milestone 7 RC2 (latest) with NB 4.2 22 June Night build. I have used milestone 6 with an older NB 4.2 Night build successfully with no problems. Anyway this is what I get on running the task ------------------------------------------------------------------- java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.String.substring(String.java:1780) at java.lang.String.substring(String.java:1747) at com.sun.tools.profiler.TargetAppRunner.startTargetVM(TargetAppRunner.java:149) at com.sun.tools.profiler.TargetAppRunner.startTargetVM(TargetAppRunner.java:115) at org.netbeans.modules.profiler.NetBeansProfiler$2.run(NetBeansProfiler.java:340) at org.openide.util.Task.run(Task.java:207) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:419) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:794) ----------------------------------------------------------------------------- please find message log attached
Created attachment 22876 [details] message log
Profiler milestone 7 RC2
Fixed post RC2 This problem is caused by the fact that the nbprofile ant task is called manually from the build script, without going through the Select Task ui in the profiler GUI. In M7, the profiler needs to know the location of the java executable to use and its version. The issue will be fixed, so that the nbprofile target throws a BuildException in this case with the following text: The java executable and java version need to be provided in the following properties: profiler.session.java.executable - String filename of java executable to use profiler.session.java.version - \"jdk142\" for JDK 1.4 or \"jdk15\" for 5.0 or 6.0 See http://profiler.netbeans.org/docs/help/antTasksForProfiling.html for details.
Verification of old issues.
Closing old issues.