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 66959

Summary: [50cat] Cannot open file from Versioning window when it's being diffed
Product: versioncontrol Reporter: misterm <misterm>
Component: CVSAssignee: issues@versioncontrol <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description misterm 2005-10-17 13:53:53 UTC
[ BUILD # : 20051013 ]
[ JDK VERSION : 1.4.2_xx ]

Steps to reproduce:

1. Go to the Versioning window and choose Resolve conflicts for a file;
2. Go to the Versioning window and try to open the file being diffed.

The following exception occurs:

java.lang.IllegalArgumentException: Reopen #58766: interface org.openide.cookies.EditorCookie
	at org.netbeans.modules.versioning.system.cvss.ui.syncview.OpenInEditorAction.openByCookie(OpenInEditorAction.java:83)
	at org.netbeans.modules.versioning.system.cvss.ui.syncview.OpenInEditorAction.openDataObjectByCookie(OpenInEditorAction.java:67)
	at org.netbeans.modules.versioning.system.cvss.ui.syncview.OpenInEditorAction.actionPerformed(OpenInEditorAction.java:54)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 misterm 2005-10-17 13:55:24 UTC
Once this error happens, it's not possible to open the file anymore even if the 
diff tab is closed.
Comment 2 misterm 2005-10-17 13:57:21 UTC
Restarting the IDE does not make this action available again for the file. 
Raising priority.
Comment 3 misterm 2005-10-17 14:23:26 UTC
This also happens if the "Diff all" panel is opened.
Comment 4 _ pkuzel 2005-10-17 14:44:18 UTC
Typo in OpenInEditorAction.openByCookie()
Comment 5 _ pkuzel 2005-10-17 14:49:33 UTC
Checking in OpenInEditorAction.java;
/shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/ui/syncview/OpenInEditorAction.java,v
 <--  OpenInEditorAction.java
new revision: 1.6; previous revision: 1.5
done