connection error: Could not instantiate: ro.sync.db.nxd.exist.ExistSession
Posted: Mon Jun 15, 2020 2:48 pm
In Oxygen 22.1 I am receiving the error below for a connection to eXist 4.7 (see full error message at bottom of post):
Yet I can connect to all three without problem through the jnlp application. Moreover, when I rebuild the connection to exist 4.7 on localhost, Oxygen's wizard tells me it's successful...but then it can't open the connection, with the error above.
The only environment change I've made is to install eXist 5.2 on my local machine in a separate instance. The Oxygen connection to 5.2 local host works fine!
Context:
Mac OS 10.14
Oxygen XML Editor 22.1, build 2020061102
Thanks for the assistance.
---complete error ---
Check datasource configuration. Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
java.io.IOException: Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
at ro.sync.db.nxd.o.l(Unknown Source)
at ro.sync.db.b.j.x(Unknown Source)
at ro.sync.db.b.j.getCurrentState(Unknown Source)
at ro.sync.db.h$_d.treeWillExpand(Unknown Source)
at javax.swing.JTree.fireTreeWillExpand(JTree.java:2839)
at javax.swing.JTree.setExpandedState(JTree.java:3630)
at ro.sync.ui.application.ob.setExpandedState(Unknown Source)
at javax.swing.JTree.expandPath(JTree.java:2219)
at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2286)
at com.apple.laf.AquaTreeUI.access$1600(AquaTreeUI.java:48)
at com.apple.laf.AquaTreeUI$TreeArrowMouseInputHandler.mouseReleased(AquaTreeUI.java:395)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at ro.sync.ui.application.ob.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
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:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at ro.sync.ui.application.ApplicationLauncher$_b$1.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
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)
Caused by: java.io.IOException: Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
at ro.sync.db.nxd.o.e(Unknown Source)
at ro.sync.db.nxd.o.c(Unknown Source)
... 45 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
... 47 more
This message is surprising because I've been using the same connection without problem for three months. Nothing has changed in my Oxygen configuration, and nothing has changed on the server. I am getting the same error for connections to my localhost (eXist 4.7), and another remote server (eXist 3.x).Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
Yet I can connect to all three without problem through the jnlp application. Moreover, when I rebuild the connection to exist 4.7 on localhost, Oxygen's wizard tells me it's successful...but then it can't open the connection, with the error above.
The only environment change I've made is to install eXist 5.2 on my local machine in a separate instance. The Oxygen connection to 5.2 local host works fine!
Context:
Mac OS 10.14
Oxygen XML Editor 22.1, build 2020061102
Thanks for the assistance.
---complete error ---
Check datasource configuration. Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
java.io.IOException: Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
at ro.sync.db.nxd.o.l(Unknown Source)
at ro.sync.db.b.j.x(Unknown Source)
at ro.sync.db.b.j.getCurrentState(Unknown Source)
at ro.sync.db.h$_d.treeWillExpand(Unknown Source)
at javax.swing.JTree.fireTreeWillExpand(JTree.java:2839)
at javax.swing.JTree.setExpandedState(JTree.java:3630)
at ro.sync.ui.application.ob.setExpandedState(Unknown Source)
at javax.swing.JTree.expandPath(JTree.java:2219)
at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2286)
at com.apple.laf.AquaTreeUI.access$1600(AquaTreeUI.java:48)
at com.apple.laf.AquaTreeUI$TreeArrowMouseInputHandler.mouseReleased(AquaTreeUI.java:395)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at ro.sync.ui.application.ob.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
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:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at ro.sync.ui.application.ApplicationLauncher$_b$1.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
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)
Caused by: java.io.IOException: Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
at ro.sync.db.nxd.o.e(Unknown Source)
at ro.sync.db.nxd.o.c(Unknown Source)
... 45 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class ro.sync.db.nxd.exist.ExistSession
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
... 47 more