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.
When opening a web-project that is configured to use ivy (using http://wiki.netbeans.org/FaqIvy), i get a StringIndexOutOfBoundsException: String index out of range: -1 exception. Under netbeans 6.0 I was able to open the project, but would get an exception when going to the libraries panel in the project properties. Normal java library projects work without any issues.
Created attachment 58497 [details] Messages.log
I tried it and it works fine to me. I guess it may depend on jars being used? Would it be possible to attach your project? I mean content of nbproject folder and ivy.xml. Thanks, -D
Created attachment 59311 [details] Simple test project
Attached a zip of a project folder that causes the error for me. I've replicated this with both 6.1beta1 and the daily build of 6.1 from Mar 25.
Thanks. The problem is in org.netbeans.modules.j2ee.common.project.classpath.ClassPathSupport.Item.getSourceReference() which assumes that any property name always starts with "${file.reference.". Short term workaround: rename in project.properties your 'ivy.classpath' to 'ivy.classpathX' which makes length of property ("${ivy.classpathX}") longer than 16 and will pass above mentioned broken algorithm.
I can see that's been fixed for J2SE project. I will fix in web then.
Ported bug fix of issue 127164 to web. Be aware that this will not get into 6.1 final release as it is too late. Candidate for patch release. http://hg.netbeans.org/main?cmd=changeset;node=2ec03984d191
.
*** Issue 137250 has been marked as a duplicate of this issue. ***
As the nomination process goes forward with NetBeans 6.1 Patch 3 and beyond, low priority defects from P3 to P5 should include a justification and a safety assessment when nominated for patch inclusion. Could QE provide that info?
This issue did not meet the criteria for inclusion in NetBeans 6.1 Patch 3.
Erasing from Sustaining team's radar.
Reopening - reproduced in NetBeans IDE 6.1 (Build 200805300101) http://statistics.netbeans.org/exceptions/detail.do?id=127809
wrongly reopen - old build, I'll look at the bug in reporter reopening