Adding a new boolean attribute to a table (and corresponding object entity, via sync) raises Null pointer exception
-------------------------------------------------------------------------------------------------------------------
Key: CAY-678
URL: http://issues.apache.org/cayenne/browse/CAY-678
Project: Cayenne
Type: Bug
Components: Cayenne Core Library
Versions: 1.2 [STABLE]
Reporter: Alain COUNIOT
Priority: Minor
CayenneModeler Info
Version: 1.2.1
Build Date: August 30 2006
Exception:
=================================
java.lang.NullPointerException
at org.objectstyle.cayenne.modeler.pref.DBGeneratorDefaults.configureGenerator(DBGeneratorDefaults.java:23)
at org.objectstyle.cayenne.modeler.dialog.db.DBGeneratorOptions.<init>(DBGeneratorOptions.java:119)
at org.objectstyle.cayenne.modeler.action.GenerateDBAction.performAction(GenerateDBAction.java:104)
at org.objectstyle.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:199)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Added boolean NAV_NODE to table CAPTION; sync'ed the Object Entity successfully; proceeded to "Generate Database Schema" and got this exception, after error message "[v. 1.2.1 August 30 2006] - Undefined type for attribute CAPTION.NAV_NODE:16" (upon clicking on "Generate DB Schema -> Continue"). Switching from boolean to integer led to a successful outcome. Database is Firebird 1.5 (which works quite well with Cayenne so far)
-- 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 : Thu Oct 05 2006 - 15:04:23 EDT