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 46743

Summary: Exception when closing project
Product: editor Reporter: cezariusz <cezariusz>
Component: -- Other --Assignee: issues@editor <issues>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: messages.log

Description cezariusz 2004-07-29 14:20:39 UTC
When closing a project created with web wizard.
Comment 1 cezariusz 2004-07-29 14:21:48 UTC
Created attachment 16547 [details]
messages.log
Comment 2 cezariusz 2004-07-29 14:57:34 UTC
Another exception:

*********** Exception occurred ************ at 3:54 PM on Jul 29, 
2004
java.lang.IndexOutOfBoundsException: Invalid line index=1 >= 
lineCount=1
	at org.netbeans.editor.LineRootElement.getElement
(LineRootElement.java:54)
	at org.netbeans.editor.DrawEngineDocView.createCustomView
(DrawEngineDocView.java:217)
	at 
org.netbeans.lib.editor.view.GapBoxView.customReloadChildren
(GapBoxView.java:1797)
	at org.netbeans.editor.DrawEngineDocView.customReloadChildren
(DrawEngineDocView.java:184)
	at org.netbeans.lib.editor.view.GapBoxView.reloadChildren
(GapBoxView.java:1710)
	at org.netbeans.lib.editor.view.GapBoxView.getChildren
(GapBoxView.java:646)
	at org.netbeans.lib.editor.view.GapBoxView.setParent
(GapBoxView.java:627)
	at org.netbeans.lib.editor.view.GapDocumentView.setParent
(GapDocumentView.java:169)
	at org.netbeans.editor.DrawEngineDocView.setParent
(DrawEngineDocView.java:96)
	at org.netbeans.editor.view.spi.LockView.setParentLocked
(LockView.java:215)
	at org.netbeans.editor.view.spi.LockView.setParent
(LockView.java:193)
	at javax.swing.plaf.basic.BasicTextUI$RootView.setView
(Unknown Source)
	at javax.swing.plaf.basic.BasicTextUI.setView(Unknown Source)
	at org.netbeans.editor.BaseTextUI.modelChanged
(BaseTextUI.java:139)
	at 
javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange
(Unknown Source)
	at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange
(Unknown Source)
	at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange
(Unknown Source)
	at javax.swing.JComponent.firePropertyChange(Unknown Source)
	at org.openide.text.QuietEditorPane.firePropertyChange
(QuietEditorPane.java:42)
	at javax.swing.text.JTextComponent.setDocument(Unknown 
Source)
	at org.openide.text.CloneableEditor$1.run
(CloneableEditor.java:137)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
[catch] at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
*********** Exception occurred ************ at 3:54 PM on Jul 29, 
2004
java.lang.IndexOutOfBoundsException: Invalid line index=1 >= 
lineCount=1
	at org.netbeans.editor.LineRootElement.getElement
(LineRootElement.java:54)
	at org.netbeans.editor.DrawEngineDocView.createCustomView
(DrawEngineDocView.java:217)
	at 
org.netbeans.lib.editor.view.GapBoxView.customReloadChildren
(GapBoxView.java:1797)
	at org.netbeans.editor.DrawEngineDocView.customReloadChildren
(DrawEngineDocView.java:184)
	at org.netbeans.lib.editor.view.GapBoxView.reloadChildren
(GapBoxView.java:1710)
	at org.netbeans.lib.editor.view.GapBoxView.getChildren
(GapBoxView.java:646)
	at org.netbeans.lib.editor.view.GapBoxView.setParent
(GapBoxView.java:627)
	at org.netbeans.lib.editor.view.GapDocumentView.setParent
(GapDocumentView.java:169)
	at org.netbeans.editor.DrawEngineDocView.setParent
(DrawEngineDocView.java:96)
	at org.netbeans.editor.view.spi.LockView.setParentLocked
(LockView.java:215)
	at org.netbeans.editor.view.spi.LockView.setParent
(LockView.java:193)
	at javax.swing.plaf.basic.BasicTextUI$RootView.setView
(Unknown Source)
	at javax.swing.plaf.basic.BasicTextUI.setView(Unknown Source)
	at org.netbeans.editor.BaseTextUI.modelChanged
(BaseTextUI.java:139)
	at 
javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange
(Unknown Source)
	at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange
(Unknown Source)
	at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange
(Unknown Source)
	at javax.swing.JComponent.firePropertyChange(Unknown Source)
	at org.openide.text.QuietEditorPane.firePropertyChange
(QuietEditorPane.java:42)
	at javax.swing.text.JTextComponent.setDocument(Unknown 
Source)
	at org.openide.text.CloneableEditor$1.run
(CloneableEditor.java:137)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
[catch] at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Comment 3 cezariusz 2004-07-29 15:00:17 UTC
And now when opening another project:

*********** Exception occurred ************ at 3:58 PM on Jul 29, 
2004
java.lang.NullPointerException
	at 
org.netbeans.modules.web.project.ProjectWebModule.getWebInf
(ProjectWebModule.java:111)
	at 
org.netbeans.modules.web.project.ProjectWebModule.getDeploymentDescri
ptor(ProjectWebModule.java:67)
	at 
org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.pro
jectOpened(WebProject.java:426)
	at 
org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened
(ProjectOpenedHook.java:49)
	at 
org.netbeans.modules.project.ui.OpenProjectList.notifyOpened
(OpenProjectList.java:316)
	at org.netbeans.modules.project.ui.OpenProjectList.open
(OpenProjectList.java:135)
	at 
org.netbeans.modules.project.ui.actions.OpenProject.actionPerformed
(OpenProject.java:68)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown 
Source)
	at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed
(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown 
Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown 
Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown 
Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
[catch] at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Comment 4 _ tboudreau 2004-07-29 21:02:51 UTC
Passing to editor for evaluation, but looks like a JDK bug to me.  I know some problems 
like this in BoxView were fixed in JDK 1.5.
Comment 5 Martin Roskanin 2004-07-30 14:00:38 UTC
Issue was already fixed.

*** This issue has been marked as a duplicate of 45765 ***
Comment 6 cezariusz 2004-09-16 16:07:14 UTC
Works ok.