-->
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: [MySQL] - Value cannot be null.Parameter name: type
PostPosted: Mon Sep 22, 2008 10:22 am 
Newbie

Joined: Mon Sep 22, 2008 10:08 am
Posts: 2
Location: MG - Brasil
Hibernate version: 0.4.0.0

Code between sessionFactory.openSession() and session.close():

try
{
session = factory.OpenSession();

IEnumerator iterate = session.Enumerable(
" select p" +
" from Parametro as p" +
" where p.Nome = :0"
, Util.DATA_BASE_VERSION, NHibernate.Type.TypeFactory.GetAnsiStringType()).GetEnumerator();

iterate.MoveNext();
paramDataBaseVersion = (TBIZ.sgsti.sgs.config.Parametro) iterate.Current;
}
finally
{
session.Close();
}



Full stack trace of any exception that occurs:

" at NHibernate.Impl.SessionImpl.Enumerable(String query, QueryParameters parameters)\r\n at NHibernate.Impl.SessionImpl.Enumerable(String query, Object[] values, IType[] types)\r\n at NHibernate.Impl.SessionImpl.Enumerable(String query, Object value, IType type)\r\n at TBIZ.sgsti.seg.NHibernateFacadeBase.set_Client(String value) in D:\\dados\\techbiz\\AES\\Produtos\\Aurus\\1.4.0.0\\Desenvolvimento\\CodigoFonte\\TBIZ.sgsti\\TBIZ.sgsti\\seg\\NHibernateFacadeBase.cs:line 179"



Name and version of the database you are using: MySQL 5.0

Debug level Hibernate log excerpt: ALL

Problem: My app run ok with SQL Server and Oracle. I migrated all tables to MySQL 5.0. When a execute the same EXE I receive the following error (in this line session = factory.OpenSession();) : "Value cannot be null.Parameter name: type"

[PS] Properties ConnectionProvider.Driver.ConnectionType and ConnectionProvider.Driver.CommandType are null usind MySQL. They are fill using SQL Server and Oracle.

Thanks.

Edson Emídio


Top
 Profile  
 
 Post subject: Re: [MySQL] - Value cannot be null.Parameter name: type
PostPosted: Tue Sep 23, 2008 1:52 am 
Regular
Regular

Joined: Tue Jul 29, 2008 3:30 am
Posts: 74
edsonemidio wrote:
Hibernate version: 0.4.0.0

You know that the newest version is 2.0.0?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2008 8:41 am 
Newbie

Joined: Mon Sep 22, 2008 10:08 am
Posts: 2
Location: MG - Brasil
Yes, but we can´t change version now.


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.