Second Level Cache Broken?

26 views
Skip to first unread message

nfplee

unread,
Sep 6, 2011, 11:08:14 AM9/6/11
to nhusers
Hi, i've just upgraded my application from NHibernate v2 to v3.2 and i
have been getting the following error:

Provided id of the wrong type. Expected: System.Int32, got
System.Object[].

When running the following:

var transactions =
session.Query<Transaction>().Cacheable().CacheMode(CacheMode.Normal).ToList();

If i disable the second level cache it works fine. I'd really
appreciate it if someone could show me what i'm doing wrong. Thanks

Jason Meckley

unread,
Sep 6, 2011, 12:46:03 PM9/6/11
to nhu...@googlegroups.com
did you update the cache implementation binaries along with NH?

Shatl

unread,
Sep 7, 2011, 3:25:41 AM9/7/11
to nhu...@googlegroups.com

nfplee

unread,
Sep 7, 2011, 5:39:23 AM9/7/11
to nhusers
Hi thanks Shatl that appears to be the same issue. Let's hope that
they include the patch in the earliest possible release.

On Sep 7, 8:25 am, Shatl <v...@alphacloud.net> wrote:
> Plz have a look athttps://nhibernate.jira.com/browse/NH-2856
Reply all
Reply to author
Forward
0 new messages