Subject Jaybird 2
Author Carsten Schäfer
Hi,
i wanted to test the new Jaybird2 Beta driver. (WinXp with Firebird 2
Alpha and Java 1.4.2)
I replaced the firebirdsql-full.jar with the jaybird-full-2.0.0.jar.
When i start my programm i get the following exception for every call of
prepareStatement(sql)
java.lang.RuntimeException: Cannot get the value for this argument type
as a string
at
org.firebirdsql.gds.impl.wire.ParameterBufferBase$Argument.getValueAsString(ParameterBufferBase.java:185)
at
org.firebirdsql.gds.impl.wire.ParameterBufferBase.getArgumentAsString(ParameterBufferBase.java:64)
at
org.firebirdsql.gds.impl.GDSHelper.prepareStatement(GDSHelper.java:142)
at
org.firebirdsql.jdbc.AbstractStatement.prepareFixedStatement(AbstractStatement.java:1103)
at
org.firebirdsql.jdbc.AbstractPreparedStatement.prepareFixedStatement(AbstractPreparedStatement.java:1121)
at
org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPreparedStatement.java:106)
at
org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.java:38)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:825)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:806)
at
org.firebirdsql.pool.PingablePooledConnection.prepareStatement(PingablePooledConnection.java:402)
at
org.firebirdsql.pool.XPreparedStatementCache.take(XPreparedStatementCache.java:117)
at
org.firebirdsql.pool.PingablePooledConnection.getPreparedStatement(PingablePooledConnection.java:379)
at
org.firebirdsql.pool.PooledConnectionHandler.handlePrepareStatement(PooledConnectionHandler.java:295)
at
org.firebirdsql.pool.PooledConnectionHandler.invoke(PooledConnectionHandler.java:223)
at $Proxy0.prepareStatement(Unknown Source)

Do i have to change my code ?

mfg
Carsten