Andrus,
Thanks for the quick response. That fixed it.
-Dave
On 8/22/05, Andrus Adamchik <andru..bjectstyle.org> wrote:
> Dave,
>
> I am running CayenneModeler under Java 1.5 with no problems so far
> (ok, this is Mac OS X and CayenneModeler 1.2M5).
>
> Anyway, looks like this issue is with corrupt preferences database
> (http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-245). The
> easiest fix is to close all instances of the Modeler and delete
> preferences directory under "$HOME/.cayenne/prefs" - http://
> objectstyle.org/confluence/display/CAY/Modeler+Preferences+Location
>
> Hope this helps.
>
> Andrus
>
>
> On Aug 22, 2005, at 9:19 PM, Dave Dombrosky wrote:
> > 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.createPermIdsForO
> > bjEntity(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.getPreferenceDomainF
> > orProject(ProjectController.java:198)
> > at
> > org.objectstyle.cayenne.modeler.ProjectController.getPreferenceDomainF
> > orDataDomain(ProjectController.java:215)
> > at
> > org.objectstyle.cayenne.modeler.ProjectController.getDataNodePreferenc
> > es(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.refresh
> > LocalDataSources(DataNodeEditor.java:331)
> > at
> > org.objectstyle.cayenne.modeler.editor.datanode.DataNodeEditor.refresh
> > View(DataNodeEditor.java:345)
> > at
> > org.objectstyle.cayenne.modeler.editor.datanode.DataNodeEditor
> > $2.currentDataNodeChanged(DataNodeEditor.java:267)
> > at
> > org.objectstyle.cayenne.modeler.ProjectController.fireDataNodeDisplayE
> > vent(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:53:25 EDT