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 79187 - NPE and IDE freeze when closing BPEL source editor with Discard changes option
Summary: NPE and IDE freeze when closing BPEL source editor with Discard changes option
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-27 10:58 UTC by Mikhail Kondratyev
Modified: 2006-07-24 11:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Kondratyev 2006-06-27 10:58:31 UTC
Steps to reproduce:
 - create a new BPEL module 
 - open BPEL, switch to sources
 - make a change in the BPEL (type a space for example), do not save
 - close the editor tab
 - dialog will popup asking if you want to save your changes or dicard them.
 - choose Discard
NPE will be thrown, IDE sometimes hang after you close the exception dialog

I was not able to reproduce the issue with the same XML (.bpel renamed to .xml)
file and a JavaApplication project

Exception details:
java.lang.NullPointerException
	at
org.netbeans.modules.xml.text.completion.GrammarManager.isGuarded(GrammarManager.java:164)
	at
org.netbeans.modules.xml.text.completion.GrammarManager.removeUpdate(GrammarManager.java:134)
	at
org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:57)
	at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243)
	at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1299)
	at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:731)
	at org.openide.text.CloneableEditorSupport$3.run(CloneableEditorSupport.java:619)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:220)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:357)
	at
org.openide.text.CloneableEditorSupport.clearDocument(CloneableEditorSupport.java:613)
	at
org.openide.text.CloneableEditorSupport.access$1200(CloneableEditorSupport.java:84)
	at org.openide.text.CloneableEditorSupport$4.run(CloneableEditorSupport.java:1331)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:220)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:357)
	at
org.openide.text.CloneableEditorSupport.reloadDocument(CloneableEditorSupport.java:1296)
	at
org.netbeans.modules.bpel.core.BPELDataEditorSupport.reloadDocument(BPELDataEditorSupport.java:231)
	at
org.netbeans.modules.bpel.core.BPELDataEditorSupport$CloseHandler.resolveCloseOperation(BPELDataEditorSupport.java:410)
	at org.netbeans.core.multiview.MultiViewPeer.canClose(MultiViewPeer.java:477)
	at
org.netbeans.core.multiview.MultiViewCloneableTopComponent.canClose(MultiViewCloneableTopComponent.java:283)
	at org.netbeans.core.windows.Central.removeModeTopComponent(Central.java:726)
	at org.netbeans.core.windows.Central.userClosedTopComponent(Central.java:1539)
	at
org.netbeans.core.windows.view.DefaultView.userClosedTopComponent(DefaultView.java:724)
	at
org.netbeans.core.windows.view.ui.TabbedHandler.actionPerformed(TabbedHandler.java:292)
	at
org.netbeans.swing.tabcontrol.TabbedContainer.postActionEvent(TabbedContainer.java:658)
	at
org.netbeans.swing.tabcontrol.TabbedContainerUI.shouldPerformAction(TabbedContainerUI.java:134)
	at
org.netbeans.swing.tabcontrol.plaf.DefaultTabbedContainerUI.access$2600(DefaultTabbedContainerUI.java:80)
	at
org.netbeans.swing.tabcontrol.plaf.DefaultTabbedContainerUI$DisplayerActionListener.actionPerformed(DefaultTabbedContainerUI.java:1229)
	at
org.netbeans.swing.tabcontrol.TabDisplayer.postActionEvent(TabDisplayer.java:513)
	at
org.netbeans.swing.tabcontrol.TabDisplayerUI.shouldPerformAction(TabDisplayerUI.java:144)
	at
org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI.access$1500(BasicTabDisplayerUI.java:74)
	at
org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI$BasicDisplayerMouseListener.performCommand(BasicTabDisplayerUI.java:687)
	at
org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI$BasicDisplayerMouseListener.potentialCommand(BasicTabDisplayerUI.java:672)
	at
org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI$BasicDisplayerMouseListener.mouseReleased(BasicTabDisplayerUI.java:720)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5955)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3285)
	at java.awt.Component.processEvent(Component.java:5720)
	at java.awt.Container.processEvent(Container.java:1960)
	at java.awt.Component.dispatchEventImpl(Component.java:4365)
	at java.awt.Container.dispatchEventImpl(Container.java:2018)
	at java.awt.Component.dispatchEvent(Component.java:4195)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4222)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3886)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3816)
	at java.awt.Container.dispatchEventImpl(Container.java:2004)
	at java.awt.Window.dispatchEventImpl(Window.java:2210)
	at java.awt.Component.dispatchEvent(Component.java:4195)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Denis Anisimov 2006-06-27 11:06:25 UTC
The problem appears only for non-serialized editor.
So it could be reproduced with newly created project or for project where 
editor was not opened in previous IDE startup ( so editor was not serialized ).
Comment 2 Denis Anisimov 2006-07-14 18:48:59 UTC
It is fixed via creating stub grammar for bpel.
Actually , I believe this is bug in generic editor.
So we will need to coordinate it with NB editor team.
Comment 3 Mikhail Kondratyev 2006-07-24 11:29:28 UTC
Verified in build from 060723