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 executing query - InnerException "SenderFi7_1_0_"
PostPosted: Mon Apr 26, 2010 6:47 pm 
Newbie

Joined: Mon Apr 26, 2010 6:32 pm
Posts: 2
I'm using Fluent Nhibernate through Sharp Architecture.

I have a query that I am running that has been written in Native SQL and is executed using:
Code:
this.Session.CreateSQLQuery(query).AddEntity("Customer", typeof(App.Core.Customer)).List<Customer>();


The query completes successfully on within SQL Server 2008 but when it returns I get the exception: Nhibernate.ADO could not execute query (then the sql statement).
The Inner exception says: "SenderFi7_1_0_"

I have been able to run this directly in SQL server where it returns around 350,000 rows.
I have also been able to run the code against SQLite without getting the exception, but there was far less data to be returned.

Code:
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters)
   at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters)
   at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet`1 querySpaces, IType[] resultTypes)
   at NHibernate.Loader.Custom.CustomLoader.List(ISessionImplementor session, QueryParameters queryParameters)
   at NHibernate.Impl.SessionImpl.ListCustomQuery(ICustomQuery customQuery, QueryParameters queryParameters, IList results)
   at NHibernate.Impl.SessionImpl.List(NativeSQLQuerySpecification spec, QueryParameters queryParameters, IList results)
   at NHibernate.Impl.SessionImpl.List[T](NativeSQLQuerySpecification spec, QueryParameters queryParameters)
   at NHibernate.Impl.SqlQueryImpl.List[T]()
   at App.Data.CustomerRepository.FindByTriggerCriteria(Criteria triggerCriteria) in C:\App\Trunk\app\App.Data\CustomerRepository.cs:line 175


Any ideas?


Top
 Profile  
 
 Post subject: Re: error executing query - InnerException "SenderFi7_1_0_"
PostPosted: Tue Apr 27, 2010 1:04 pm 
Newbie

Joined: Mon Apr 26, 2010 6:32 pm
Posts: 2
Solved it.

There was one column that I wasn't returning in my query that the object/entity expected.

SenderFi7_1_0_ was the name that nhibernate was giving to the missing column/property.

After I added the column to the select, things started working.


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.