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 121042 - Refactoring Preview of Bpel file causes the project build to break
Summary: Refactoring Preview of Bpel file causes the project build to break
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-03 06:09 UTC by Sonali Kochar
Modified: 2007-11-06 11:33 UTC (History)
3 users (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 Sonali Kochar 2007-11-03 06:09:28 UTC
Steps to reproduce the issue:
1) Create a BluePrint1 project
2) Refactor -> Rename purchaseOrder.xsd to PO
3) Click on preview
4) In preview, select a Bpel file to preview the refactoring changes
5) Do refactoring

Clean and build the project. It should succeed

Now undo the changes. Clean and build the project it fails. If I now see the usages of purchaseOrder.xsd, it wont show
the Bpel file selected in step (4) above

If I try to open the Bpel file selected in step (4), I get the following error:

java.lang.AssertionError
       at org.netbeans.modules.bpel.nodes.children.ProcessChildren.getNodeKeys(ProcessChildren.java:73)
       at org.netbeans.modules.bpel.nodes.children.BpelNodeChildren.reload(BpelNodeChildren.java:116)
       at org.netbeans.modules.bpel.nodes.children.BpelNodeChildren.addNotify(BpelNodeChildren.java:108)
       at org.openide.nodes.Children.callAddNotify(Children.java:541)
       at org.openide.nodes.Children.getArray(Children.java:583)
       at org.openide.nodes.Children.getNodes(Children.java:422)
       at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.java:244)
       at org.openide.explorer.view.VisualizerNode.getChildCount(VisualizerNode.java:290)
       at javax.swing.tree.DefaultTreeModel.getChildCount(DefaultTreeModel.java:168)
       at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1461)
       at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1270)
       at javax.swing.tree.VariableHeightLayoutCache.rebuild(VariableHeightLayoutCache.java:725)
       at javax.swing.tree.VariableHeightLayoutCache.treeStructureChanged(VariableHeightLayoutCache.java:626)
       at javax.swing.plaf.basic.BasicTreeUI$Handler.treeStructureChanged(BasicTreeUI.java:3721)
       at javax.swing.tree.DefaultTreeModel.fireTreeStructureChanged(DefaultTreeModel.java:559)
       at javax.swing.tree.DefaultTreeModel.nodeStructureChanged(DefaultTreeModel.java:345)
       at javax.swing.tree.DefaultTreeModel.setRoot(DefaultTreeModel.java:117)
       at org.openide.explorer.view.NodeTreeModel$1.run(NodeTreeModel.java:106)
       at org.openide.util.Mutex.doEvent(Mutex.java:1203)
       at org.openide.util.Mutex.readAccess(Mutex.java:309)
       at org.openide.explorer.view.NodeTreeModel.setNode(NodeTreeModel.java:92)
       at org.openide.explorer.view.TreeView.synchronizeRootContext(TreeView.java:764)
       at org.openide.explorer.view.TreeView.lookupExplorerManager(TreeView.java:606)
       at org.openide.explorer.view.TreeView.addNotify(TreeView.java:586)
       at java.awt.Container.addImpl(Container.java:1052)
       at java.awt.Container.add(Container.java:351)
       at org.netbeans.modules.bpel.navigator.BpelNavigatorVisualPanel$3.run(BpelNavigatorVisualPanel.java:213)
       at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


If you use notepad or wordpad and open the bpel file selected in step(4), it will open and you can see the rename undo
did happen.
Comment 1 Sonali Kochar 2007-11-03 06:16:45 UTC
Few more observations:
1) If I refactor rename purchaseOder.xsd without any preview and then undo, the BluePrin1 project builds fine
2) If I refactor rename purchaseOrder.xsd, preview any wsdl file change, then undo, the BluePrint1 project builds fine
3) This issue happens only if I refactor preview a Bpel file changes

Not sure but could be related to issue 119856 
Comment 2 Vladimir Yaroslavskiy 2007-11-06 11:33:08 UTC
Fixed in Sierra:

Checking in AbstractModel.java;
/cvs/xml/xam/src/org/netbeans/modules/xml/xam/AbstractModel.java,v  <--  AbstractModel.java
new revision: 1.13.6.1; previous revision: 1.13

Checking in BpelModelImpl.java;
/cvs/enterprise/bpel/bpelapi/src/org/netbeans/modules/bpel/model/impl/BpelModelImpl.java,v  <--  BpelModelImpl.java
new revision: 1.6.10.4.2.1; previous revision: 1.6.10.4

Didn't fixed in trunk because NetBeans 6.0 in HiRes mode and P1 issues are allowed to be fixed only.