CayenneModeler Exception

From: Dave Dombrosky (dombr..mail.com)
Date: Mon Aug 22 2005 - 13:19:09 EDT

  • Next message: Andrus Adamchik: "Re: CayenneModeler Exception"

    Hi,

    I am starting a new project, and have decided to use Cayenne, but I
    cannot seem to get the CayenneModeler working properly. Could it
    possibly be happening because I am using the 1.5.0_04 version of Java
    when the installation steps say to use Java 1.4?

    All I am doing is creating a new project, clicking on the
    UntitledDomain, and then I click on "Create DataNode", and then it
    gives me the following error:

    CayenneModeler Info
    Version: 1.1.2
    Build Date: April 28 2005
    Exception:
    =================================
    org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1.2 April 28
    2005] 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.modeler.ProjectController.getPreferenceDomainForProject(ProjectController.java:198)
            at org.objectstyle.cayenne.modeler.ProjectController.getPreferenceDomainForDataDomain(ProjectController.java:215)
            at org.objectstyle.cayenne.modeler.ProjectController.getDataNodePreferences(ProjectController.java:246)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
            at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:904)
            at ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:54)
            at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
            at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
            at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
            at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
            at ognl.SimpleNode.getValue(SimpleNode.java:213)
            at ognl.ASTChain.getValueBody(ASTChain.java:109)
            at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
            at ognl.SimpleNode.getValue(SimpleNode.java:213)
            at ognl.Ognl.getValue(Ognl.java:333)
            at ognl.Ognl.getValue(Ognl.java:413)
            at ognl.Ognl.getValue(Ognl.java:395)
            at org.objectstyle.cayenne.swing.BindingBase.getValue(BindingBase.java:198)
            at org.objectstyle.cayenne.swing.ComboSelectionBinding.updateView(ComboSelectionBinding.java:119)
            at org.objectstyle.cayenne.modeler.editor.datanode.DataNodeEditor.refreshLocalDataSources(DataNodeEditor.java:331)
            at org.objectstyle.cayenne.modeler.editor.datanode.DataNodeEditor.refreshView(DataNodeEditor.java:345)
            at org.objectstyle.cayenne.modeler.editor.datanode.DataNodeEditor$2.currentDataNodeChanged(DataNodeEditor.java:267)
            at org.objectstyle.cayenne.modeler.ProjectController.fireDataNodeDisplayEvent(ProjectController.java:498)
            at org.objectstyle.cayenne.modeler.ProjectTreeView.processSelection(ProjectTreeView.java:751)
            at org.objectstyle.cayenne.modeler.ProjectTreeView$1.valueChanged(ProjectTreeView.java:144)
            at javax.swing.JTree.fireValueChanged(JTree.java:2399)
            at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:2770)
            at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629)
            at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1078)
            at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:287)
            at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:170)
            at javax.swing.JTree.setSelectionPath(JTree.java:1174)
            at org.objectstyle.cayenne.modeler.ProjectTreeView.showNode(ProjectTreeView.java:670)
            at org.objectstyle.cayenne.modeler.ProjectTreeView.dataNodeAdded(ProjectTreeView.java:483)
            at org.objectstyle.cayenne.modeler.ProjectController.fireDataNodeEvent(ProjectController.java:515)
            at org.objectstyle.cayenne.modeler.action.CreateNodeAction.createDataNode(CreateNodeAction.java:112)
            at org.objectstyle.cayenne.modeler.action.CreateNodeAction.performAction(CreateNodeAction.java:99)
            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.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
            at java.awt.Component.processMouseEvent(Component.java:5488)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
            at java.awt.Component.processEvent(Component.java:5253)
            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.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
            at java.awt.Container.dispatchEventImpl(Container.java:2010)
            at java.awt.Window.dispatchEventImpl(Window.java:1774)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
            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)



    This archive was generated by hypermail 2.0.0 : Mon Aug 22 2005 - 13:19:11 EDT