cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1788) javax.swing.table.DefaultTableModel cannot be cast to org.apache.cayenne.modeler.editor.ObjRelationshipTableModel
Date Thu, 10 Jan 2013 12:02:12 GMT
Andrus Adamchik created CAY-1788:
------------------------------------

             Summary: javax.swing.table.DefaultTableModel cannot be cast to org.apache.cayenne.modeler.editor.ObjRelationshipTableModel
                 Key: CAY-1788
                 URL: https://issues.apache.org/jira/browse/CAY-1788
             Project: Cayenne
          Issue Type: Sub-task
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik


One more:

1. Open project
2. Select a DbEntity
3. Go to DbEntity relationship tab
4. Click on ObjEntity

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.table.DefaultTableModel
cannot be cast to org.apache.cayenne.modeler.editor.ObjRelationshipTableModel
	at org.apache.cayenne.modeler.editor.ObjEntityRelationshipTab.selectRelationships(ObjEntityRelationshipTab.java:236)
	at org.apache.cayenne.modeler.editor.ObjEntityTabbedView.currentObjRelationshipChanged(ObjEntityTabbedView.java:170)
	at org.apache.cayenne.modeler.ProjectController.fireObjRelationshipDisplayEvent(ProjectController.java:1466)
	at org.apache.cayenne.modeler.editor.ObjEntityRelationshipTab.processExistingSelection(ObjEntityRelationshipTab.java:282)
	at org.apache.cayenne.modeler.editor.ObjEntityTabbedView$1.stateChanged(ObjEntityTabbedView.java:118)
	at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:400)
	at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:253)
	at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
	at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
	at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:599)
	at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:574)
	at org.apache.cayenne.modeler.editor.ObjEntityTabbedView.currentObjEntityChanged(ObjEntityTabbedView.java:149)
	at org.apache.cayenne.modeler.ProjectController.fireObjEntityDisplayEvent(ProjectController.java:1142)
	at org.apache.cayenne.modeler.ProjectTreeView.processSelection(ProjectTreeView.java:848)
	at org.apache.cayenne.modeler.ProjectTreeView$1.valueChanged(ProjectTreeView.java:150)
	at javax.swing.JTree.fireValueChanged(JTree.java:2820)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message