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 113714 - CannotUndoException on Undo rename
Summary: CannotUndoException on Undo rename
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
: 114240 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-24 13:02 UTC by Ivan Sidorkin
Modified: 2007-09-25 17:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (1.81 KB, text/plain)
2007-08-24 13:03 UTC, Ivan Sidorkin
Details
see full messages.log (60.48 KB, text/plain)
2007-08-27 10:37 UTC, Ivan Sidorkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2007-08-24 13:02:52 UTC
Product Version: NetBeans IDE Dev (Build 200708211200) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

- create Asynchronous Sample
- open AsynchronousSampleClient.wsdl in WSDL view
- rename requestMessageClient using rrefactor->rename
- try undo using Refactor->Undo from main menu

exception
Comment 1 Ivan Sidorkin 2007-08-24 13:03:23 UTC
Created attachment 47299 [details]
exception
Comment 2 Vladimir Yaroslavskiy 2007-08-24 13:06:12 UTC
According stack trace the problem is in *xml* refactoring.
Comment 3 Sonali Kochar 2007-08-25 00:19:08 UTC
Everytime I do refactoring -> rename for the requestMessageClient, I see the following exception:

java.lang.IllegalStateException: Warning - the node "bpws:propertyAlias"
[org.netbeans.modules.xml.wsdl.ui.view.treeeditor.ExtensibilityElementNode] is trying to fire the property messageType
which is not included in its property sets. This is illegal. See IZ #31413 for details.
        at org.openide.nodes.Node.firePropertyChange(Node.java:907)
        at org.netbeans.modules.xml.wsdl.ui.view.treeeditor.WSDLElementNode.propertyChange(WSDLElementNode.java:497)
        at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:164)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
        at org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireCompleteEventSet(AbstractModel.java:449)
        at org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireEvents(AbstractModel.java:435)
        at org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:299)
        at org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:291)
        at org.netbeans.modules.bpel.refactoring.Renamer.rename(Renamer.java:304)
        at org.netbeans.modules.bpel.refactoring.Renamer.doRefactoring(Renamer.java:218)
        at org.netbeans.modules.xml.refactoring.XMLRefactoringTransaction.process(XMLRefactoringTransaction.java:204)
        at org.netbeans.modules.xml.refactoring.XMLRefactoringTransaction.commit(XMLRefactoringTransaction.java:114)
        at org.netbeans.modules.refactoring.api.RefactoringSession.doRefactoring(RefactoringSession.java:91)
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$8.run(ParametersPanel.java:333)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)

I am not sure if its related to the bug.

Can the bug filer check if they are seeing this exception?
Comment 4 Ivan Sidorkin 2007-08-27 10:37:50 UTC
Created attachment 47448 [details]
see full messages.log
Comment 5 Samaresh Panda 2007-08-30 16:14:11 UTC
*** Issue 114240 has been marked as a duplicate of this issue. ***
Comment 6 Sonali Kochar 2007-08-30 19:01:58 UTC
In both cases,this bug and as well as 114240, the exception only comes when one of the file containing the refactoring
target is closed. Investigating...

Comment 7 Sonali Kochar 2007-09-20 19:05:53 UTC
Checking in XMLRefactoringTransaction.java;
/cvs/xml/refactoring/src/org/netbeans/modules/xml/refactoring/XMLRefactoringTransaction.java,v  <-- 
XMLRefactoringTransaction.java
new revision: 1.17; previous revision: 1.16
done
Comment 8 tonybeckham 2007-09-25 17:14:59 UTC
Fix VERIFIED with build 200709250000.