[izpack-user] Fatal Error: String index out of range when target file not given

15 views
Skip to first unread message

Kareem Shehata

unread,
Jul 8, 2010, 2:18:18 PM7/8/10
to us...@izpack.codehaus.org
Not sure if this is a bug, but the error message is really confusing when the parameter for the target XML file isn't given.  Here's what I get:

$ $IZPACKBIN/compile  -h $IZPACKBIN 
.::  IzPack - Version 4.3.3 ::.

< compiler specifications version: 1.0 >

- Copyright (c) 2001-2008 Julien Ponge
- Visit http://izpack.org/ for the latest releases
- Released under the terms of the Apache Software License version 2.0.

-> Fatal error :
  String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at com.izforge.izpack.compiler.CompilerConfig.main(Unknown Source)
at com.izforge.izpack.compiler.Compiler.main(Unknown Source)

(tip : use -? to get the commmand line parameters)


Whereas this command works:

$ $IZPACKBIN/compile install.xml -h $IZPACKBIN 


Is this a known issue?  If not, any chance this could be fixed in a future version to give a reasonable error message?

Thanks,

Kareem


--
Kareem Shehata
kshe...@aeryon.com
Aeryon Labs Inc
519-489-6726 x254

Reply all
Reply to author
Forward
0 new messages