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.
Summary: | Validation tests are failing in testCreateReceive | ||
---|---|---|---|
Product: | soa | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | BPEL Project | Assignee: | Nikita Krjukov <supernikita> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | samaresh |
Priority: | P1 | Keywords: | TEST |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://deadlock.netbeans.org/hudson/job/trunk/2880/changes | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Skrivanek
2007-08-30 08:56:41 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. *** Issue 114259 has been marked as a duplicate of this issue. *** 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. Verified. |