Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

<oXygen/> general issues.
fschmitt
Posts: 7
Joined: Mon Jul 20, 2015 3:31 pm

Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by fschmitt » Fri Dec 28, 2018 5:35 pm

Hi, i've just upgraded Oxygen Editor to 20.1, build 201812240, trying to get it work with eXist 2.2 (ok, i know, very old... but at least it worked with previous oxygen version). OS: Win 7 64bit.

I've provided the eXist core and endorsed libs as well as exist.jar and exist-optional.jar as data source. Trying to connect to a eXist 2.2 server results in:

Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

Were there any changes regarding the eXist-db support with the last upgrade that i've missed? What may be the cause for the error?

TIA fs

Radu
Posts: 6395
Joined: Fri Jul 09, 2004 5:18 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by Radu » Mon Dec 31, 2018 10:44 am

Hi,

I tested this on my side and it seems to be working for me.
In the "Data Sources" preferences page I pressed the "Create exist-DB XML Connection" link and Oxygen when using this wizard Oxygen downloads all the necessary JAR libraries from the Exist server and creates both the data source and connection. I usually specify a custom "Libraries" path for the place where those driver JAR libraries are downloaded by Oxygen in order not the override other JAR libraries downloaded for existing connections.
Did you manually download JAR libraries from the server side and specify them in the newly created data source?
Do you have other Exist-related data sources and connections set up? Maybe they somehow interfere with this...

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

fschmitt
Posts: 7
Joined: Mon Jul 20, 2015 3:31 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by fschmitt » Fri Feb 08, 2019 12:08 pm

Sorry for my late reply - creating the eXist-db connection using the wizard solved the problem, thanks a lot @Radu! The issue related to a db connection i've created manually a while ago. I'm still not sure why the connection stopped to work after the last upgrade, but since it works now, everything's fine. :D

Radu
Posts: 6395
Joined: Fri Jul 09, 2004 5:18 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by Radu » Fri Feb 08, 2019 12:12 pm

Great, thanks for updating the thread.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

pietro
Posts: 8
Joined: Thu Jun 30, 2016 3:00 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by pietro » Tue Apr 02, 2019 6:52 pm

Dear Radu,

I am having the same problem trying to connect to my eXist on a remote server from a very new iMac with latest os and the latest Java 1.8 installed with oXygen 19.1. What should I check? Thanks for any hint to solve this problem.

Radu
Posts: 6395
Joined: Fri Jul 09, 2004 5:18 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by Radu » Wed Apr 03, 2019 7:40 am

Hi Pietro,

So what version of the Exist server are you using? Did you create the Exist data source manually adding JAR libraries or using our wizard?
Are you using the Oxygen standalone editor or Oxygen Eclipse Plugin? Does restarting Oxygen help?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

pietro
Posts: 8
Joined: Thu Jun 30, 2016 3:00 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by pietro » Wed Apr 03, 2019 10:06 am

Dear Radu,

thanks for your reply. I have now upgraded to oxygen 20.1 and I am trying to connect to a remove server where I have exist 4.5 installed.
I have used the wizard to create the connection.
Connection to the same eXist from my old machine still works fine, same settings. Connection to local host and local exist also works fine on both old and new machine, both mac with latest OS.

I have restarted and it did not help.

Radu
Posts: 6395
Joined: Fri Jul 09, 2004 5:18 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by Radu » Wed Apr 03, 2019 12:32 pm

Hi Pietro,

They had this bug in Exist 4.5 where Exist did not properly report to Oxygen the JAR libraries necessary for the connection, they fixed the problem in Exist 4.6:

https://github.com/eXist-db/exist/issues/2530

If you do not want to update to Exist 4.6 you can download manually an Exist 4.5 kit, expand the archive and then manually configure an Exist data source:

https://www.oxygenxml.com/doc/versions/ ... ource.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

pietro
Posts: 8
Joined: Thu Jun 30, 2016 3:00 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by pietro » Mon Apr 08, 2019 9:51 am

Dear Radu,

I have followed the instructions to set up manually the data source, I copied all the files in lib/core and the exist.jar from the remote server to oXygen, but I still get this error.

I restarted several times but it did not help.

Radu
Posts: 6395
Joined: Fri Jul 09, 2004 5:18 pm

Re: Could not instantiate: ro.sync.db.nxd.exist.ExistSession... after Upgrade to 20.1, build 201812240

Post by Radu » Mon Apr 08, 2019 12:13 pm

Hi Pietro,

Please contact us via email (support@oxygenxml.com) and send us again information about the Oxygen version you are using, the server version you are using + the exact list of JAR libraries you used to create the Exist data source (a screenshot for example with the list of JAR libraries you added in the Exist data source).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply