Page 1 of 1

trouble with berkeley xml db after upgrading to 10.3

Posted: Mon Jun 29, 2009 2:07 pm
by PaulHermans
ERROR: "Could not instantiate: ro.sync.db.nxd.berkeley.BerkeleySession due to: java.lang;UnsatisfiedLinkError: /Applications/dbxml-2.4.13/install/lib/libdb_java-4.6.jnilib: no suitable image found.
Did find /Applications/dbxml-2.4.13/install/lib/libdb_java-4.6.jnilib: mach-o, but wrong architecture".

Settings identical as with previous version including java.library.path in Info.plist

Re: trouble with berkeley xml db after upgrading to 10.3

Posted: Mon Jun 29, 2009 2:37 pm
by sorin_ristache
Hello,

Berkeley DB version 2.4.13 is not even available for download anymore. Please upgrade to version 2.4.16. We upgraded the support to Berkeley DB 2.4.16 in Oxygen 10.3 and it worked without problems for us.


Regards,
Sorin

Re: trouble with berkeley xml db after upgrading to 10.3

Posted: Tue Jun 30, 2009 10:06 am
by PaulHermans
Sorin,

Still the same error but now refering to version 2.4.16
ERROR: "Could not instantiate: ro.sync.db.nxd.berkeley.BerkeleySession due to: java.lang;UnsatisfiedLinkError: /Applications/dbxml-2.4.16/install/lib/libdb_java-4.6.jnilib: no suitable image found.
Did find /Applications/dbxml-2.4.16/install/lib/libdb_java-4.6.jnilib: mach-o, but wrong architecture".

FYI: I'm running Oxygen on Mac.

Re: trouble with berkeley xml db after upgrading to 10.3

Posted: Tue Jun 30, 2009 1:09 pm
by sorin_ristache
A "wrong architecture" error says that you built the Berkeley DB libraries for 32 bits and you run Oxygen with a 64 bit Java virtual machine or viceversa. If you run Oxygen with a 64 bit JVM (you can see that in the System properties tab of the Help -> About dialog) did you build the Berkeley libraries with the -b 64 parameter?

There are some problems with the 64 bit build of the libraries because it seems the Xerces libraries included in Berkeley depend on some deprecated old OS X libraries that were not ported to 64 bits so it will not run correctly with a 64 bit JVM due to some seg faults. Please try a Berkeley build for 32 bits and run Oxygen with a 32 bit JVM to have better chances of connecting to a Berkeley database.


Regards,
Sorin

Re: trouble with berkeley xml db after upgrading to 10.3

Posted: Tue Jun 30, 2009 1:46 pm
by PaulHermans
Sorin, thanks for this explanation.
I'm running Oxygen in 64 bit and Berkeley in 32.


Paul

Re: trouble with berkeley xml db after upgrading to 10.3

Posted: Tue Jun 30, 2009 2:11 pm
by sorin_ristache
Please try to connect to the Berkeley database in Oxygen running with a 32 bit JVM. I think the Java 1.5 virtual machine is a 32 bit one on all Mac computers. You can set the Java 1.5 VM as the preferred one by dragging it to the first position in the list available from Applications -> Utilities -> Java Preferences.


Regards,
Sorin

Re: trouble with berkeley xml db after upgrading to 10.3

Posted: Tue Jun 30, 2009 2:37 pm
by PaulHermans
Sorin,

Is it possible that this is a Oxygen specific settings,
since the Java 1.5 VM is the preferred one in Applications -> Utilities -> Java Preferences and using Oxygen 10.2 -> 32 bit, while Oxygen 10.3 -> 64 bit.

Paul

Re: trouble with berkeley xml db after upgrading to 10.3

Posted: Tue Jun 30, 2009 2:49 pm
by sorin_ristache
You are right. Please edit the Info.plist file of the icon that you use for starting Oxygen and change the value of the key JVMVersion from 1.5+ to 1.5*. We will apply this change too to the Mac install kit available on the Download page.


Regards,
Sorin

Re: trouble with berkeley xml db after upgrading to 10.3

Posted: Tue Jun 30, 2009 2:58 pm
by PaulHermans
OK, we'll do.
Thanks for all the help.


Paul