[ 
https://issues.apache.org/jira/browse/CAY-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Timofeev closed CAY-2318.
--------------------------------
       Resolution: Fixed
         Assignee: Nikita Timofeev
    Fix Version/s: 4.1.M1

> Query. Exception after Undo clicking
> ------------------------------------
>
>                 Key: CAY-2318
>                 URL: https://issues.apache.org/jira/browse/CAY-2318
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 4.0.B1
>         Environment: Win7 x64
>            Reporter: Yury Harachka
>            Assignee: Nikita Timofeev
>            Priority: Minor
>             Fix For: 4.1.M1
>
>         Attachments: 1.png
>
>
> *Steps:*
> 1. Press on 'Create Query' button
> 2. Select in dialog 'Raw SQL' and press 'Create' button
> 3. Open 'SQL Scripts' tab
> -> 'Default' item is selected by default
> 4. Type any text into string on the right
> 5. Select another item eg. 'Generic JDBC Adapter'
> 6. Press on Undo button
> *Actual:* Exception occurs (see 1.png)
> {code}22.05.2017 20:38:04 INFO: Starting CayenneModeler.
> 22.05.2017 20:38:04 INFO: JRE v.1.8.0_131 at C:\Program Files 
> (x86)\Java\jre1.8.0_131
> 22.05.2017 20:38:06 INFO: Loading XML configuration resource from 
> file:/D:/QA/PostgreSQL/cayenne-project.xml
> 22.05.2017 20:38:06 INFO: Loading XML DataMap resource from 
> file:/D:/QA/PostgreSQL/datamap.map.xml
> 22.05.2017 20:38:26 ERROR: CayenneModeler Error
> javax.swing.undo.CannotUndoException
>       at javax.swing.text.GapContent$InsertUndo.undo(Unknown Source)
>       at javax.swing.undo.CompoundEdit.undo(Unknown Source)
>       at javax.swing.text.AbstractDocument$DefaultDocumentEvent.undo(Unknown 
> Source)
>       at javax.swing.undo.CompoundEdit.undo(Unknown Source)
>       at 
> org.apache.cayenne.modeler.undo.TextCompoundEdit.undo(TextCompoundEdit.java:181)
>       at javax.swing.undo.UndoManager.undoTo(Unknown Source)
>       at javax.swing.undo.UndoManager.undo(Unknown Source)
>       at 
> org.apache.cayenne.modeler.undo.CayenneUndoManager.undo(CayenneUndoManager.java:80)
>       at 
> org.apache.cayenne.modeler.action.UndoAction.performAction(UndoAction.java:57)
>       at 
> org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
>       at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>       at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>       at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>       at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>       at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
> Source)
>       at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
>       at java.awt.Component.processMouseEvent(Unknown Source)
>       at javax.swing.JComponent.processMouseEvent(Unknown Source)
>       at java.awt.Component.processEvent(Unknown Source)
>       at java.awt.Container.processEvent(Unknown Source)
>       at java.awt.Component.dispatchEventImpl(Unknown Source)
>       at java.awt.Container.dispatchEventImpl(Unknown Source)
>       at java.awt.Component.dispatchEvent(Unknown Source)
>       at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>       at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>       at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>       at java.awt.Container.dispatchEventImpl(Unknown Source)
>       at java.awt.Window.dispatchEventImpl(Unknown Source)
>       at java.awt.Component.dispatchEvent(Unknown Source)
>       at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
>       at java.awt.EventQueue.access$500(Unknown Source)
>       at java.awt.EventQueue$3.run(Unknown Source)
>       at java.awt.EventQueue$3.run(Unknown Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)
>       at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)
>       at java.awt.EventQueue$4.run(Unknown Source)
>       at java.awt.EventQueue$4.run(Unknown Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)
>       at java.awt.EventQueue.dispatchEvent(Unknown Source)
>       at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>       at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>       at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>       at java.awt.EventDispatchThread.run(Unknown Source)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to