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 114194 - Validation tests are failing in testCreateReceive
Summary: Validation tests are failing in testCreateReceive
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nikita Krjukov
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: TEST
: 114259 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-30 08:56 UTC by Jiri Skrivanek
Modified: 2007-09-03 11:31 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.
Comment 1 Andrei Chistiakov 2007-08-30 16:06:34 UTC
The issue caused by NPE which is thrown on attempt of saving a modified BPEL document.

java.lang.NullPointerException
	at org.netbeans.modules.xml.api.XmlFileEncodingQueryImpl.getEncoding(XmlFileEncodingQueryImpl.java:65)
	at
org.netbeans.modules.openide.loaders.DataObjectEncodingQueryImplementation.getEncoding(DataObjectEncodingQueryImplementation.java:64)
	at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:71)
	at org.openide.text.DataEditorSupport.saveFromKitToStream(DataEditorSupport.java:300)
	at org.openide.text.CloneableEditorSupport$1SaveAsReader.run(CloneableEditorSupport.java:808)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1162)
	at org.openide.text.CloneableEditorSupport.saveDocument(CloneableEditorSupport.java:855)
	at org.openide.text.DataEditorSupport.saveDocument(DataEditorSupport.java:321)
	at org.netbeans.modules.bpel.core.BPELDataEditorSupport.saveDocument(BPELDataEditorSupport.java:142)
	at org.netbeans.modules.bpel.core.BPELDataObject$1.save(BPELDataObject.java:124)
	at org.openide.actions.SaveAction.performAction(SaveAction.java:58)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:559)
	at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:55)
	at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:555)
	at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:933)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2895)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
	at java.awt.Component.processEvent(Component.java:5815)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
	at java.awt.Component.dispatchEventImpl(Component.java:4282)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[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)

Steps to reproduce:
- create a new BPEL Module;
- add a new BPEL process into it;
- drop Invoke activity from BPEL Palette on the diagram;
- save the BPEL document.

The exception is thrown. Also the dialog saying that the document is modified externally appears. That dialog is
unexpected and fails the UI tests.
Comment 2 Jesse Glick 2007-08-30 16:23:10 UTC
*** Issue 114259 has been marked as a duplicate of this issue. ***
Comment 3 Nikita Krjukov 2007-08-30 20:10:46 UTC
I fixed the NPE simply by adding a check. So the NPE shouldn't appear again. 
The reason was in problems with creation of the InputStream. 

It's a bit difficult to me to do deep investigation of the real reasons. 
But I hope my changes will be sufficient. 

Reopen the issue if you are not satisfied. 
Comment 4 Jiri Skrivanek 2007-09-03 11:31:56 UTC
Verified.