[JIRA] Created: (CAY-690) Exception in the Modeler when changing schema on derived entities

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Fri Oct 13 2006 - 14:55:32 EDT

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Created: (CAY-691) ClassNotFoundException on query validation"

    Exception in the Modeler when changing schema on derived entities
    -----------------------------------------------------------------

             Key: CAY-690
             URL: http://issues.apache.org/cayenne/browse/CAY-690
         Project: Cayenne
            Type: Bug

      Components: CayenneModeler GUI
        Versions: 3.0, 2.0 [STABLE]
        Reporter: Andrus Adamchik
     Assigned to: Andrus Adamchik
        Priority: Trivial
         Fix For: 3.0

    When doing a global schema change, I get this error:

    SEVERE: Failed to handle Control: Control(cayenne.modeler.datamap.defaultprefs.update.button,null)
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-incubating-SNAPSHOT ] Can't change schema of a derived entity.
            at org.apache.cayenne.map.DerivedDbEntity.setSchema(DerivedDbEntity.java:184)
            at org.apache.cayenne.modeler.dialog.datamap.SchemaUpdateController.updateSchema(SchemaUpdateController.java:78)
            at org.apache.cayenne.modeler.dialog.datamap.SchemaUpdateController.doHandleControl(SchemaUpdateController.java:61)
            at org.scopemvc.controller.basic.BasicController.handleControl(Unknown Source)
            at org.scopemvc.view.swing.SwingUtil.issueControl(Unknown Source)
            at org.scopemvc.view.swing.SButton.issueControl(Unknown Source)
            at org.scopemvc.view.swing.SButton.fireActionPerformed(Unknown Source)
            at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
            at java.awt.Component.processMouseEvent(Component.java:5166)
            at java.awt.Component.processEvent(Component.java:4963)
            at java.awt.Container.processEvent(Container.java:1613)
            at java.awt.Component.dispatchEventImpl(Component.java:3681)
            at java.awt.Container.dispatchEventImpl(Container.java:1671)
            at java.awt.Component.dispatchEvent(Component.java:3543)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
            at java.awt.Container.dispatchEventImpl(Container.java:1657)
            at java.awt.Window.dispatchEventImpl(Window.java:1606)
            at java.awt.Component.dispatchEvent(Component.java:3543)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.Dialog$1.run(Dialog.java:540)
            at java.awt.Dialog.show(Dialog.java:561)
            at java.awt.Component.show(Component.java:1133)
            at java.awt.Component.setVisible(Component.java:1088)
            at org.scopemvc.controller.swing.SwingContext$4.run(Unknown Source)
            at org.scopemvc.view.swing.SwingUtil.runFromSwingEventThread(Unknown Source)
            at org.scopemvc.controller.swing.SwingContext.setupWindow(Unknown Source)
            at org.apache.cayenne.modeler.Application$ModelerContext.showViewInDialog(Application.java:332)
            at org.scopemvc.controller.swing.SwingContext.showView(Unknown Source)
            at org.scopemvc.controller.basic.BasicController.showView(Unknown Source)
            at org.scopemvc.controller.basic.BasicController.showView(Unknown Source)
            at org.scopemvc.controller.basic.BasicController.startup(Unknown Source)
            at org.apache.cayenne.modeler.dialog.datamap.SchemaUpdateController.startup(SchemaUpdateController.java:56)
            at org.apache.cayenne.modeler.editor.DataMapView.updateDefaultSchema(DataMapView.java:526)
            at org.apache.cayenne.modeler.editor.DataMapView$11.actionPerformed(DataMapView.java:226)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
            at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
            at java.awt.Component.processMouseEvent(Component.java:5166)
            at java.awt.Component.processEvent(Component.java:4963)
            at java.awt.Container.processEvent(Container.java:1613)
            at java.awt.Component.dispatchEventImpl(Component.java:3681)
            at java.awt.Container.dispatchEventImpl(Container.java:1671)
            at java.awt.Component.dispatchEvent(Component.java:3543)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
            at java.awt.Container.dispatchEventImpl(Container.java:1657)
            at java.awt.Window.dispatchEventImpl(Window.java:1606)
            at java.awt.Component.dispatchEvent(Component.java:3543)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators:
       http://issues.apache.org/cayenne/secure/Administrators.jspa
    -
    For more information on JIRA, see:
       http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Fri Oct 13 2006 - 14:56:20 EDT