-->
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.  [ 5 posts ] 
Author Message
 Post subject: error on web while using nHibernate and MS SQL 2000
PostPosted: Mon Nov 20, 2006 4:08 am 
Newbie

Joined: Mon Nov 20, 2006 3:58 am
Posts: 12
i m getting the following error... it runs fine on local machine but when i upload it on the web server it gives the following error.

[ObjectDisposedException: Cannot access a disposed object.
Object name: 'AdoTransaction'.]
NHibernate.Transaction.AdoTransaction.CheckNotDisposed() in c:\net\nhibernate\nhibernate\src\NHibernate\Transaction\AdoTransaction.cs:304
NHibernate.Transaction.AdoTransaction.Rollback() in c:\net\nhibernate\nhibernate\src\NHibernate\Transaction\AdoTransaction.cs:174
EDU.LUMS.OBS.DAL.DataLayer.rollback() in C:\Documents and Settings\All Users\Documents\Finale\EDU.LUMS.OBS.DAL\DataLayer.cs:131

[DALException: Unknown DataLayer Exception]
EDU.LUMS.OBS.DAL.DataLayer.rollback() in C:\Documents and Settings\All Users\Documents\Finale\EDU.LUMS.OBS.DAL\DataLayer.cs:146
EDU.LUMS.OBS.DAL.ItemDAL.getFeaturedItems() in C:\Documents and Settings\All Users\Documents\Finale\EDU.LUMS.OBS.DAL\ItemDAL.cs:460
EDU.LUMS.OBS.BL.ItemBL.getFeaturedItems() in C:\Documents and Settings\All Users\Documents\Finale\EDU.LUMS.OBS.BL\ItemBL.cs:372

[BLException: Featured Items could not been retrieved]
EDU.LUMS.OBS.BL.ItemBL.getFeaturedItems() in C:\Documents and Settings\All Users\Documents\Finale\EDU.LUMS.OBS.BL\ItemBL.cs:377
_Default.displayFeaturedItems() +54
_Default.Page_Load(Object sender, EventArgs e) +24
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


i m using the nHibernate 1.2 .0.1001 and MS SQL 2000.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 10:43 am 
Beginner
Beginner

Joined: Wed Nov 29, 2006 12:23 pm
Posts: 42
Did you end up resolving this problem? I've just tried to move a system developed using web services with a NHibernate back end, which worked fine on the development server (where it is not distributed, but still uses web services) to the productions server. I am now getting the following exception thrown by the back end when trying to retrieve some data (some retrievals are successful though)

Code:
[ObjectDisposedException: Cannot access a disposed object.
Object name: 'AdoTransaction'.]
  NHibernate.Transaction.AdoTransaction.Commit() +65


Top
 Profile  
 
 Post subject: I'm getting the same exception
PostPosted: Wed Jun 11, 2008 2:04 pm 
Newbie

Joined: Wed Jun 11, 2008 2:01 pm
Posts: 2
I get this exact exception as soon as the session is used after another exception is thrown.

To be more clear:

1. An insert fails at the db level
2. An exception is thrown
3. A select is executed
4. The above mentioned exception is thrown

Sorry to bump an old post but I am lost as to how to fix this problem.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 12, 2008 2:39 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Afaik, you can't use a session aftern an exception was thrown. You have to open a new session if you want to continue.

_________________
--Wolfgang


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 12, 2008 11:38 am 
Newbie

Joined: Wed Jun 11, 2008 2:01 pm
Posts: 2
wolli wrote:
Afaik, you can't use a session aftern an exception was thrown. You have to open a new session if you want to continue.


Thank you very much for your response. I'll give that a shot. If this is true I can see this being a problem with my current implementation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.