-->
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.  [ 1 post ] 
Author Message
 Post subject: Error migrating from 1.0.4 to 1.2.0
PostPosted: Thu Jul 26, 2007 9:42 am 
Newbie

Joined: Thu Jul 26, 2007 9:15 am
Posts: 1
Hi.

My sample test application, ok for NHIbernate 1.0.4 (Mono and NET, Sql Server and Oracle), raise error using NHIbernate 1.2.0 (Mono - Sql Server); others test on 1.2.0 (Mono-Oracle, .Net-Sql Server, .Net-Oracle) is ok

Error (form log4net log) is ********************
DEBUG [1056] (:0) - Obtaining IDbConnection from Driver
DEBUG [1056] (:0) - SQL Exception
System.ArgumentException: An invalid argument was specified.
at System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.set_Transaction (IDbTransaction value) [0x00000]
at NHibernate.Transaction.AdoTransaction.Enlist (IDbCommand command) [0x00000]
at NHibernate.Impl.BatcherImpl.Prepare (IDbCommand cmd) [0x00000]
at NHibernate.Impl.BatcherImpl.ExecuteReader (IDbCommand cmd) [0x00000]
at NHibernate.Loader.Loader.GetResultSet (IDbCommand st, NHibernate.Engine.RowSelection selection, ISessionImplementor session) [0x00000]

Mapping file is *********************
<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property">
<class name="test.ClasseBase, PerformanceDominio"
table="ClasseBase"
mutable="true"
lazy="true">
<id name="Intero" column="Intero" type="Int32">
<generator class="assigned" ></generator>
</id>

<property name="Booleano" type="Boolean"/>
<property name="Decimale" type="Decimal"/>
<property name="Data" type="DateTime"/>
<property name="Stringa" type="String(255)"/>
</class>
</hibernate-mapping>

Configuration file is *********************
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<!-- properties -->
<property name="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="hibernate.connection.connection_string">Server=xxxx;initial catalog=xxxx;User ID=xxxx;Password=xxxx</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.dialect">NHibernate.Dialect.MsSql2000Dialect</property>
<property name="hibernate.use_outer_join">true</property>
<property name="hibernate.query.substitutions">true 1, false 0, yes 1, no 0</property>

</session-factory>

</hibernate-configuration>

Db server is Sql Server 2000.
Mono is 1.2.4 version.
NHibernate is 1.2.0.

What's wrong?


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

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.