-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: "Could Not Insert" Exception
PostPosted: Fri Jan 27, 2006 10:36 am 
Newbie

Joined: Fri Jan 27, 2006 10:27 am
Posts: 13
Hello Everyone,

I am a new user to NHibernate.

I am using it with PostgreSQL.

When i try to load the database, i get the following exception:


could not insert: [Factory.LibraryBookInfo#3]

at NHibernate.Persister.EntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, SqlString sql, Object obj, ISessionImplementor session)

at NHibernate.Persister.EntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session)

at NHibernate.Impl.ScheduledInsertion.Execute()

at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)

at NHibernate.Impl.SessionImpl.Execute()

at NHibernate.Impl.SessionImpl.Flush()

at NHibernate.Transaction.AdoTransaction.Commit()

at Factory.BookInfoFactory.SaveInstance(LibraryBookInfo bookInfo) in myclass.

where Factory is my assembly and LibraryBookInfo is the class in that assembly.



Same error occurs while i try to load. 'Could not Load'.

Anyone Plz help.


Thanks in Advance,

Dhivya N.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 27, 2006 10:47 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Look at InnerExceptions for more details. Looks like there's a problem connecting to the database.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 3:32 am 
Newbie

Joined: Fri Jan 27, 2006 10:27 am
Posts: 13
Now it works fine.
Thanks a lot sergey.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.