[JIRA] Created: (CAY-532) Modeler Client Class Generator fails to open with an exception

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Wed Apr 26 2006 - 07:41:26 EDT

  • Next message: Tore Halset (JIRA): "[JIRA] Created: (CAY-533) "Create Derived DbEntity"-button has wrong tooltip"

    Modeler Client Class Generator fails to open with an exception
    --------------------------------------------------------------

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

      Components: CayenneModeler GUI
        Versions: 1.2 [BETA]
        Reporter: Andrus Adamchik
     Assigned to: Andrus Adamchik
         Fix For: 1.2 [BETA]

    If a DataMap has client support enabled and has client entities with relationships, opening class generator dialog results in this exception:

    CayenneModeler Info
    Version: 1.2B2
    Build Date: April 17 2006
    Exception:
    =================================
    org.objectstyle.cayenne.CayenneRuntimeException: [v.1.2B2 April 17 2006] Entity 'Person' has no parent MappingNamespace (such as DataMap)
            at org.objectstyle.cayenne.map.Entity.getNonNullNamespace(Entity.java:397)
            at org.objectstyle.cayenne.map.Relationship.getNonNullNamespace(Relationship.java:182)
            at org.objectstyle.cayenne.map.ObjRelationship.getTargetEntity(ObjRelationship.java:147)
            at org.objectstyle.cayenne.modeler.dialog.codegen.GeneratorController.validateRelationship(GeneratorController.java:324)
            at org.objectstyle.cayenne.modeler.dialog.codegen.GeneratorController.validateEntity(GeneratorController.java:217)
            at org.objectstyle.cayenne.modeler.dialog.codegen.ClientModeController.validateEntity(ClientModeController.java:94)
            at org.objectstyle.cayenne.modeler.dialog.codegen.CodeGeneratorControllerBase.validate(CodeGeneratorControllerBase.java:108)
            at org.objectstyle.cayenne.modeler.dialog.codegen.CodeGeneratorController.generatorSelectedAction(CodeGeneratorController.java:124)
            at org.objectstyle.cayenne.modeler.dialog.codegen.CodeGeneratorController.initBindings(CodeGeneratorController.java:119)
            at org.objectstyle.cayenne.modeler.dialog.codegen.CodeGeneratorController.startup(CodeGeneratorController.java:98)
            at org.objectstyle.cayenne.modeler.action.GenerateCodeAction.performAction(GenerateCodeAction.java:83)
            at org.objectstyle.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:199)
            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.AbstractButton.doClick(AbstractButton.java:321)
            at apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:104)
            at java.awt.MenuItem.processActionEvent(MenuItem.java:589)
            at java.awt.MenuItem.processEvent(MenuItem.java:548)
            at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:285)
            at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:273)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:482)
            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 : Wed Apr 26 2006 - 07:41:50 EDT