[jira] Created: (CAY-1028) NPE's in the Modeler for incomplete relationships

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Fri Apr 11 2008 - 09:29:52 EDT

  • Next message: Andrus Adamchik (JIRA): "[jira] Closed: (CAY-868) Deprecate EventManager.getDefaultManager() and stop using it"

    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.
    



    This archive was generated by hypermail 2.0.0 : Fri Apr 11 2008 - 09:32:48 EDT