[OS-JIRA] Created: (CAY-245) Unable to generate classes in modeler.

From: jir..bjectstyle.org
Date: Sun Dec 05 2004 - 20:24:46 EST

  • Next message: Andrus Adamchik: "Re: XML Encoder/Decoder Beta"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-245

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-245
        Summary: Unable to generate classes in modeler.
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 CayenneModeler GUI
       Versions:
                 1.1
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Marek Wawrzyczny

        Created: Sun, 5 Dec 2004 8:23 PM
        Updated: Sun, 5 Dec 2004 8:23 PM
    Environment: Sun Java 1.5.0 on Linux 2.6.10. Tried Cayenne 1.1RC2 binary and a 1.2 build.

    Description:
    Attempts to generate java classes for a model in Cayenne 1.1/1.2 result in following exception:

    CayenneModeler Info
    Version: 1.1RC2
    Build Date: October 24 2004
    Exception:
    =================================
    org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1RC2 October 24 2004]
    Error generating PK : too many rows for entity: domain
     at
    org.objectstyle.cayenne.dba.JdbcPkGenerator$PkRetrieveProcessor.nextDataRows(JdbcPkGenerator.java:445)
     at org.objectstyle.cayenne.access.DataNode.runSelect(DataNode.java:418)
     at org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:350)
     at
    org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.java:179)
     at org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:263)
     at
    org.objectstyle.cayenne.dba.JdbcPkGenerator.pkFromDatabase(JdbcPkGenerator.java:377)
     at
    org.objectstyle.cayenne.dba.JdbcPkGenerator.generatePkForDbEntity(JdbcPkGenerator.java:325)
     at
    org.objectstyle.cayenne.access.util.PrimaryKeyHelper.createPermIdsForObjEntity(PrimaryKeyHelper.java:183)
            at
    org.objectstyle.cayenne.access.ContextCommit.createPrimaryKeys(ContextCommit.java:580)
            at
    org.objectstyle.cayenne.access.ContextCommit.commit(ContextCommit.java:142)
            at
    org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:1266)
            at
    org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:1236)
            at org.objectstyle.cayenne.pref.Domain.getSubdomain(Domain.java:166)
            at org.objectstyle.cayenne.pref.Domain.getSubdomain(Domain.java:136)
            at org.objectstyle.cayenne.pref.Domain.getSubdomain(Domain.java:126)
            at
    org.objectstyle.cayenne.modeler.ProjectController.getPreferenceDomainForDataDomain(ProjectController.java:215)
            at
    org.objectstyle.cayenne.modeler.ProjectController.getDataMapPreferences(ProjectController.java:230)
            at
    org.objectstyle.cayenne.modeler.dialog.classgen.ClassGeneratorController.prepareModel(ClassGeneratorController.java:99)
            at
    org.objectstyle.cayenne.modeler.dialog.classgen.ClassGeneratorController.<init>(ClassGeneratorController.java:93)
            at
    org.objectstyle.cayenne.modeler.action.GenerateClassesAction.generateClasses(GenerateClassesAction.java:90)
            at
    org.objectstyle.cayenne.modeler.action.GenerateClassesAction.performAction(GenerateClassesAction.java:86)
            at
    org.objectstyle.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:188)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
            at
    javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
            at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
            at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
            at
    javax.swing.plaf.basic.BasicPopupMenuUI$Actions.doReturn(BasicPopupMenuUI.java:419)
            at
    javax.swing.plaf.basic.BasicPopupMenuUI$Actions.actionPerformed(BasicPopupMenuUI.java:393)
            at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
            at javax.swing.JComponent.processKeyBinding(JComponent.java:2730)
            at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
            at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:204)
            at
    javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2807)
            at javax.swing.JComponent.processKeyBindings(JComponent.java:2799)
            at javax.swing.JComponent.processKeyEvent(JComponent.java:2693)
            at java.awt.Component.processEvent(Component.java:5265)
            at java.awt.Container.processEvent(Container.java:1966)
            at java.awt.Component.dispatchEventImpl(Component.java:3955)
            at java.awt.Container.dispatchEventImpl(Container.java:2024)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at
    java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
            at
    java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:668)
     at
    java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:916)
     at
    java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:794)
     at
    java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:632)
     at java.awt.Component.dispatchEventImpl(Component.java:3841)
     at java.awt.Container.dispatchEventImpl(Container.java:2024)
     at java.awt.Window.dispatchEventImpl(Window.java:1766)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
     at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
     at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Sun Dec 05 2004 - 20:24:48 EST