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: ThreadAbortException
PostPosted: Thu Jul 05, 2007 9:21 pm 
Newbie

Joined: Tue Dec 12, 2006 8:50 pm
Posts: 2
One section of my application has some functionality that reads unique identifiers from a CSV file and information from a dialog to generate a journal note serverside using .NET remoting

This functionality is working fine for small numbers but when I increase the number of items to process I get a ThreadAbortException. I have put in some logging at it doesn't fail at the same point each time. The kicker is that when I attach to the ASP worker process it works fine for large volumes, which is making it a little hard to debug to find where it is throwing this exception unattached.

Server log below:


System.Threading.ThreadAbortException: Thread was being aborted.
at System.DirectoryServices.Interop.UnsafeNativeMethods.IntADsOpenObject(String path, String userName, String password, Int32 flags, Guid& iid, Object& ppObject)
at System.DirectoryServices.Interop.UnsafeNativeMethods.ADsOpenObject(String path, String userName, String password, Int32 flags, Guid& iid, Object& ppObject)
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_NativeObject()
at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args)
at ExternalCommonLibrary.AuthorisationManager.GetUserByGUID(String usersGUID) in C:\RentSmartSoftware\SmartCheck\ExternalCommonLibrary\AuthorisationManager.cs:line 300
at SmartCheckBusinessObject.Journal.SetupUser(String guid) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 131
at SmartCheckBusinessObject.Journal.set_CreatedByUserGuid(String value) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 83
at NHibernate.Persister.GetSetHelper_SmartCheckBusinessObject_Journal.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Persister.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Persister\AbstractEntityPersister.cs:line 182
at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 2757
at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 373
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 355
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 168
at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object[] ids, IType[] types) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 1258
at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 1224
at NHibernate.Loader.CollectionLoader.Initialize(Object id, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\CollectionLoader.cs:line 75
at NHibernate.Collection.AbstractCollectionPersister.Initialize(Object key, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Collection\AbstractCollectionPersister.cs:line 286
2007-07-06 08:42:40,272 [4012] WARN NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.Threading.ThreadAbortException: Thread was being aborted.
at System.DirectoryServices.Interop.UnsafeNativeMethods.IntADsOpenObject(String path, String userName, String password, Int32 flags, Guid& iid, Object& ppObject)
at System.DirectoryServices.Interop.UnsafeNativeMethods.ADsOpenObject(String path, String userName, String password, Int32 flags, Guid& iid, Object& ppObject)
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_NativeObject()
at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args)
at ExternalCommonLibrary.AuthorisationManager.GetUserByGUID(String usersGUID) in C:\RentSmartSoftware\SmartCheck\ExternalCommonLibrary\AuthorisationManager.cs:line 300
at SmartCheckBusinessObject.Journal.SetupUser(String guid) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 131
at SmartCheckBusinessObject.Journal.set_CreatedByUserGuid(String value) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 83
at NHibernate.Persister.GetSetHelper_SmartCheckBusinessObject_Journal.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Persister.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Persister\AbstractEntityPersister.cs:line 182
at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 2757
at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 373
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 355
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 168
at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object[] ids, IType[] types) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 1258
at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 1224
at NHibernate.Loader.CollectionLoader.Initialize(Object id, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\CollectionLoader.cs:line 75
at NHibernate.Collection.AbstractCollectionPersister.Initialize(Object key, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Collection\AbstractCollectionPersister.cs:line 286


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 10:42 pm 
Regular
Regular

Joined: Tue Aug 08, 2006 4:28 am
Posts: 96
Location: Hong Kong
Code:
at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args)
at ExternalCommonLibrary.AuthorisationManager.GetUserByGUID(String usersGUID) in C:\RentSmartSoftware\SmartCheck\ExternalCommonLibrary\AuthorisationManager.cs:line 300
at SmartCheckBusinessObject.Journal.SetupUser(String guid) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 131
at SmartCheckBusinessObject.Journal.set_CreatedByUserGuid(String value) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 83
at NHibernate.Persister.GetSetHelper_SmartCheckBusinessObject_Journal.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Persister.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Persister\AbstractEntityPersister.cs:line 182


From the stack trace, we see that NHibernate was only trying to set the property named CreatedByUserGuid. Please check the setter of that property. Checking AuthorisationManager may help. Obviously the problem is not NHibernate related.


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.