Visual Editor throws exceptions during undo execution
-----------------------------------------------------
Key: JBIDE-1045
URL:
http://jira.jboss.com/jira/browse/JBIDE-1045
Project: JBoss Tools
Issue Type: Bug
Environment: Windows XP Professional
Reporter: Denis Golovin
Assigned To: Sergey Vasilyev
Fix For: 2.0.0.xulrunner
1. Create seam web project
2. Open WebContent/login.xhtml
3. select login button
4. increase button width using resizer (DnD right square to the right, release DnD)
5. then drag upper center resizer square up and drop it
6. try undo the changes by Ctrl-Z
Exception occurs:
java.lang.ClassCastException: $Proxy12
at
org.jboss.tools.vpe.editor.template.VpeCopyCreator.removeAttribute(VpeCopyCreator.java:124)
at
org.jboss.tools.vpe.editor.template.VpeHtmlTemplate.removeAttribute(VpeHtmlTemplate.java:558)
at
org.jboss.tools.vpe.editor.template.VpeHtmlTemplate.removeAttribute(VpeHtmlTemplate.java:544)
at
org.jboss.tools.vpe.editor.template.VpeHtmlTemplate.removeAttribute(VpeHtmlTemplate.java:170)
at
org.jboss.tools.vpe.editor.VpeVisualDomBuilder.removeAttribute(VpeVisualDomBuilder.java:984)
at org.jboss.tools.vpe.editor.VpeController.notifyChanged(VpeController.java:363)
at
org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:201)
at
org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notify(XMLModelNotifierImpl.java:238)
at
org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyDeferred(XMLModelNotifierImpl.java:340)
at
org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:178)
at
org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:163)
at
org.eclipse.wst.sse.core.internal.undo.StructuredTextUndoManager.undo(StructuredTextUndoManager.java:648)
at
org.eclipse.wst.sse.ui.StructuredTextViewerUndoManager.undo(StructuredTextViewerUndoManager.java:183)
at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3693)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:857)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1429)
at
org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation(StructuredTextViewer.java:502)
at
org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor$JSPStructuredTextViewer.doOperation(JSPTextEditor.java:627)
at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129)
at
org.jboss.tools.vpe.editor.VpeVisualKeyHandler.ctrlKeyPressHandler(VpeVisualKeyHandler.java:134)
at
org.jboss.tools.vpe.editor.VpeVisualKeyHandler.keyPressHandler(VpeVisualKeyHandler.java:95)
at org.jboss.tools.vpe.editor.VpeController.keyPress(VpeController.java:844)
at
org.jboss.tools.vpe.editor.mozilla.MozillaDomEventListener.handleEvent(MozillaDomEventListener.java:162)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2264)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3291)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira