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 60468 - Profiler milestone 7 RC2 - StringIndexOutOfBoundsException running profiler from ant task
Summary: Profiler milestone 7 RC2 - StringIndexOutOfBoundsException running profiler f...
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: iformanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-23 23:23 UTC by sviyer
Modified: 2007-02-12 22:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message log (192.50 KB, text/plain)
2005-06-23 23:26 UTC, sviyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sviyer 2005-06-23 23:23:20 UTC
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
Comment 1 sviyer 2005-06-23 23:26:10 UTC
Created attachment 22876 [details]
message log
Comment 2 sviyer 2005-06-23 23:29:16 UTC
Profiler milestone 7 RC2
Comment 3 iformanek 2005-06-24 12:56:56 UTC
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.
Comment 4 ehucka 2006-10-09 12:09:53 UTC
Verification of old issues.
Comment 5 Alexander Kouznetsov 2007-02-12 22:26:33 UTC
Closing old issues.
Comment 6 Alexander Kouznetsov 2007-02-12 22:31:39 UTC
Closing old issues.