Subject | Resource Exception. unrecognized database parameter block |
---|---|
Author | Carsten Schäfer |
Post date | 2004-05-03T12:50:13Z |
Hi,
i wanted to test type2-diver in local-mode as a datasource with connection
pooling. (Firebird 1.5,Java1.4.2_04,Jaybird1.5RC2)
i use FBWrappingDataSource and the following code to create the datasource:
dataSource = new FBWrappingDataSource();
dataSource.setDatabase(dbServer+"/"+port+":"+db);
dataSource.setType("LOCAL");
dataSource.setUserName(user);
dataSource.setPassword(passwort);
dataSource.setEncoding("WIN1252");
dataSource.setMinConnections(5);
dataSource.setMaxConnections(20);
dataSource.setPooling(true);
dataSource.setNonStandardProperty("isc_dpb_sweep", null);
dataSource.setNonStandardProperty("isc_dpb_num_buffers", "75");
With my first call of datasource-getConnection() i get the following
exception:
org.firebirdsql.jdbc.FBSQLException: Resource Exception. unrecognized
database parameter block
Reason: unrecognized database parameter block
at
org.firebirdsql.pool.FBConnectionPoolDataSource.allocateConnection(FBConnect
ionPoolDataSource.java:171)
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.getPooledConnection(FBConnec
tionPoolDataSource.java:237)
at
org.firebirdsql.pool.FBWrappingDataSource.getConnection(FBWrappingDataSource
.java:127)
at
com.TTC_Informatik.PAULA.server.App_Server.getConnection(App_Server.java:864
9)
at com.TTC_Informatik.PAULA.server.App_Server.main(App_Server.java:8801)
at org.firebirdsql.gds.GDSException: unrecognized database parameter block
at org.firebirdsql.ngds.GDS_Impl.native_isc_attach_database(Native Method)
at org.firebirdsql.ngds.GDS_Impl.isc_attach_database(GDS_Impl.java:235)
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:100)
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:146)
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.getPooledConnection(FBConnec
tionPoolDataSource.java:237)
at
org.firebirdsql.pool.FBWrappingDataSource.getConnection(FBWrappingDataSource
.java:127)
What does it mean ?
mfg
Carsten
i wanted to test type2-diver in local-mode as a datasource with connection
pooling. (Firebird 1.5,Java1.4.2_04,Jaybird1.5RC2)
i use FBWrappingDataSource and the following code to create the datasource:
dataSource = new FBWrappingDataSource();
dataSource.setDatabase(dbServer+"/"+port+":"+db);
dataSource.setType("LOCAL");
dataSource.setUserName(user);
dataSource.setPassword(passwort);
dataSource.setEncoding("WIN1252");
dataSource.setMinConnections(5);
dataSource.setMaxConnections(20);
dataSource.setPooling(true);
dataSource.setNonStandardProperty("isc_dpb_sweep", null);
dataSource.setNonStandardProperty("isc_dpb_num_buffers", "75");
With my first call of datasource-getConnection() i get the following
exception:
org.firebirdsql.jdbc.FBSQLException: Resource Exception. unrecognized
database parameter block
Reason: unrecognized database parameter block
at
org.firebirdsql.pool.FBConnectionPoolDataSource.allocateConnection(FBConnect
ionPoolDataSource.java:171)
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.getPooledConnection(FBConnec
tionPoolDataSource.java:237)
at
org.firebirdsql.pool.FBWrappingDataSource.getConnection(FBWrappingDataSource
.java:127)
at
com.TTC_Informatik.PAULA.server.App_Server.getConnection(App_Server.java:864
9)
at com.TTC_Informatik.PAULA.server.App_Server.main(App_Server.java:8801)
at org.firebirdsql.gds.GDSException: unrecognized database parameter block
at org.firebirdsql.ngds.GDS_Impl.native_isc_attach_database(Native Method)
at org.firebirdsql.ngds.GDS_Impl.isc_attach_database(GDS_Impl.java:235)
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:100)
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:146)
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.getPooledConnection(FBConnec
tionPoolDataSource.java:237)
at
org.firebirdsql.pool.FBWrappingDataSource.getConnection(FBWrappingDataSource
.java:127)
What does it mean ?
mfg
Carsten