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.

Bug 70702 - ArrayIndexOutOfBoundsException When Adding Directory
Summary: ArrayIndexOutOfBoundsException When Adding Directory
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2005-12-21 15:44 UTC by qpolarbear
Modified: 2009-12-21 07:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log File (122.04 KB, text/plain)
2005-12-21 15:45 UTC, qpolarbear
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qpolarbear 2005-12-21 15:44:47 UTC
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.
Comment 1 qpolarbear 2005-12-21 15:45:24 UTC
Created attachment 28013 [details]
Log File
Comment 2 Martin Entlicher 2005-12-22 15:23:56 UTC
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.
Comment 3 qpolarbear 2005-12-30 16:19:55 UTC
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.
Comment 4 Quality Engineering 2009-12-21 07:42:53 UTC
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