FAQ
NPE's in the Modeler for incomplete relationships
-------------------------------------------------

Key: CAY-1028
URL: https://issues.apache.org/cayenne/browse/CAY-1028
Project: Cayenne
Issue Type: Bug
Components: CayenneModeler GUI
Affects Versions: 1.2 [STABLE], 2.0 [STABLE], 3.0
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
Priority: Minor
Fix For: 2.0 [STABLE]


Getting various NPE's when mapping partial DbRelationships to ObjRelationships:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.apache.cayenne.modeler.dialog.objentity.EntityRelationshipsModel.displayName(EntityRelationshipsModel.java:73)
at org.apache.cayenne.modeler.dialog.objentity.EntityRelationshipsModel.displayName(EntityRelationshipsModel.java:66)
at org.apache.cayenne.modeler.dialog.objentity.EntityRelationshipsModel.getRelationshipNames(EntityRelationshipsModel.java:104)
at org.apache.cayenne.modeler.dialog.objentity.ObjRelationshipInfoDialog$RelationshipPicker.getTableCellEditorComponent(ObjRelationshipInfoDialog.java:273)
at javax.swing.JTable.prepareEditor(JTable.java:3983)
at javax.swing.JTable.editCellAt(JTable.java:2688)





pr 11, 2008 4:21:37 PM org.scopemvc.view.swing.STableModel setValueAt
WARNING: Can't set column 0 from row 0
java.lang.NullPointerException
at org.apache.cayenne.modeler.dialog.objentity.ObjRelationshipInfoModel.connectEnds(ObjRelationshipInfoModel.java:379)
at org.apache.cayenne.modeler.dialog.objentity.ObjRelationshipInfoModel.relationshipChanged(ObjRelationshipInfoModel.java:249)
at org.apache.cayenne.modeler.dialog.objentity.ObjRelationshipInfoModel.modelChanged(ObjRelationshipInfoModel.java:231)
at org.scopemvc.model.basic.ModelChangeEventSupport.fireModelChange(Unknown Source)
at org.scopemvc.model.basic.BasicModel.fireModelChange(Unknown Source)
at org.scopemvc.model.basic.BasicModel.modelChanged(Unknown Source)
at org.scopemvc.model.basic.ModelChangeEventSupport.fireModelChange(Unknown Source)
at org.scopemvc.model.basic.BasicModel.fireModelChange(Unknown Source)
at org.apache.cayenne.modeler.dialog.objentity.EntityRelationshipsModel.setRelationshipDisplayName(EntityRelationshipsModel.java:133)
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 org.scopemvc.model.beans.BeansPropertyManager.set(Unknown Source)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedApr 11, '08 at 1:32p
activeApr 11, '08 at 1:32p
posts1
users1
websitecayenne.apache.org

1 user in discussion

Anonymous: 1 post

People

Translate

site design / logo © 2022 Grokbase