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.
Summary: | StringIndexOutOfBoundsException: String index out of range: 0 | ||
---|---|---|---|
Product: | java | Reporter: | Ondrej Vrabec <ovrabec> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | akobberup, Chiana, gtg, gtzabari, helderneres, janario, jglick, jskrivanek, KhArtNJava, lforet, magicbank, markiewb, michbarsinai, mklaehn, mps77, ovrabec, ralphbenjamin, rburkhead, rodrigorsantos, sreimers, ssazonov, tboudreau, tnleeuw, tstupka |
Priority: | P1 | Keywords: | NO74 |
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 204608 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace err. log. stacktrace stacktrace stacktrace stacktrace |
Description
Ondrej Vrabec
2013-10-16 10:07:36 UTC
Created attachment 141139 [details]
stacktrace
Created attachment 141157 [details]
stacktrace
while editing
Created attachment 141163 [details]
stacktrace
trying to work
Created attachment 141176 [details]
stacktrace
Coding
Created attachment 141177 [details]
stacktrace
.
Created attachment 141201 [details]
stacktrace
.
Created attachment 141206 [details]
stacktrace
coding
Created attachment 141241 [details]
stacktrace
coding?
happens too often Created attachment 141248 [details]
stacktrace
this happens quite often simply when coding. All highlightings disappear and i need to reopen the file
The easiest way to reproduce this is to try clicking on the "bug" link in the Exception Reporter tab. It's 100% reproducible :) Sorry. Please ignore my last comment. I was confusing this with another exception. Created attachment 141347 [details]
stacktrace
coding
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=204608 Created attachment 141360 [details]
stacktrace
editing java source, completion on method was running.
Created attachment 141369 [details]
stacktrace
Not sure, noticed this exception while editing.
Created attachment 141389 [details]
stacktrace
using codecompletion in java file
Created attachment 141481 [details]
stacktrace
anoying
Created attachment 141495 [details]
stacktrace
indenting a line using shift+option+left arrow
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=204608 Created attachment 141531 [details]
stacktrace
punching in late evening code!
Created attachment 141672 [details]
stacktrace
Had the line
context.setContextPath("/");
and typed inside the parens "args.length > 0 ? args[0] :" to end up with
context.setContextPath(args.length > 0 ? args[0] : "/");
in a main method
Created attachment 141676 [details]
stacktrace
Typed in Object o = org.jboss.logging.BasicLogger.class;
Created attachment 141701 [details]
stacktrace
Removed the first character ( a / ) from the beginning of a java file by accident and then pressed ctrl+z to undo.
Created attachment 141747 [details]
stacktrace
<Please provide a description of the problem or the steps to reproduce>
Created attachment 141748 [details]
stacktrace
<Please provide a description of the problem or the steps to reproduce>
Created attachment 141750 [details]
stacktrace
<Please provide a description of the problem or the steps to reproduce>
Created attachment 141756 [details]
stacktrace
Writing code
Created attachment 141759 [details]
stacktrace
Was typing "private stat" in order to make "private static final long" after pasting "serialVersionUID = 6045816782746445251" on the line, the pasted text was copied from an error message in the output window.
Created attachment 141760 [details]
stacktrace
Was continuing to type after reporting id #698429
Created attachment 141761 [details]
stacktrace
Seems this occurs when you STOP typing
Dusan must be getting 10,000 emails a day from this issue by now :) Do we need to improve logging for this issue, or do you understand what's triggering this? Created attachment 141791 [details]
stacktrace
This happens so frequently as to make the IDE unusable.
Typically after this happens 20-30 times, I wind up with the AWT thread frozen - not a deadlock per-se, since only one lock is involved, but these are the threads which share the NbEditorDocument - not sure if this is related or not: "AWT-EventQueue-0" prio=10 tid=0x00007f69ac523000 nid=0x6fb1 in Object.wait() [0x00007f69b96c6000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:503) at javax.swing.text.AbstractDocument.writeLock(AbstractDocument.java:1344) - locked <0x000000077250aab8> (a org.netbeans.modules.editor.NbEditorDocument) at org.netbeans.editor.BaseDocument.extWriteLock(BaseDocument.java:1673) at org.netbeans.editor.BaseDocument.atomicLockImpl(BaseDocument.java:1721) - locked <0x000000077250aab8> (a org.netbeans.modules.editor.NbEditorDocument) - locked <0x000000077250aab8> (a org.netbeans.modules.editor.NbEditorDocument) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:347) at org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.java:1339) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1664) at javax.swing.JComponent.processKeyBinding(JComponent.java:2878) at javax.swing.JComponent.processKeyBindings(JComponent.java:2925) at javax.swing.JComponent.processKeyEvent(JComponent.java:2841) at java.awt.Component.processEvent(Component.java:6282) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727) at java.awt.Component.dispatchEventImpl(Component.java:4731) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) "org.netbeans.api.progress.ProgressUtils" daemon prio=10 tid=0x00007f6974402800 nid=0x705f in Object.wait() [0x00007f69b9ccb000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:503) at javax.swing.text.AbstractDocument.writeLock(AbstractDocument.java:1344) - locked <0x000000077250aab8> (a org.netbeans.modules.editor.NbEditorDocument) at org.netbeans.editor.BaseDocument.extWriteLock(BaseDocument.java:1673) at org.netbeans.editor.BaseDocument.atomicLockImpl(BaseDocument.java:1721) - locked <0x000000077250aab8> (a org.netbeans.modules.editor.NbEditorDocument) - locked <0x000000077250aab8> (a org.netbeans.modules.editor.NbEditorDocument) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:347) at org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1655) at org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:150) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042) Created attachment 141853 [details]
stacktrace
...
Created attachment 141854 [details]
err. log.
I am really looking forward to this being fixed, as
A) like Tim writes it is pretty disruptive to the experience, and
B) I am no fan of having the content of my java files logged in the IDE log. I use netbeans for my work, and as long as the class files are logged in messages.log i dont dare send in slowness reports or any other exception reports from the exception reporter directly, as i will not have my work classes shared with the world!
The attached stacktrace + debug is from daily build 201311050001.
Created attachment 141890 [details]
stacktrace
Editing java class.
Created attachment 141893 [details]
stacktrace
Editing java file.
Created attachment 142028 [details]
stacktrace
Typing in Java editor invoking code completion
Created attachment 142110 [details]
stacktrace
Navigating with alt - cursor keys
Already fixed. *** This bug has been marked as a duplicate of bug 237479 *** |