Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Which version of Hibernate?
[Teneo] Which version of Hibernate? [message #83444] Tue, 15 May 2007 17:39 Go to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

I just updated my hibernate to the latest version (3.2.4 GA) and I get
the exception below. I had an older version of the hibernate jar (still
called hibernate3.jar) from march and the library example works fine
there. Any thoughts?

Exception in thread "main" org.hibernate.exception.SQLGrammarException:
could not insert: [Library]
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at
org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:40)
at
org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
at
org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
at
org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
at
org.hibernate.event.def.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at
org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
at mdvpersistence.Example.main(Example.java:68)
Caused by: java.sql.SQLException: No value specified for parameter 3
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910 )
at
com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStat ement.java:1674)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1512)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1455)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1440)
at
org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate. executeAndExtract(IdentityGenerator.java:73)
at
org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:33)
... 16 more
Re: [Teneo] Which version of Hibernate? [message #83485 is a reply to message #83444] Tue, 15 May 2007 18:32 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I am still at hibernate 3.2.3.

Can you post the hbm and the hibernate log output? If you set these then you should get some info:
### log just the SQL
log4j.logger.org.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=debug

Here is a post with a similar problem only it is not in english but maybe you can understand what
they write:
http://www.guj.com.br/posts/list/59353.java

gr. Martin

Ian Bull wrote:
> I just updated my hibernate to the latest version (3.2.4 GA) and I get
> the exception below. I had an older version of the hibernate jar (still
> called hibernate3.jar) from march and the library example works fine
> there. Any thoughts?
>
> Exception in thread "main" org.hibernate.exception.SQLGrammarException:
> could not insert: [Library]
> at
> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>
> at
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>
> at
> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:40)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>
> at
> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>
> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>
> at
> org.hibernate.event.def.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>
> at
> org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
> at mdvpersistence.Example.main(Example.java:68)
> Caused by: java.sql.SQLException: No value specified for parameter 3
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910 )
> at
> com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStat ement.java:1674)
>
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1512)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1455)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1440)
> at
> org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate. executeAndExtract(IdentityGenerator.java:73)
>
> at
> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:33)
>
> ... 16 more


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Which version of Hibernate? [message #83499 is a reply to message #83485] Wed, 16 May 2007 05:46 Go to previous message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Thanks Martin,

No worries, I just noticed on the Elver site where you listed the
dependency on 3.2.3. I was just updating my system, but I a fine with
hibernate 3.2.3 (I am only using hibernate through Teneo anyways) :)

cheers,
ian

Martin Taal wrote:
> I am still at hibernate 3.2.3.
>
> Can you post the hbm and the hibernate log output? If you set these then
> you should get some info:
> ### log just the SQL
> log4j.logger.org.hibernate.SQL=debug
>
> ### log JDBC bind parameters ###
> log4j.logger.org.hibernate.type=debug
>
> Here is a post with a similar problem only it is not in english but
> maybe you can understand what they write:
> http://www.guj.com.br/posts/list/59353.java
>
> gr. Martin
>
> Ian Bull wrote:
>> I just updated my hibernate to the latest version (3.2.4 GA) and I get
>> the exception below. I had an older version of the hibernate jar
>> (still called hibernate3.jar) from march and the library example works
>> fine there. Any thoughts?
>>
>> Exception in thread "main"
>> org.hibernate.exception.SQLGrammarException: could not insert: [Library]
>> at
>> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>>
>> at
>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>>
>> at
>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:40)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>>
>> at
>> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>>
>> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>>
>> at
>> org.hibernate.event.def.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>
>> at
>> org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>
>> at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
>> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
>> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
>> at mdvpersistence.Example.main(Example.java:68)
>> Caused by: java.sql.SQLException: No value specified for parameter 3
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910 )
>> at
>> com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStat ement.java:1674)
>>
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1512)
>>
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1455)
>>
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1440)
>>
>> at
>> org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate. executeAndExtract(IdentityGenerator.java:73)
>>
>> at
>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:33)
>>
>> ... 16 more
>
>
Re: [Teneo] Which version of Hibernate? [message #606696 is a reply to message #83444] Tue, 15 May 2007 18:32 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I am still at hibernate 3.2.3.

Can you post the hbm and the hibernate log output? If you set these then you should get some info:
### log just the SQL
log4j.logger.org.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=debug

Here is a post with a similar problem only it is not in english but maybe you can understand what
they write:
http://www.guj.com.br/posts/list/59353.java

gr. Martin

Ian Bull wrote:
> I just updated my hibernate to the latest version (3.2.4 GA) and I get
> the exception below. I had an older version of the hibernate jar (still
> called hibernate3.jar) from march and the library example works fine
> there. Any thoughts?
>
> Exception in thread "main" org.hibernate.exception.SQLGrammarException:
> could not insert: [Library]
> at
> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>
> at
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>
> at
> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:40)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>
> at
> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>
> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>
> at
> org.hibernate.event.def.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>
> at
> org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
> at mdvpersistence.Example.main(Example.java:68)
> Caused by: java.sql.SQLException: No value specified for parameter 3
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910 )
> at
> com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStat ement.java:1674)
>
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1512)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1455)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1440)
> at
> org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate. executeAndExtract(IdentityGenerator.java:73)
>
> at
> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:33)
>
> ... 16 more


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Which version of Hibernate? [message #606697 is a reply to message #83485] Wed, 16 May 2007 05:46 Go to previous message
Ian Bull is currently offline Ian BullFriend
Messages: 145
Registered: July 2009
Senior Member
Thanks Martin,

No worries, I just noticed on the Elver site where you listed the
dependency on 3.2.3. I was just updating my system, but I a fine with
hibernate 3.2.3 (I am only using hibernate through Teneo anyways) :)

cheers,
ian

Martin Taal wrote:
> I am still at hibernate 3.2.3.
>
> Can you post the hbm and the hibernate log output? If you set these then
> you should get some info:
> ### log just the SQL
> log4j.logger.org.hibernate.SQL=debug
>
> ### log JDBC bind parameters ###
> log4j.logger.org.hibernate.type=debug
>
> Here is a post with a similar problem only it is not in english but
> maybe you can understand what they write:
> http://www.guj.com.br/posts/list/59353.java
>
> gr. Martin
>
> Ian Bull wrote:
>> I just updated my hibernate to the latest version (3.2.4 GA) and I get
>> the exception below. I had an older version of the hibernate jar
>> (still called hibernate3.jar) from march and the library example works
>> fine there. Any thoughts?
>>
>> Exception in thread "main"
>> org.hibernate.exception.SQLGrammarException: could not insert: [Library]
>> at
>> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>>
>> at
>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>>
>> at
>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:40)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>>
>> at
>> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>>
>> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>>
>> at
>> org.hibernate.event.def.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>
>> at
>> org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>
>> at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
>> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
>> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
>> at mdvpersistence.Example.main(Example.java:68)
>> Caused by: java.sql.SQLException: No value specified for parameter 3
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910 )
>> at
>> com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStat ement.java:1674)
>>
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1512)
>>
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1455)
>>
>> at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1440)
>>
>> at
>> org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate. executeAndExtract(IdentityGenerator.java:73)
>>
>> at
>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:33)
>>
>> ... 16 more
>
>
Previous Topic:Is it possible to store uml models excluding class diagrams using Teneo or CDO?
Next Topic:[Teneo] Performance creating a DB
Goto Forum:
  


Current Time: Thu Jan 21 15:25:11 GMT 2021

Powered by FUDForum. Page generated in 0.02420 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top