ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shylesh <shyles...@yahoo.com>
Subject StringIndexOutOfbounds Exception while using ant1.3 (on Windows ME)to build examples bundled with J2EE Tutorial from java.sun.com
Date Mon, 06 May 2002 13:30:23 GMT
When I tried to build the examples bundled with j2ee
tutorial in the ..\j2eetutorial\examples directory
using the ant 1.3 on Windows ME I got the following
exception.Anybody please help me.
*********************************************************************
StringIndexOutOfboundsException
*********************************************************************
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples> ant
-verbose all
Ant version 1.3 compiled on March 2 2001

Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows Me
parsing buildfile
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml
with URI
=
file:D:/JAVATUTORIAL/J2EE/j2eetutorial/examples/build.xml
Project base dir set to:
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples
Build sequence for target `all' is [init,
savingsaccount, bank, cart, checker, c
onfirmer, converter, enroller, order, salesrep,
storagebin, teller, htmlreader,
warehouse, simplemessage, cmproster, ejb, date,
hello1, hello2, bookstore1, web-
ejb, bookstore2, bookstore3, web, all]
Complete build sequence is [init, savingsaccount,
bank, cart, checker, confirmer
, converter, enroller, order, salesrep, storagebin,
teller, htmlreader, warehous
e, simplemessage, cmproster, ejb, date, hello1,
hello2, bookstore1, web-ejb, boo
kstore2, bookstore3, web, all,
create-storagebin-table, get-cci-jar, procs, cci,
connector, create-salesrep-table, create-procs-alias,
create-coffee-table, abou
t, create-enroller-table, create-savingsaccount-table,
create-web-db, create-war
ehouse-table, create-bank-table, clean,
create-order-table, create-teller-table,
prepare, create-ejb-db]

init:
[property] Loading Environment myenv.

BUILD FAILED

D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19:
D:\JAVATUTORIAL\J2EE\j2
eetutorial\examples\build.xml:19:
java.lang.StringIndexOutOfBoundsException: Str
ing index out of range: -1
--- Nested Exception ---
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19:
java.lang.StringIndexOu
tOfBoundsException: String index out of range: -1
--- Nested Exception ---
java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
at java.lang.String.substring(String.java:1476)
at
org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
248)
at
org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
at
org.apache.tools.ant.Target.execute(Target.java:153)
at
org.apache.tools.ant.Project.runTarget(Project.java:898)
at
org.apache.tools.ant.Project.executeTarget(Project.java:536)
at
org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 2 seconds
D:\JAVATUTORIAL\J2EE\j2eetutorial\examples>

********************************************************************* 

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message