#1106 postgresql-9.2 JDBC fails on export

open
nobody
None
5
2013-10-23
2012-10-28
Fred
No

Hi,

Just tried upgrading to the new JDBC driver for PostgreSQL (postgresql-9.2-1000.jdbc4) from git repository. I get the following errors:

org.postgresql.util.PSQLException: FATAL: database "jabref-test/jabref-test" does not exist
at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:572)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:177)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:140)
at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31)
at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:23)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:221)
at net.sf.jabref.sql.exporter.PostgreSQLExporter.connectToDB(PostgreSQLExporter.java:73)
at net.sf.jabref.sql.exporter.DBExporter.exportDatabaseToDBMS(DBExporter.java:490)
at net.sf.jabref.BasePanel$13.run(BasePanel.java:749)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at spin.Invocation.evaluate(Invocation.java:175)
at spin.off.SpinOffEvaluator$1.run(SpinOffEvaluator.java:108)
at java.lang.Thread.run(Thread.java:722)

The same thing happens with jabref-2.8.1. There are no issues with postgresql-9.1-902.jdbc4

Cheers,

Fred

Discussion

  • Igor
    Igor
    2013-10-23

    Hi Fred,

    is this still an issue?