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.
I had 4 versioned directories. I selected all 4, clicked remove, then went to add a directory and received an ArrayIndexOutOfBoundsException. [Fatal Error] :-1:-1: Premature end of file. javax.swing.text.BadLocationException: docLength=0: Invalid offset+length=3 at org.netbeans.editor.DocumentContent.checkBounds(DocumentContent.java:290) at org.netbeans.editor.DocumentContent.getString(DocumentContent.java:135) at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:777) at org.netbeans.modules.editor.java.NbJavaFoldManager$InitialCommentProcessor.token(NbJavaFoldManager.java:610) at org.netbeans.editor.SyntaxSupport.tokenizeText(SyntaxSupport.java:401) at org.netbeans.modules.editor.java.NbJavaFoldManager.collectNonParsingFoldUpdates(NbJavaFoldManager.java:357) at org.netbeans.modules.editor.java.NbJavaFoldManager.collectFoldUpdates(NbJavaFoldManager.java:299) at org.netbeans.modules.editor.java.NbJavaFoldManager.updateFolds(NbJavaFoldManager.java:210) at org.netbeans.modules.editor.java.NbJavaFoldManager.run(NbJavaFoldManager.java:193) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:471) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:904) *********** Exception occurred ************ at 9:39 AM on Dec 21, 2005 java.lang.ArrayIndexOutOfBoundsException: 1 at org.netbeans.modules.vcs.advanced.VcsCustomizer.updateConfigurations(VcsCustomizer.java:2297) at org.netbeans.modules.vcs.advanced.VcsCustomizer.setObject(VcsCustomizer.java:2462) at org.netbeans.modules.vcs.advanced.wizard.mount.MountWizardData.<init>(MountWizardData.java:56) at org.netbeans.modules.vcs.advanced.wizard.mount.MountWizardIterator.initialize(MountWizardIterator.java:89) at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:70) at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:169) at org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:187) at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:425) at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:346) at org.netbeans.modules.vcscore.actions.VcsMountFromTemplateAction.performAction(VcsMountFromTemplateAction.java:148) at org.openide.util.actions.NodeAction.performAction(NodeAction.java:255) at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:94) at org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:81) at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74) at org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:24) at org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:72) at org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:41) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:471) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:904) Full log is also attached. It should also be noted that I am using the 5.0 Clear Case module.
Created attachment 28013 [details] Log File
I was not successful in reproducing this. Are you able to reproduce this exception? From the code it looks like a threading issue, which is very rare. The Add button must be pressed before all versioned directories are removed... there is a very small time interval in the code which can cause the inconsistency that caused this exception. Due to this it's almost unreproducible and IMHO not much serious, since the next invocation of Add should be O.K. Therefore moving to P4. Please provide more specific info of how to reproduce if it's really happening regularly to you. Thanks.
I tried three or four more times and am unable to reproduce it again. I agree that the window which this fails in is probably fairly small.
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. We apologize for any inconvenience. Thank you. The NetBeans Team