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.
Build: NetBeans IDE Dev (Build 201204100400) VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Windows 7 User Comments: GUEST: Starting NetBeans Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 399 at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:0) at java.lang.StringBuilder.substring(StringBuilder.java:0) at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:0) at java.lang.StringBuilder.subSequence(StringBuilder.java:0) at org.netbeans.modules.html.parser.ElementsFactory$CommonAttribute.value(ElementsFactory.java:864) at org.netbeans.modules.html.parser.ElementsFactory$CommonAttribute.unquotedValue(ElementsFactory.java:883)
Created attachment 118087 [details] stacktrace
Not clear to me how exactly the situation happens so I've added some diagnostic code and will close the issue as fixed. It will be automatically reopened or new one created next time the problem happens. changeset: 219483:93305870588d summary: #210976 - StringIndexOutOfBoundsException: String index out of range: 399; #210909 - StringIndexOutOfBoundsException: String index out of range: 53 - adding some diagnostic code, not real fix!
(In reply to comment #2) > Not clear to me how exactly the situation happens Error appears while scanning projects, while the first run.
Created attachment 118127 [details] stacktrace I don't even know what happened... it was running on the background and when I switched back, I saw the error. The opened editor window had a css file.
Created attachment 118182 [details] stacktrace
Integrated into 'main-golden', will be available in build *201204120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/93305870588d User: Marek Fukala <mfukala@netbeans.org> Log: #210976 - StringIndexOutOfBoundsException: String index out of range: 399; #210909 - StringIndexOutOfBoundsException: String index out of range: 53 - adding some diagnostic code, not real fix!
Created attachment 118291 [details] stacktrace Opened a php project, a few previously opened files opened automatically and the error popped up.
Created attachment 118393 [details] stacktrace scaning projects
Created attachment 118432 [details] stacktrace scanning project. there must be some file like sql dump, swf or some other binary file under version control that is causing the error. having option to ignore some folders during scanning might be interesting.
Please try to use a build containing changeset http://hg.netbeans.org/web-main/rev/93305870588d (201204120400 or newer)
(In reply to comment #10) > Please try to use a build containing changeset > http://hg.netbeans.org/web-main/rev/93305870588d (201204120400 or newer) I am using daily builds e.g. exception report was sent using build 201204170400.
Created attachment 118449 [details] stacktrace
fixed in web-main#d985ec214fd7 I haven't expected attribute values > than 32k
*** Bug 210616 has been marked as a duplicate of this bug. ***
In regards to #11: will updating plugins be sufficient or do I need to download a complete nightly?
Integrated into 'main-golden', will be available in build *201204190400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d985ec214fd7 User: Marek Fukala <mfukala@netbeans.org> Log: #210976 - StringIndexOutOfBoundsException: String index out of range: 399
>In regards to #11: will updating plugins be sufficient or do I need to download >a complete nightly? No version increased => download a complete build please.
during downloading project on the new nightly build problem still occur
(In reply to comment #18) > during downloading project on the new nightly build problem still occur please add the stacktrace.
(In reply to comment #19) > (In reply to comment #18) > > during downloading project on the new nightly build problem still occur > > please add the stacktrace. disregard this. the stack is in the exception reports
another attempt in web-main#bce59664b1e5, but not very likely it really fixes the problem. kaes1977, would it be possible to find the file causing the exception. I'm afraid I'm bit out of ideas what can be the reason of the exception now. If it not possible, you could pack the whole project and attach it here or send it to me by email.
This is a file which cause error for sure. This is templates compile file by SMARTY
Created attachment 118615 [details] compile template smarty file
Reproducible using the attached file. Thank you
now really fixed in web-main#c4fc37612939
Integrated into 'main-golden', will be available in build *201204240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/bce59664b1e5 User: Marek Fukala <mfukala@netbeans.org> Log: #210976 - StringIndexOutOfBoundsException: String index out of range: 399
Created attachment 118687 [details] stacktrace Just a startup scan of several projects.
*** Bug 211616 has been marked as a duplicate of this bug. ***