Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Problem with 2.4 and Sybase drivers
Problem with 2.4 and Sybase drivers [message #897391] Tue, 24 July 2012 00:33 Go to next message
Adam Draginda is currently offline Adam DragindaFriend
Messages: 2
Registered: July 2012
Junior Member
I am trying the new version of eclipselink, but there is a problem communicating with the sybase driver that I'm using. Unfortunately my workplace requires that we use the old jconn2.jar driver, which doesn't support the call getDatabaseMajorVersion() causing the following crash:

[EL Severe]: ejb: 2012-07-23 14:20:20.188--ServerSession(1686621532)--java.lang.AbstractMethodError: com.sybase.jdbc2.jdbc.SybDatabaseMetaData.getDatabaseMajorVersion()I


I have searched and found that upgrading to jconn3 or 4 solves the problem, but I am unable to upgrade due to my workplace restrictions. Note that everything works fine with 2.3.0, but migrating to 2.4.0 doesn't work even without any modifications to my code.

[Updated on: Tue, 24 July 2012 01:01]

Report message to a moderator

Re: Problem with 2.4 and Sybase drivers [message #897564 is a reply to message #897391] Tue, 24 July 2012 14:03 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1039
Registered: July 2009
Senior Member
Hello,

This call is made when the database platform to use hasn't been specified and must be detected from the datasource. To avoid this, you will need to specify the database directly using the "eclipselink.target-database" property with a value of "Sybase" or "org.eclipse.persistence.platform.database.SybasePlatform".

The change to use getDatabaseMajorVersion() was added to 2.4 for bug 357569. Please file a bug to have it use getDatabaseProductName as it did in 2.3 when getDatabaseMajorVersion() is unsupported.

Best Regards,
Chris
Re: Problem with 2.4 and Sybase drivers [message #897660 is a reply to message #897564] Wed, 25 July 2012 00:52 Go to previous message
Adam Draginda is currently offline Adam DragindaFriend
Messages: 2
Registered: July 2012
Junior Member
Thank you very much for the reply, it all works now. (Edit, I had an error here previously but it was my fault not from EL)

I will also submit a bug report, thanks!

[Updated on: Wed, 25 July 2012 01:41]

Report message to a moderator

Previous Topic:Performance bottleneck with EclipseLink
Next Topic:Marshalling objects with Lazy Joins in MOxy
Goto Forum:
  


Current Time: Fri Dec 19 10:07:59 GMT 2014

Powered by FUDForum. Page generated in 0.02202 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software