cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Natallia (Jira)" <j...@apache.org>
Subject [jira] [Created] (CAY-2615) Saving project throws IllegalArgumentException: 'other' is different type of Path
Date Tue, 10 Sep 2019 11:45:00 GMT
Natallia created CAY-2615:
-----------------------------

             Summary: Saving project throws IllegalArgumentException: 'other' is different
type of Path
                 Key: CAY-2615
                 URL: https://issues.apache.org/jira/browse/CAY-2615
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 4.1.B3
            Reporter: Natallia
         Attachments: 1.png, 2.zip, IllegalArgumentException.mov

{code:java}
CayenneModeler Info
Version: 4.1.B3-SNAPSHOT
Build Date: сент. 03 2019 07:57:26
Exception: 
=================================
java.lang.IllegalArgumentException: 'other' is different type of Path
	at sun.nio.fs.UnixPath.relativize(UnixPath.java:416)
	at sun.nio.fs.UnixPath.relativize(UnixPath.java:43)
	at org.apache.cayenne.gen.xml.CgenSaverDelegate.resolveOutputDir(CgenSaverDelegate.java:72)
	at org.apache.cayenne.gen.xml.CgenSaverDelegate.visitDataMap(CgenSaverDelegate.java:48)
	at org.apache.cayenne.gen.xml.CgenSaverDelegate.visitDataMap(CgenSaverDelegate.java:36)
	at org.apache.cayenne.project.CompoundSaverDelegate.visitDataMap(CompoundSaverDelegate.java:73)
	at org.apache.cayenne.project.CompoundSaverDelegate.visitDataMap(CompoundSaverDelegate.java:45)
	at org.apache.cayenne.map.DataMap.encodeAsXML(DataMap.java:331)
	at org.apache.cayenne.project.ConfigurationSaver.encodeNode(ConfigurationSaver.java:61)
	at org.apache.cayenne.project.ConfigurationSaver.visitDataMap(ConfigurationSaver.java:53)
	at org.apache.cayenne.project.ConfigurationSaver.visitDataMap(ConfigurationSaver.java:33)
	at org.apache.cayenne.map.DataMap.acceptVisitor(DataMap.java:199)
	at org.apache.cayenne.project.FileProjectSaver.saveToTempFile(FileProjectSaver.java:241)
	at org.apache.cayenne.project.FileProjectSaver.saveToTempFiles(FileProjectSaver.java:220)
	at org.apache.cayenne.project.FileProjectSaver.save(FileProjectSaver.java:122)
	at org.apache.cayenne.project.FileProjectSaver.save(FileProjectSaver.java:85)
	at org.apache.cayenne.modeler.action.SaveAction.saveAll(SaveAction.java:68)
	at org.apache.cayenne.modeler.action.SaveAsAction.performAction(SaveAsAction.java:165)
	at org.apache.cayenne.modeler.action.SaveAsAction.performAction(SaveAsAction.java:154)
	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:171)
	at org.apache.cayenne.modeler.action.ProjectAction.checkSaveOnClose(ProjectAction.java:103)
	at org.apache.cayenne.modeler.action.ExitAction.exit(ExitAction.java:47)
	at org.apache.cayenne.modeler.CayenneModelerController$1.windowClosing(CayenneModelerController.java:111)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.Window.processWindowEvent(Window.java:2054)
	at javax.swing.JFrame.processWindowEvent(JFrame.java:305)
	at java.awt.Window.processEvent(Window.java:2013)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2294)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
{code}

!1.png!

*Steps*:
1. Right click on project and click Create DataMap
2. Open Class Generation tab
3. Right click on project and Create DataMap
4. Click on project and open Class Generation tab
5. Click Save (or Close / Save Changes)

Test project 2.zip is attached.
Video is attached.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message