cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-1974) Copy/Paste DbEntiry throws exception
Date Fri, 28 Nov 2014 11:33:12 GMT

    [ https://issues.apache.org/jira/browse/CAY-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228245#comment-14228245
] 

ASF GitHub Bot commented on CAY-1974:
-------------------------------------

GitHub user thinline72 opened a pull request:

    https://github.com/apache/cayenne/pull/40

    CAY-1974 | Copy/Paste DbEntity throws exception

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/thinline72/cayenne CAY-1974

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cayenne/pull/40.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #40
    
----
commit e4fa56af60bee81bb96e30cfa9dc08b91f016fb8
Author: Savva Kolbachev <s.kolbachev@gmail.com>
Date:   2014-11-28T11:30:48Z

    CAY-1974 | Copy/Paste DbEntity throws exception

----


> Copy/Paste DbEntiry throws exception
> ------------------------------------
>
>                 Key: CAY-1974
>                 URL: https://issues.apache.org/jira/browse/CAY-1974
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 4.0.M2
>         Environment: Mac OS X 10.10.1, Sun JDK 1.7.0_71
>            Reporter: Andrey Koyro
>
> When I try to copy and then paste DbEntity I get the exception:
> CayenneModeler Info
> Version: 4.0.M2.fba700d
> Build Date: Nov 25 2014 17:37:06
> Exception: 
> =================================
> java.lang.ClassCastException: org.apache.cayenne.configuration.DataChannelDescriptor
cannot be cast to org.apache.cayenne.map.DataMap
> 	at org.apache.cayenne.map.naming.NameCheckers$6.isNameInUse(NameCheckers.java:97)
> 	at org.apache.cayenne.map.naming.DefaultUniqueNameGenerator.generate(DefaultUniqueNameGenerator.java:94)
> 	at org.apache.cayenne.map.naming.DefaultUniqueNameGenerator.generate(DefaultUniqueNameGenerator.java:85)
> 	at org.apache.cayenne.map.naming.DefaultUniqueNameGenerator.generate(DefaultUniqueNameGenerator.java:64)
> 	at org.apache.cayenne.modeler.action.PasteAction.paste(PasteAction.java:262)
> 	at org.apache.cayenne.modeler.action.PasteAction.paste(PasteAction.java:148)
> 	at org.apache.cayenne.modeler.action.PasteAction.performAction(PasteAction.java:132)
> 	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:162)
> 	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
> 	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
> 	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
> 	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> 	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
> 	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
> 	at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:157)
> 	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
> 	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
> 	at java.awt.Component.processMouseEvent(Component.java:6525)
> 	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
> 	at java.awt.Component.processEvent(Component.java:6290)
> 	at java.awt.Container.processEvent(Container.java:2234)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4881)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2292)
> 	at java.awt.Component.dispatchEvent(Component.java:4703)
> 	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
> 	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
> 	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2278)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2739)
> 	at java.awt.Component.dispatchEvent(Component.java:4703)
> 	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
> 	at java.awt.EventQueue.access$400(EventQueue.java:97)
> 	at java.awt.EventQueue$3.run(EventQueue.java:697)
> 	at java.awt.EventQueue$3.run(EventQueue.java:691)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> 	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
> 	at java.awt.EventQueue$4.run(EventQueue.java:719)
> 	at java.awt.EventQueue$4.run(EventQueue.java:717)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message