Subject | Re: [Firebird-Java] Help with Jaybird and Hibernate (inside MyEclipse) |
---|---|
Author | Francisco Antonio Vieira Souza |
Post date | 2005-05-09T09:39Z |
You are (as always) absolutely right.
Connected ok now, but I got this other problem (which I have no idea
what it can be) when trying insert some data.
Could you provide me any tip about it?
PS.
Oh dear, how can I do that about the password without changing it?
3215 [main] DEBUG net.sf.hibernate.transaction.JDBCTransaction - begin
3215 [main] DEBUG
net.sf.hibernate.connection.DriverManagerConnectionProvider - total
checked-out connections: 0
3215 [main] DEBUG
net.sf.hibernate.connection.DriverManagerConnectionProvider - using
pooled JDBC connection, pool size: 0
3215 [main] DEBUG net.sf.hibernate.transaction.JDBCTransaction -
current autocommit status:false
3215 [main] DEBUG net.sf.hibernate.impl.BatcherImpl - about to open: 0
open PreparedStatements, 0 open ResultSets
3215 [main] DEBUG net.sf.hibernate.SQL - select gen_id(
hibernate_sequence, 1 ) from RDB$DATABASE
3215 [main] DEBUG net.sf.hibernate.impl.BatcherImpl - preparing statement
3555 [main] DEBUG net.sf.hibernate.util.JDBCExceptionReporter - SQL
Exception
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544343. invalid
request BLR at offset 78
generator HIBERNATE_SEQUENCE is not defined
at
org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPreparedStatement.java:88)
at
org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.java:34)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:701)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:232)
at
net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:260)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:62)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:57)
at
net.sf.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:62)
at
net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:774)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:747)
at br.com.livraria.teste.TesteLivraria.criarLivro(TesteLivraria.java:58)
at br.com.livraria.teste.TesteLivraria.main(TesteLivraria.java:36)
at
org.firebirdsql.gds.GDSException: invalid request BLR at offset 78
generator HIBERNATE_SEQUENCE is not defined
at org.firebirdsql.jgds.GDS_Impl.readStatusVector(GDS_Impl.java:1816)
at org.firebirdsql.jgds.GDS_Impl.receiveResponse(GDS_Impl.java:1769)
at org.firebirdsql.jgds.GDS_Impl.isc_dsql_prepare(GDS_Impl.java:1267)
at
org.firebirdsql.jca.FBManagedConnection.prepareSQL(FBManagedConnection.java:773)
at
org.firebirdsql.jdbc.AbstractConnection.prepareSQL(AbstractConnection.java:958)
at
org.firebirdsql.jdbc.AbstractStatement.prepareFixedStatement(AbstractStatement.java:1047)
at
org.firebirdsql.jdbc.AbstractPreparedStatement.prepareFixedStatement(AbstractPreparedStatement.java:904)
at
org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPreparedStatement.java:86)
at
org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.java:34)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:701)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:232)
at
net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:260)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:62)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:57)
at
net.sf.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:62)
at
net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:774)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:747)
at br.com.livraria.teste.TesteLivraria.criarLivro(TesteLivraria.java:58)
at br.com.livraria.teste.TesteLivraria.main(TesteLivraria.java:36)
--
100011011100101100001110111011000111101001111001111000111101111 1000001110111011101001101111110111011010011101111 101011011010011100101110100111100101100001 10100111101111111010111110101100001
Connected ok now, but I got this other problem (which I have no idea
what it can be) when trying insert some data.
Could you provide me any tip about it?
PS.
Oh dear, how can I do that about the password without changing it?
3215 [main] DEBUG net.sf.hibernate.transaction.JDBCTransaction - begin
3215 [main] DEBUG
net.sf.hibernate.connection.DriverManagerConnectionProvider - total
checked-out connections: 0
3215 [main] DEBUG
net.sf.hibernate.connection.DriverManagerConnectionProvider - using
pooled JDBC connection, pool size: 0
3215 [main] DEBUG net.sf.hibernate.transaction.JDBCTransaction -
current autocommit status:false
3215 [main] DEBUG net.sf.hibernate.impl.BatcherImpl - about to open: 0
open PreparedStatements, 0 open ResultSets
3215 [main] DEBUG net.sf.hibernate.SQL - select gen_id(
hibernate_sequence, 1 ) from RDB$DATABASE
3215 [main] DEBUG net.sf.hibernate.impl.BatcherImpl - preparing statement
3555 [main] DEBUG net.sf.hibernate.util.JDBCExceptionReporter - SQL
Exception
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544343. invalid
request BLR at offset 78
generator HIBERNATE_SEQUENCE is not defined
at
org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPreparedStatement.java:88)
at
org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.java:34)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:701)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:232)
at
net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:260)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:62)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:57)
at
net.sf.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:62)
at
net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:774)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:747)
at br.com.livraria.teste.TesteLivraria.criarLivro(TesteLivraria.java:58)
at br.com.livraria.teste.TesteLivraria.main(TesteLivraria.java:36)
at
org.firebirdsql.gds.GDSException: invalid request BLR at offset 78
generator HIBERNATE_SEQUENCE is not defined
at org.firebirdsql.jgds.GDS_Impl.readStatusVector(GDS_Impl.java:1816)
at org.firebirdsql.jgds.GDS_Impl.receiveResponse(GDS_Impl.java:1769)
at org.firebirdsql.jgds.GDS_Impl.isc_dsql_prepare(GDS_Impl.java:1267)
at
org.firebirdsql.jca.FBManagedConnection.prepareSQL(FBManagedConnection.java:773)
at
org.firebirdsql.jdbc.AbstractConnection.prepareSQL(AbstractConnection.java:958)
at
org.firebirdsql.jdbc.AbstractStatement.prepareFixedStatement(AbstractStatement.java:1047)
at
org.firebirdsql.jdbc.AbstractPreparedStatement.prepareFixedStatement(AbstractPreparedStatement.java:904)
at
org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPreparedStatement.java:86)
at
org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.java:34)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:701)
at
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:232)
at
net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:260)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:62)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement(BatcherImpl.java:57)
at
net.sf.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:62)
at
net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:774)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:747)
at br.com.livraria.teste.TesteLivraria.criarLivro(TesteLivraria.java:58)
at br.com.livraria.teste.TesteLivraria.main(TesteLivraria.java:36)
--
100011011100101100001110111011000111101001111001111000111101111 1000001110111011101001101111110111011010011101111 101011011010011100101110100111100101100001 10100111101111111010111110101100001