You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "John Huss (JIRA)" <ji...@apache.org> on 2013/01/04 18:32:13 UTC

[jira] [Commented] (CAY-1786) javax.swing.table.DefaultTableModel cannot be cast to org.apache.cayenne.modeler.editor.ObjAttributeTableModel

    [ https://issues.apache.org/jira/browse/CAY-1786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544048#comment-13544048 ] 

John Huss commented on CAY-1786:
--------------------------------

What do you think about adding some functionality to automatically relay errors to a central server so that we have a better handle on Modeler issues that arise?  I know I run across problems occasionally, but I don't often take the time to save the stack trace or dig into it.
                
> javax.swing.table.DefaultTableModel cannot be cast to org.apache.cayenne.modeler.editor.ObjAttributeTableModel
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: CAY-1786
>                 URL: https://issues.apache.org/jira/browse/CAY-1786
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1B1
>         Environment: 3.2 build from Dec 18, OS X 10.0
>            Reporter: Andrus Adamchik
>             Fix For: 3.1B2, 3.2M1
>
>
> This was first described in comments to CAY-1727... While CAY-1727 is fixed, the ClassCastException remains, so it is a separate issue. It doesn't happen on every model, but it does happen on a few that I have (and that I can't publicly share) pretty consistently. It goes something like this (but I am not 100% sure of the scenario) :
> 1. Open a project
> 2. Navigate to any ObjEntity, select its "attributes" tab
> 3. CLick on DataMap
> 4. Click back on any ObjEntity.
> Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.table.DefaultTableModel cannot be cast to org.apache.cayenne.modeler.editor.ObjAttributeTableModel
> 	at org.apache.cayenne.modeler.editor.ObjEntityAttributeTab.selectAttributes(ObjEntityAttributeTab.java:250)
> 	at org.apache.cayenne.modeler.editor.ObjEntityTabbedView.currentObjAttributeChanged(ObjEntityTabbedView.java:190)
> 	at org.apache.cayenne.modeler.ProjectController.fireObjAttributeDisplayEvent(ProjectController.java:1464)
> 	at org.apache.cayenne.modeler.editor.ObjEntityAttributeTab.processExistingSelection(ObjEntityAttributeTab.java:298)
> 	at org.apache.cayenne.modeler.editor.ObjEntityTabbedView$1.stateChanged(ObjEntityTabbedView.java:120)
> 	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:151)
> 	at org.apache.cayenne.modeler.ProjectController.fireObjEntityDisplayEvent(ProjectController.java:1239)
> 	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)
> 	at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3191)
> 	at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629)

--
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