Hmm... I just found the same issue in Jira that I opened myself some time
back (and completely forgot about it):
http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-216
It is not really a bug, but finding what was wrong took me a while..
Doublecheck that you don't have another JVM in your path (I had a very old
one - 1.1.8 installed with old versions of WebObjects). Make sure you are
using 1.4.* JVM to start the Modeler.
Andrus
> Thanks. I just tried this approach, remove the .cayenne under my account
> dir (and restart the computer). But the problem is still there, even
> when you try to create a new project.
>
> CayenneModeler Info Version: 1.1.2 Build Date: April 28 2005 Exception:
> =================================
> org.objectstyle.cayenne.pref.PreferenceException: Error setting
> property: dividerLocation at
> org.objectstyle.cayenne.modeler.pref.ComponentGeometry.updateIntProperty(ComponentGeometry.java:151)
> at
> org.objectstyle.cayenne.modeler.pref.ComponentGeometry.bindIntProperty(ComponentGeometry.java:134)
> at
> org.objectstyle.cayenne.modeler.editor.EditorView.initController(EditorView.java:192)
> at
> org.objectstyle.cayenne.modeler.editor.EditorView.<init>(EditorView.java:119)
> at
> org.objectstyle.cayenne.modeler.CayenneModelerController.projectOpenedAction(CayenneModelerController.java:207)
> at
> org.objectstyle.cayenne.modeler.action.NewProjectAction.performAction(NewProjectAction.java:109)
> at
> org.objectstyle.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:188)
> at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
> at
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
> at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
> at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at
> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
> at
> javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
> at java.awt.Component.processMouseEvent(Component.java:5100) at
> java.awt.Component.processEvent(Component.java:4897) at
> java.awt.Container.processEvent(Container.java:1569) at
> java.awt.Component.dispatchEventImpl(Component.java:3615) at
> java.awt.Container.dispatchEventImpl(Container.java:1627) at
> java.awt.Component.dispatchEvent(Component.java:3477) at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
> at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
> at java.awt.Container.dispatchEventImpl(Container.java:1613) at
> java.awt.Window.dispatchEventImpl(Window.java:1606) at
> java.awt.Component.dispatchEvent(Component.java:3477) at
> java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> Caused by: java.lang.NoSuchMethodException: Unknown property
> 'dividerLocation' at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1777)
> at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
> at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
> at
> org.objectstyle.cayenne.modeler.pref.ComponentGeometry.updateIntProperty(ComponentGeometry.java:148)
> ... 31 more Caused by: java.lang.NoSuchMethodException: Unknown
> property 'dividerLocation' at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1777)
> at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
> at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
> at
> org.objectstyle.cayenne.modeler.pref.ComponentGeometry.updateIntProperty(ComponentGeometry.java:148)
> at
> org.objectstyle.cayenne.modeler.pref.ComponentGeometry.bindIntProperty(ComponentGeometry.java:134)
> at
> org.objectstyle.cayenne.modeler.editor.EditorView.initController(EditorView.java:192)
> at
> org.objectstyle.cayenne.modeler.editor.EditorView.<init>(EditorView.java:119)
> at
> org.objectstyle.cayenne.modeler.CayenneModelerController.projectOpenedAction(CayenneModelerController.java:207)
> at
> org.objectstyle.cayenne.modeler.action.NewProjectAction.performAction(NewProjectAction.java:109)
> at
> org.objectstyle.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:188)
> at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
> at
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
> at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
> at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at
> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
> at
> javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
> at java.awt.Component.processMouseEvent(Component.java:5100) at
> java.awt.Component.processEvent(Component.java:4897) at
> java.awt.Container.processEvent(Container.java:1569) at
> java.awt.Component.dispatchEventImpl(Component.java:3615) at
> java.awt.Container.dispatchEventImpl(Container.java:1627) at
> java.awt.Component.dispatchEvent(Component.java:3477) at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
> at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
> at java.awt.Container.dispatchEventImpl(Container.java:1613) at
> java.awt.Window.dispatchEventImpl(Window.java:1606) at
> java.awt.Component.dispatchEvent(Component.java:3477) at
> java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
>
> Alan
>
>
>
>>>> andru..bjectstyle.org 05/25/05 03:46PM >>>
>> After try to open cayenne.xml built in old version, it shows the
>> following errors:
>>
>> CayenneModeler Info Version: 1.1RC2 Build Date: October 24 2004
>> Exception: ================================>
>> org.objectstyle.cayenne.pref.PreferenceException: Error setting
>> property: dividerLocation at
>> org.objectstyle.cayenne.modeler.pref.ComponentGeometry.updateIntProperty(ComponentGeometry.java:151)
>> at
>
> Close the Modeler and delete ".cayenne" directory under your account
> home directory (this link should help you to find it:
> http://objectstyle.org/cayenne/modelerguide/modeler-intro/cayenne-user-dir.html)
> .. Then restart the Modeler, everything should work again.
>
> Andrus
This archive was generated by hypermail 2.0.0 : Wed May 25 2005 - 16:17:30 EDT