From: Eduardo S. (JIRA) <nh...@gm...> - 2010-09-23 17:51:50
|
.Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options ----------------------------------------------------------------------- Key: NHLQ-75 URL: http://216.121.112.228/browse/NHLQ-75 Project: NHibernate.Linq Issue Type: Bug Components: Core Affects Versions: 1.0.0 Reporter: Eduardo Segura Priority: Minor Attachments: CacheableFetchTest.zip This query: IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); throws this exception: NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. For a detailed discussion, including full exception stacks, please see: http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Eduardo S. (JIRA) <nh...@gm...> - 2010-09-23 18:17:56
|
[ http://216.121.112.228/browse/NHLQ-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19878#action_19878 ] Eduardo Segura commented on NHLQ-75: ------------------------------------ Seems like I can't edit this issue to remove the word 'Options'. Please disregard that last word. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NHLQ-75 > URL: http://216.121.112.228/browse/NHLQ-75 > Project: NHibernate.Linq > Issue Type: Bug > Components: Core > Affects Versions: 1.0.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Dean W. (JIRA) <nh...@gm...> - 2010-09-23 21:39:00
|
[ http://216.121.112.228/browse/NHLQ-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19882#action_19882 ] Dean Ward commented on NHLQ-75: ------------------------------- Just to clarify, this issue affects NHibernate trunk, not v1 of NHibernate.Linq! > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NHLQ-75 > URL: http://216.121.112.228/browse/NHLQ-75 > Project: NHibernate.Linq > Issue Type: Bug > Components: Core > Affects Versions: 1.0.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Eduardo S. (JIRA) <nh...@gm...> - 2010-09-23 21:51:57
|
[ http://216.121.112.228/browse/NHLQ-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19883#action_19883 ] Eduardo Segura commented on NHLQ-75: ------------------------------------ That's correct. The Linq provider is now part of the trunk (NHibernate.Linq.LinqExtensionsMethods), but I thought of reporting the issue within the scope of the NHibernate.Linq project for the sake of organization. (I'm sure the admin can move the issue if needed). The version field is mandatory when filing a bug, so I chose the only option available. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NHLQ-75 > URL: http://216.121.112.228/browse/NHLQ-75 > Project: NHibernate.Linq > Issue Type: Bug > Components: Core > Affects Versions: 1.0.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Luis F. (JIRA) <nh...@gm...> - 2011-03-21 12:27:54
|
[ http://216.121.112.228/browse/NHLQ-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20678#action_20678 ] Luis Fernando commented on NHLQ-75: ----------------------------------- I also face the probblema in NHibernate 3.1.0. Is there a way to fix this? > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NHLQ-75 > URL: http://216.121.112.228/browse/NHLQ-75 > Project: NHibernate.Linq > Issue Type: Bug > Components: Core > Affects Versions: 1.0.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Steve B. (JIRA) <nh...@gm...> - 2011-03-21 12:48:49
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Bohlen moved NHLQ-75 to NH-2587: -------------------------------------- Component/s: (was: Core) Linq Provider Affects Version/s: (was: 1.0.0) 3.1.0 Key: NH-2587 (was: NHLQ-75) Project: NHibernate (was: NHibernate.Linq) > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Luis F. (JIRA) <nh...@gm...> - 2011-03-21 13:46:54
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20679#action_20679 ] Luis Fernando commented on NH-2587: ----------------------------------- Hi Steve Bohlen. Thank you for updating this bug. But it would be asking too much if I asked you to raise this bug to Critical, or at least Major. I think it's a serious problem because it forces us to not use Linq if we need to use the cache and still we would have to modify all the data access layer. Thank you this already. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Marcin B. (JIRA) <nh...@gm...> - 2011-03-29 07:53:32
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20788#action_20788 ] Marcin Budny commented on NH-2587: ---------------------------------- I also encountered this problem. I guess the priority should be higher than Minor for something like this. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Łukasz P. (J. <nh...@gm...> - 2011-04-11 07:49:24
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20876#action_20876 ] Łukasz Podolak commented on NH-2587: ------------------------------------ I am stuck as well. This bug makes in most cases Linq provider useless. What I am doing now is converting all queries that need fetching + cache to QueryOver or Criteria. This should definitely not be a Minor > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Mark J. (JIRA) <nh...@gm...> - 2011-04-11 14:13:34
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20885#action_20885 ] Mark Jerzykowski commented on NH-2587: -------------------------------------- I'd just like to add my voice to the raising of the priority of this bug. It does make using Linq essentially impossible in anything other than simple apps/queries. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Priority: Minor > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Patrick E. (JIRA) <nh...@gm...> - 2011-04-11 18:33:05
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Earl updated NH-2587: ----------------------------- Priority: Major (was: Minor) > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Priority: Major > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Patrick E. (JIRA) <nh...@gm...> - 2011-04-11 18:33:38
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Earl reassigned NH-2587: -------------------------------- Assignee: Patrick Earl > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Assignee: Patrick Earl > Priority: Major > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Luis F. (JIRA) <nh...@gm...> - 2011-04-11 19:24:32
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20888#action_20888 ] Luis Fernando commented on NH-2587: ----------------------------------- Great news, it's good to know that the developers listen to the community. Thank you guys. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Assignee: Patrick Earl > Priority: Major > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Eduardo S. (JIRA) <nh...@gm...> - 2011-04-11 19:43:32
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20889#action_20889 ] Eduardo Segura commented on NH-2587: ------------------------------------ And on my birthday, no less! :). By the way, Patrick, I can code a 'proper' NHibernate test if that would help (and given that this issue has now 21 votes.) Let me know. I'll be happy to help. And thanks for looking into this. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Assignee: Patrick Earl > Priority: Major > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Patrick E. (JIRA) <nh...@gm...> - 2011-04-11 20:06:35
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20890#action_20890 ] Patrick Earl commented on NH-2587: ---------------------------------- Unfortunately(?) I already have a failing test case based on your earlier code. At the moment it's not clear to me what's going on. The result transformer hint on the mailing list is interesting though. I'm naturally happy to have any hints or insights anyone can provide. I can't promise I'll be able to fix this quickly, but I can say that I'll be looking at it as time permits. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Assignee: Patrick Earl > Priority: Major > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Patrick E. (JIRA) <nh...@gm...> - 2011-04-12 03:33:38
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20892#action_20892 ] Patrick Earl commented on NH-2587: ---------------------------------- The rabbit hole goes deep on this one. It's fundamentally related to complications between result transformers and caching. This is apparently fixed in Hibernate 4.0, but it looks like there would be a substantial amount of work to figure out exactly what and how to port. Because fetching can create duplicate rows, Linq adds a distinct result transformer. I'll think more on this. > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options > ----------------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Assignee: Patrick Earl > Priority: Major > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Julian M. (JIRA) <nh...@gm...> - 2011-04-12 09:20:04
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Maughan updated NH-2587: ------------------------------- Summary: .Cacheable().Fetch() throws 'Exception occurred getter of xxx' (was: .Cacheable().Fetch() throws 'Exception occurred getter of xxx' Options ) > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' > -------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Assignee: Patrick Earl > Priority: Major > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-03 11:20:52
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo reassigned NH-2587: ------------------------------- Assignee: Fabio Maulo (was: Patrick Earl) > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' > -------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Assignee: Fabio Maulo > Priority: Major > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-03 11:21:19
|
[ http://216.121.112.228/browse/NH-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo resolved NH-2587. ----------------------------- Resolution: Fixed Fix Version/s: 3.2.0Alpha3 > .Cacheable().Fetch() throws 'Exception occurred getter of xxx' > -------------------------------------------------------------- > > Key: NH-2587 > URL: http://216.121.112.228/browse/NH-2587 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Eduardo Segura > Assignee: Fabio Maulo > Priority: Major > Fix For: 3.2.0Alpha3 > > Attachments: CacheableFetchTest.zip > > > This query: > IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList(); > throws this exception: > NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type.. > For a detailed discussion, including full exception stacks, please see: > http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |