|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
ColdFusion MX 6 1 Error (Cant Track the Error down)
Hi all,Joe Eugene 02/19/04 02:51 P > I am getting the below in a New Application. I am unable toDave Watts 02/19/04 02:56 P Thanks DaveJoe Eugene 02/19/04 03:26 P > It seems like the above No 3 might be the problem, OrDave Watts 02/19/04 04:13 P I think i finally found where the problem is...Joe Eugene 02/20/04 02:01 P > I have tried to Delete the CFMAGIC Cookie and it doesnt seemDave Watts 02/20/04 02:15 P Without the domain, CF 5.0 wouldnt delete the cookie at all. Specifying the domainJoe Eugene 02/20/04 05:07 P > Without the domain, CF 5.0 wouldnt delete the cookie atDave Watts 02/20/04 05:56 P Hi all, I am getting the below in a New Application. I am unable to find the error cause CFMX doesnt really report any clear Errors and there are No Application Errors. I am using CFC's as part of the Model and UserManger CFC for Client scope abstraction. There are few CFC's involved, so its not easy to post code. Any Ideas? Thanks, Joe Eugene Application Log Feb 19, 2004 2:40 PM Error 0 unFranchiseMX Exception Log 1 "Error","jrpp-198","02/19/04","14:02:58","unFranchiseMX"," The specific sequence of files included or processed is: D:\wwwroot\unFranchise\index.cfm " 2 java.lang.NullPointerException 3 at coldfusion.runtime.ClientScopeKey.hashCode(ClientScopeKey.java:29) 4 at java.util.Hashtable.get(Hashtable.java:333) 5 at coldfusion.runtime.ClientScopeServiceImpl.GetClientScope(ClientScopeServiceImpl.java:168) 6 at coldfusion.tagext.lang.ApplicationTag.setupClientScope(ApplicationTag.java:565) 7 at coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:283) 8 at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1871) 9 at cfApplication2ecfm1098382522.runPage(D:\wwwroot\unFranchise\Application.cfm:10) 10 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147) 11 at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357) 12 at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62) 13 at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:30) 14 at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:93) 15 at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:43) 16 at coldfusion.filter.PathFilter.invoke(PathFilter.java:80) 17 at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47) 18 at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) 19 at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35) 20 at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43) 21 at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) 22 at coldfusion.CfmServlet.service(CfmServlet.java:105) 23 at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) 24 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) 25 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) 26 at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252) 27 at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) 28 at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192) 29 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451) 30 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) 31 "Error","jrpp-198","02/19/04","14:03:38","unFranchiseMX"," The specific sequence of files included or processed is: D:\wwwroot\unFranchise\index.cfm " ----- Excess quoted text cut - see Original Post for more ----- It looks like it has something to do with your application's use of Client variables. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 Thanks Dave Here is the scenario with our Client Scope variables 1. I added an additional field in CGlobal Table for Client Variables on SQL Server. CountID (This is just an Identity field that increments automatically) 2. I am not using CFMX to Purge the Data, rather i have a SQL Server Job running every hour to clear the data. e.g. delete from CGLOBAL where LVisit < dateAdd(hh, -2, getDate()) and also clearing the CData Table 3. We have some other sites that run under the same domain.. e.g. site 1. www.abc.com site 2. mx.abc.com Since they are all the same domains, the user can go site 1, get a cfID and cfToken and come to visit site 2. Now site 2 will Not issue another cfID and cfToken but will try to use the Existing BROWSER cfid and cfToken.. This seems to create these records in the Client DB like 2696:f5fea7511ae896db-CF05F70C-9CDF-54E1-67021398B69FAC78 2697:97884d334feb117a-CF064A7B-A65C-B085-9641B87C9CDD73AE 2639:44849791 The First 2 were Generated by the New ColdFusion MX J2EE Box, but the last one was generated from a CF 5.0 Box using a Completely different Client Database. It seems like the above No 3 might be the problem, Or No 1/No 2? I am using the cfID and cfToken for Browser Sessions only, i know you can specify a domain but the domain is all the same.. Can you specify something like domain="mx.abc.com"? and Re Generate cfID's and cfTokens? Appreciate your help. Thanks, Joe Eugene > I am getting the below in a New Application. I am unable to > find the error cause CFMX doesnt really report any clear > Errors and there are No Application Errors. > > ... > 2 > java.lang.NullPointerException > > 3 > at > coldfusion.runtime.ClientScopeKey.hashCode(ClientScopeKey.java:29) > > 4 > at java.util.Hashtable.get(Hashtable.java:333) > > 5 > at > coldfusion.runtime.ClientScopeServiceImpl.GetClientScope(Clien > tScopeServiceImpl.java:168) It looks like it has something to do with your application's use of Client variables. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 > It seems like the above No 3 might be the problem, Or > No 1/No 2? I've never added an identity field to either of the CF-generated client variable tables, so I don't know if that could cause problems, although it seems unlikely. You can safely purge client data from SQL directly, too. > I am using the cfID and cfToken for Browser Sessions > only, i know you can specify a domain but the domain > is all the same.. Can you specify something like > domain="mx.abc.com"? and Re Generate cfID's and cfTokens? You can write the cookies yourself, rather than using CFAPPLICATION to do so. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 I think i finally found where the problem is... We have another server (CF 5.0) using <CFApplication setDomainCookies="Yes" ....> for some Unknown Process. Well the above creates a CFMAGIC Cookie and this seems to Conflict when the Client Session is created on the CFMX Application and its seems to switch the CFID's and CFTokens with the ones in CFMAGIC. I have tried to Delete the CFMAGIC Cookie and it doesnt seem to work unless you physically delete it from the browser. Anybody know a work around this? Thanks, Joe Eugene > It seems like the above No 3 might be the problem, Or > No 1/No 2? I've never added an identity field to either of the CF-generated client variable tables, so I don't know if that could cause problems, although it seems unlikely. You can safely purge client data from SQL directly, too. > I am using the cfID and cfToken for Browser Sessions > only, i know you can specify a domain but the domain > is all the same.. Can you specify something like > domain="mx.abc.com"? and Re Generate cfID's and cfTokens? You can write the cookies yourself, rather than using CFAPPLICATION to do so. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 > I have tried to Delete the CFMAGIC Cookie and it doesnt seem > to work unless you physically delete it from the browser. You mean you can't do something like this within your code? <cfif IsDefined("Cookie.CFMAGIC")> <cfcookie name="CFMAGIC" value="" expires="NOW"> </cfif> If not, you might want to try specifying the appropriate DOMAIN attribute within your CFCOOKIE tag. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 Without the domain, CF 5.0 wouldnt delete the cookie at all. Specifying the domain helped it from creating Duplicate Client CFID's And CFToken's but now CFMX doesnt seem to ReCreate the CFID's and CFToken's but rather uses the existing one. This is quite confusing .. appreciate any input/help. Thanks, Joe Eugene > I have tried to Delete the CFMAGIC Cookie and it doesnt seem > to work unless you physically delete it from the browser. You mean you can't do something like this within your code? <cfif IsDefined("Cookie.CFMAGIC")> <cfcookie name="CFMAGIC" value="" expires="NOW"> </cfif> If not, you might want to try specifying the appropriate DOMAIN attribute within your CFCOOKIE tag. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 > Without the domain, CF 5.0 wouldnt delete the cookie at > all. Specifying the domain helped it from creating Duplicate > Client CFID's And CFToken's but now CFMX doesnt seem to > ReCreate the CFID's and CFToken's but rather uses the > existing one. > > This is quite confusing .. appreciate any input/help. Here's a suggestion. You could set another cookie upon entry to your application. If that cookie doesn't exist already, delete the CFID and CFTOKEN cookies. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444
|
June 20, 2013
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||