Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
New Member
Posts: 9
Registered: ‎07-10-2012

Web Client v8 Session Exception - NHibernate

Whenever a user hits the web client site for the first time the default exception page is displayed and the following message is logged in the Event Viewer.  All subsequent hits to the site work perfectly fine, it is just the initial call to the site to start the user session.  In the example below I tried to go to the account page but any page will cause the error.  Looks to be related to lazy loading security roles in NHibernate but I have not clue why I am recieving the error or how to go about resolving.  The site is configured for Windows Authentication and is working properly.  Any help is appreciated.  Thanks 

 

2013-05-08 13:23:30,919 [40] ERROR Sage.Platform.Application.UI.Web.ApplicationPage - SalesLogix Web Client unhandled exception [SalesLogix Error Id=SLX8103AB2482EB967B]

{

"slxErrorId": "SLX8103AB2482EB967B",

"mitigation": "ErrorContent (1)",

"date": "2013-05-08T13:23:30",

"utc": "2013-05-08T17:23:30",

"message": "Initializing[Sage.SalesLogix.Security.Role#QSYSTA000FL3]-failed to lazily initialize a collection of role: Sage.SalesLogix.Security.Role.SecuredActions, no session or session was closed.",

"source": "NHibernate.Collection.AbstractPersistentCollection, NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4",

"type": "NHibernate.LazyInitializationException",

"stackTrace": " at NHibernate.Collection.AbstractPersistentCollection.ThrowLazyInitializationException(String message)\r\n at NHibernate.Collection.AbstractPersistentCollection.ThrowLazyInitializationExceptionIfNotConnected()\r\n at NHibernate.Collection.AbstractPersistentCollection.Initialize(Boolean writing)\r\n at NHibernate.Collection.AbstractPersistentCollection.Read()\r\n at NHibernate.Collection.PersistentSet.GetEnumerator()\r\n at Sage.Platform.Collections.AbstractEntityCollection`1.<GetEnumerator>d__1.MoveNext()\r\n at Sage.SalesLogix.Security.UserRoleSecurityAccessList.GetAccessList(String userId)\r\n at Sage.SalesLogix.Web.SLXWebRoleSecurityService.GetAccessList(String userId)\r\n at Sage.SalesLogix.Web.SLXWebRoleSecurityService.HasAccess(String userId, String accessKey)\r\n at Sage.SalesLogix.Web.SLXWebRoleSecurityService.HasAccess(String accessKey)\r\n at SlxClient.AccountPage.OnPreInit(EventArgs e)",

"targetSite": "Void ThrowLazyInitializationException(System.String)",

"hashCode": "8E0506EE-141769FA-9CB4FC6A",

"pid": 920,

"identity": {

"name": "userid",

"isAuthenticated": true,

"authenticationType": ""

},

"logger": {

"level": "ERROR",

"location": "Sage.Platform.Diagnostics.ErrorHelper.LogException(:0)",

"name": "Sage.Platform.Application.UI.Web.ApplicationPage",

"message": "SalesLogix Web Client unhandled exception [SalesLogix Error Id=SLX8103AB2482EB967B]"

},

"request": {

"looksLikeAjax": false,

"isLocal": false,

"method": "GET",

"url": "http://serverA.abc.com:2099/slxclient/account.aspx",

"referrer": "",

"ipAddress": "xxx.xx.xxx.xxx",

"userAgent": "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3; MS-RTC EA 2)",

"userLanguages": "en-US"

},

"browser": {

"type": "IE7",

"name": "IE",

"version": "7.0",

"majorVersion": 7,

"minorVersion": 0.0,

"platform": "WinNT"

},

"server": {

"machineName": "serverA",

"timeZone": "Eastern Standard Time",

"commandLine": "C:\\Windows\\SysWOW64\\inetsrv\\w3wp.exe -ap \"SalesLogixDev\" -v \"v4.0\" -l \"webengine4.dll\" -a \\\\.\\pipe\\iisipm22b0dce3-80bc-45de-849a-9879bcba7ad6 -h \"C:\\inetpub\\temp\\apppools\\SalesLogixDev\\SalesLogixDev.config\" -w \"\" -m 0",

"versionString": "Microsoft Windows NT 6.1.7601 Service Pack 1",

"is64BitOperatingSystem": true,

"host": {

"siteName": "SalesLogixDev",

"applicationId": "/LM/W3SVC/8/ROOT/SlxClient",

"applicationPhysicalPath": "E:\\wwwroot\\SalesLogixDev\\SlxClient\\",

"applicationVirtualPath": "/SlxClient",

"isDebuggingEnabled": false,

"isHosted": true,

"maxConcurrentRequestsPerCPU": 5000,

"maxConcurrentThreadsPerCPU": 0

},

"logonUser": {

"name": "domain\\userid",

"authenticationType": "Negotiate",

"impersonationLevel": "Impersonation",

"isAnonymous": false,

"isGuest": false,

"isSystem": false

}

}

}

Employee
Posts: 629
Registered: ‎04-24-2009

Re: Web Client v8 Session Exception - NHibernate

There were some changes to the way Roles are loaded in Core Update 01; if you don't have that installed I would recommend it (Core + Model 02 would be even better).

 

Thanks

 

Mike