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

Andrey Razumovsky closed CAY-1126.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

> Opening non-existing projects gives an error
> --------------------------------------------
>
>                 Key: CAY-1126
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1126
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>         Environment: OS X, trunk build of the Modeler
>            Reporter: Andrus Adamchik
>            Assignee: Andrey Razumovsky
>            Priority: Minor
>             Fix For: 3.0
>
>
> I opened a project in the modeler, so it got into the history. Then I closed 
> the modeler and deleted the project from the filesystem. Then opened the 
> Modeler and clicked on the project name in recent projects. I got an error 
> below wrapped in "Error loading project" dialog. I guess we either need to 
> remove disappeared projects from the list of recent projects or check it on 
> load , and give a more targeted error message instead of a scary exception.
> java.lang.IllegalArgumentException: Path 
> '/Users/andrus/Desktop/CAY-1125_Test/cayenne' is not a directory.
>       at 
> org.apache.cayenne.util.ResourceLocator.addFilesystemPath(ResourceLocator.java:526)
>       at 
> org.apache.cayenne.conf.FileConfiguration.<init>(FileConfiguration.java:105)
>       at 
> org.apache.cayenne.project.ProjectConfiguration.<init>(ProjectConfiguration.java:43)
>       at 
> org.apache.cayenne.modeler.action.ProjectAction.buildProjectConfiguration(ProjectAction.java:69)
>       at 
> org.apache.cayenne.modeler.action.OpenProjectAction.openProject(OpenProjectAction.java:114)
>       at 
> org.apache.cayenne.modeler.action.OpenProjectAction.performAction(OpenProjectAction.java:103)
>       at 
> org.apache.cayenne.modeler.WelcomeScreen$RecentFileListRenderer.mouseReleased(WelcomeScreen.java:279)
>       at 
> java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
>       at java.awt.Component.processMouseEvent(Component.java:5602)
>       at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
>       at java.awt.Component.processEvent(Component.java:5367)
>       at java.awt.Container.processEvent(Container.java:2010)
>       at java.awt.Component.dispatchEventImpl(Component.java:4068)
>       at java.awt.Container.dispatchEventImpl(Container.java:2068)
>       at java.awt.Component.dispatchEvent(Component.java:3903)
>       at 
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
>       at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
>       at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
>       at java.awt.Container.dispatchEventImpl(Container.java:2054)
>       at java.awt.Window.dispatchEventImpl(Window.java:1801)
>       at java.awt.Component.dispatchEvent(Component.java:3903)
>       at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>       at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
>       at java.awt.EventDispatchThread.pumpE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to