-->
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.  [ 2 posts ] 
Author Message
 Post subject: error on commit on Oracle
PostPosted: Thu Mar 01, 2012 8:09 am 
Newbie

Joined: Thu Mar 01, 2012 8:00 am
Posts: 2
Hi,
i have this exception on transaction.commit on Oracle database
The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at NHibernate.AdoNet.OracleDataClientBatchingBatcher.AddToBatch(IExpectation expectation)
at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session)
at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session)
at NHibernate.Action.EntityInsertAction.Execute()
at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
at NHibernate.Engine.ActionQueue.ExecuteActions()
at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)
at NHibernate.Impl.SessionImpl.Flush()
at NHibernate.Transaction.AdoTransaction.Commit()
The method i invoke works in some case. I did a session.save(myEntity).
The entity has this mapping:
<class name="Log" table="Log">
<id name="Id" column="ID">
<generator class="native" />
</id>
<property name="Data" type="DateTime" not-null="true" />
<property name="IdUtente" />
<property name="TipoUtente" length="1" />
<property name="Tipo" length="50" not-null="true" />
<property name="Pagina" length="100" not-null="true" />
<property name="IdRecord" column="IDRecord" />
<property name="Messaggio" length="200" />
<property name="Note" length="4001"/>
</class>


Top
 Profile  
 
 Post subject: Re: error on commit on Oracle
PostPosted: Thu Mar 01, 2012 10:24 am 
Newbie

Joined: Thu Mar 01, 2012 8:00 am
Posts: 2
I understood the error is Oracle generate 1 sequence for all the tables...How can is olve this problem?
now i have 1 sequence per table and always the same problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.