Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Postgres jdbc3 or jdbc4 driver support?
Postgres jdbc3 or jdbc4 driver support? [message #597052] Thu, 21 January 2010 23:16 Go to next message
Don Mitchell is currently offline Don MitchellFriend
Messages: 2
Registered: January 2010
Junior Member
Postgres 8.4 requires jdbc3 or jdbc4 driver, but the database connection wizard in dtp seems to require the jdbc2 driver. Is this a known limitation or am I doing something wrong?

Following occurs trying to use jdbc4 driver in Galileo on Windows:

java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java :579)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.datatools.enablement.internal.postgresql.Postgre SQLJDBCConnection.createConnection(PostgreSQLJDBCConnection. java:86)
at org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:104)
at org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
at org.eclipse.datatools.enablement.internal.postgresql.Postgre SQLJDBCConnection. <init>(PostgreSQLJDBCConnection.java:47)
at org.eclipse.datatools.enablement.internal.postgresql.Postgre SQLConnectionFactory.createConnection(PostgreSQLConnectionFa ctory.java:51)
at org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:83 )
at org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:355)
at org.eclipse.datatools.connectivity.ui.PingJob.createTestConn ection(PingJob.java:76)
at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.ja va:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Postgres jdbc3 or jdbc4 driver support? [message #597104 is a reply to message #597052] Tue, 26 January 2010 15:58 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 495
Registered: July 2009
Senior Member
Unfortunately we don't have any Postgres-specific knowledge on the team
any more. We'd love to have someone with Postgres know-how take a look
and contribute patches for anything they find though...

Don Mitchell wrote:
> Postgres 8.4 requires jdbc3 or jdbc4 driver, but the database connection
> wizard in dtp seems to require the jdbc2 driver. Is this a known
> limitation or am I doing something wrong?
>
> Following occurs trying to use jdbc4 driver in Galileo on Windows:
>
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade
> r.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java :579)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.eclipse.datatools.enablement.internal.postgresql.Postgre
> SQLJDBCConnection.createConnection(PostgreSQLJDBCConnection. java:86)
> at org.eclipse.datatools.connectivity.DriverConnectionBase.inte
> rnalCreateConnection(DriverConnectionBase.java:104)
> at org.eclipse.datatools.connectivity.DriverConnectionBase.open
> (DriverConnectionBase.java:53)
> at org.eclipse.datatools.enablement.internal.postgresql.Postgre
> SQLJDBCConnection. <init>(PostgreSQLJDBCConnection.java:47)
> at org.eclipse.datatools.enablement.internal.postgresql.Postgre
> SQLConnectionFactory.createConnection(PostgreSQLConnectionFa ctory.java:51)
> at org.eclipse.datatools.connectivity.internal.ConnectionFactor
> yProvider.createConnection(ConnectionFactoryProvider.java:83 )
> at org.eclipse.datatools.connectivity.internal.ConnectionProfil
> e.createConnection(ConnectionProfile.java:355)
> at org.eclipse.datatools.connectivity.ui.PingJob.createTestConn
> ection(PingJob.java:76)
> at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.ja va:59)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
Re: Postgres jdbc3 or jdbc4 driver support? [message #597385 is a reply to message #597052] Fri, 12 March 2010 14:35 Go to previous message
Eclipse UserFriend
Originally posted by: w.roeckelein.begis.com

Don Mitchell wrote:
> Postgres 8.4 requires jdbc3 or jdbc4 driver, but the database connection
> wizard in dtp seems to require the jdbc2 driver. Is this a known
> limitation or am I doing something wrong?
>
> Following occurs trying to use jdbc4 driver in Galileo on Windows:
>
> java.lang.UnsupportedClassVersionError: Bad version number in .class file

This means normalls that you JVM is too old and that the *.jar/*.clas requires a
newer JVM.

Regards,
TheWolf
Previous Topic:Postgres jdbc3 or jdbc4 driver support?
Next Topic:Status of ODA driver for EMF/CDO and BIRT
Goto Forum:
  


Current Time: Wed Nov 26 19:14:26 GMT 2014

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

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