Description
Windows 11 pro, Java 11 , Cayenne Modeler 4.1.1. When trying to save a simple new project (a new project + a single empty DataMap), the following the Modeler throws this exception. CM 4.1 and 4.2 work correctly on the same machine.
CayenneModeler Info Version: 4.1.1 Build Date: Dec 20 2021 17:17:41 Exception: ================================= java.lang.IllegalArgumentException: 'other' has different root at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:404) at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:42) at org.apache.cayenne.gen.xml.CgenSaverDelegate.resolveOutputDir(CgenSaverDelegate.java:75) 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:332) 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:200) 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.saveAs(FileProjectSaver.java:93) at org.apache.cayenne.modeler.action.SaveAsAction.saveAll(SaveAsAction.java:106) at org.apache.cayenne.modeler.action.SaveAction.saveAll(SaveAction.java:60) at org.apache.cayenne.modeler.action.SaveAsAction.performAction(SaveAsAction.java:166) at org.apache.cayenne.modeler.action.SaveAsAction.performAction(SaveAsAction.java:155) at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:171) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) at java.desktop/java.awt.Component.processEvent(Component.java:6400) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Attachments
Issue Links
- is related to
-
CAY-2710 Modeler: can't select cgen target folder on a different disk on Windows
- Closed