Subject Re: [Firebird-Java] Re: unavailable database with type2 and java as a service
Author Carsten Schäfer
With RC3 the problem of not finding database on different drive is gone.
Thanks for that.
But the problem with local-mode and java as a service ist still present.
Log4j output is the following (if i do not permit interaction with the
desktop):
[GDS_Impl,INFO] Attempting to loadLibrary for "jaybird"
[GDS_Impl,INFO] loadLibrary for "java_gds" returned OK.
[GDS_Impl,INFO] Attempting to initilize native library.
[GDS_Impl,INFO] Successfully loaded client library # 0 - "fbclient.dll".
[GDS_Impl,INFO] Initilized native library OK.
[GDS_Impl,DEBUG] Original file name: d:/Datenbanken/db_ruebig.gdb
[GDS_Impl,DEBUG] File name for native code: d:/Datenbanken/db_ruebig.gdb
[FBManagedConnection,DEBUG] Could not get a db connection!
org.firebirdsql.gds.GDSException: unavailable database
at org.firebirdsql.ngds.GDS_Impl.native_isc_attach_database(Native Method)
at org.firebirdsql.ngds.GDS_Impl.isc_attach_database(GDS_Impl.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.firebirdsql.gds.GDSSynchronizationPolicy$AbstractSynchronizationPolicy.i
nvoke(GDSSynchronizationPolicy.java:110)
at $Proxy0.isc_attach_database(Unknown Source)
at
org.firebirdsql.jca.FBManagedConnectionFactory.createDbHandle(FBManagedConne
ctionFactory.java:540)
at
org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:88)
at
org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBMan
agedConnectionFactory.java:366)
at
org.firebirdsql.pool.FBConnectionPoolDataSource.allocateConnection(FBConnect
ionPoolDataSource.java:158)
at
org.firebirdsql.pool.PooledConnectionQueue.addConnection(PooledConnectionQue
ue.java:403)
at
org.firebirdsql.pool.PooledConnectionQueue.start(PooledConnectionQueue.java:
156)
at
org.firebirdsql.pool.AbstractConnectionPool.getQueue(AbstractConnectionPool.
java:182)
at
org.firebirdsql.pool.FBConnectionPoolDataSource.getFreeSize(FBConnectionPool
DataSource.java:328)
at
org.firebirdsql.pool.FBWrappingDataSource.getConnectionCount(FBWrappingDataS
ource.java:357)
at
com.TTC_Informatik.PAULA.server.App_Server.getConnection(App_Server.java:941
4)
at
com.TTC_Informatik.PAULA.server.App_Server.getReadConnection(App_Server.java
:7575)
at
com.TTC_Informatik.PAULA.server.App_Server.getAllDBObjekte(App_Server.java:2
638)
at
com.TTC_Informatik.PAULA.server.App_Server$7.construct(App_Server.java:7849)
at com.TTC_Informatik.PAULA.Tools.SwingWorker$2.run(SwingWorker.java:109)
at java.lang.Thread.run(Unknown Source)

my programm reports this for every getConnection() call on the datasource.

Carsten