-->
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: method obj_address should be virtual
PostPosted: Fri Feb 27, 2009 5:35 pm 
Newbie

Joined: Fri Feb 27, 2009 5:21 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.0.1.4000

Mapping documents:

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

Full stack trace of any exception that occurs:
2009-02-27 13:33:45,860 [2] FATAL CommonLogger - The following types may not be
used as proxies:
...Objs.User: method obj_address should be virtual
at NHibernate.Cfg.Configuration.Validate () [0x00000]
at NHibernate.Cfg.Configuration.BuildSessionFactory () [0x00000]
at Genius.NeighborhoodDirect.BusinessServices.NHibernateSessionManager..ctor (
) [0x00000]
at Objs.NHibernateSessionManager.get_Instance () [0x00000]
at Objs.ManagerBase`2[Objs.User,System.Int32]..ctor () [0x00000]
at Objs.UserManager..ctor () [0x00000]
at Objs.ManagerFactory.
GetUserManager () [0x00000]
at Objs.WebSite.SessionManager.Login (System.String login
, System.String password) [0x00000]
at Default.buttonLogin_Click (System.Object sender, System.Web.UI.ImageClickEv
entArgs e) [0x00000]

Name and version of the database you are using:
MySQL 5.1
The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:DEBUG


the Application is initially created for Windows .NET environment and works well there.
We are trying to run it in Linux Mono 2.2-14.1. and having this error.

Setting lazy="false" fixes this issue. But developers want to keep lazy="true" for speed.

there is no method obj_address in our code.

please advise

thanks


Top
 Profile  
 
 Post subject: Re: method obj_address should be virtual
PostPosted: Tue Jun 16, 2009 2:08 pm 
Newbie

Joined: Mon Feb 18, 2008 11:24 am
Posts: 1
Mono defines "internal IntPtr Object.obj_address()". There is a class ProxyInterfaceValidator that you can modify to exclude this method -- it already excludes Object.GetType().

This isn't how it will be with NHibernate 2.1, however; a different fix will be necessary.


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.