Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1028

NPE's in the Modeler for incomplete relationships

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2 branch, 2.0 branch, 3.0
    • 2.0 branch, 3.0M4
    • Modeler
    • None

    Description

      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)

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: