You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2011/02/23 15:13:38 UTC

[jira] Closed: (CAY-1476) Preferences exception on domain renaming

     [ https://issues.apache.org/jira/browse/CAY-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1476.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.1 (final))
                   3.1M1

> Preferences exception on domain renaming
> ----------------------------------------
>
>                 Key: CAY-1476
>                 URL: https://issues.apache.org/jira/browse/CAY-1476
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>             Fix For: 3.1M1
>
>
> This affects 3.1 Modeler using the new preferences mechanism. Here is the scenario:
> * open an existing project
> * rename DataDomain
> * save
> * rename DataDomain to something else again
> * The exception below happens
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Node has been removed.
> 	at java.util.prefs.AbstractPreferences.node(AbstractPreferences.java:790)
> 	at org.apache.cayenne.modeler.ProjectController.getPreferenceForDataDomain(ProjectController.java:380)
> 	at org.apache.cayenne.modeler.editor.DataDomainView.setDomainName(DataDomainView.java:347)
> 	at org.apache.cayenne.modeler.editor.DataDomainView$1.updateModel(DataDomainView.java:91)
> 	at org.apache.cayenne.modeler.util.TextAdapter.updateModel(TextAdapter.java:160)
> 	at org.apache.cayenne.modeler.util.TextAdapter$1.actionPerformed(TextAdapter.java:68)
> 	at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
> 	at javax.swing.JTextField.postActionEvent(JTextField.java:705)
> 	at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:820)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira