Nope... no includes.
>From the strack trace it looks like it has something to do with J2EE
sessions. The error also seems to only happen when more then 1 instance is
running, so perhaps something with session replication? I set up the
cluster using cf admin, could that be a problem? Should I be using J2EE
admin instead? Here is the stack trace:
java.lang.ArithmeticException: / by zero
at coldfusion.util.FastHashtable.find(FastHashtable.java:77)
at coldfusion.util.FastHashtable.put(FastHashtable.java:180)
at
coldfusion.runtime.J2eeSessionScope.bind(J2eeSessionScope.java:51)
at coldfusion.runtime.AbstractScope.bindName(AbstractScope.java:50)
at coldfusion.runtime.Scope.put(Scope.java:67)
at coldfusion.runtime.J2eeSessionScope.put(J2eeSessionScope.java:70)
at
coldfusion.runtime.AppHelper.setupJ2eeSessionScope(AppHelper.java:552)
at
coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:602)
at
coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:248)
at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915)
at
cfApplication2ecfm2142783449.runPage(W:\rise\cf\www\Application.cfm:7)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:172)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence
Filter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:11
5)
at coldfusion.CfmServlet.service(CfmServlet.java:107)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at
net.teleologic.server.filters.ProxyRemoteHostFilter.doFilter(ProxyRemoteHost
Filter.java:69)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426
)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
And here is find method from FastHashTable.java (although mangled a bit by
the decompilation)
protected synchronized int find(Object key)
{
String sKey = key.toString();
int hash = HashcodeCache.noCaseHashCode(sKey);
int code = (hash & 0x7fffffff) % keys.length;
int attempts = 0;
for(int maxAttempts = keys.length; attempts++ < maxAttempts;)
{
Object k = keys[code];
if(k == null || !REMOVED.equals(k) && (k == key ||
sKey.equalsIgnoreCase(k.toString())))
return code;
hash = code << 1 ^ attempts ^ hash;
code = (hash & 0x7fffffff) % keys.length;
}
while(attempts-- > 0)
{
Object k = keys[code];
if(k == null || !REMOVED.equals(k) && (k == key ||
sKey.equalsIgnoreCase(k.toString())))
return code;
code = (code + 1) % keys.length;
}
throw new IllegalStateException();
}
> -----Original Message-----
> From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 01, 2006 11:04 AM
> To: CF-Talk
> Subject: RE: division by 0 error
>
> Is there an include in Application.cfm that has a bit of code on ITS line
> 7
> that might cause it?
>
> ..:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
>
>
>
>
> -----Original Message-----
> From: Russ [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 01, 2006 10:52 AM
> To: CF-Talk
> Subject: division by 0 error
>
> I'm having weird intermittend division by 0 errors that I think might be
> related to multiple instances. The crash supposedly happens on
> application.cfm line 7, which is just your basic cfapplication tag.
>
>
>
>
>
>
>
>
>
> / by zero
>
>
>
>
>
>
>
>
>
>
>
> The error occurred in W:\rise\cf\www\Application.cfm: line 7
>
>
> 5 : clientmanagement="Yes"
> 6 : sessionmanagement="Yes"
> 7 : setclientcookies="Yes"
> 8 : sessiontimeout="#CreateTimeSpan(0,2,0,0)#"
> 9 : clientstorage="myClientDSN">
>
>
>
>
>
> Does anyone have any ideas of what might be causing this? Would setting
> up
> seefusion or fusionreactor help debugging this?
>
>
>
> Basically it works fine until I log in and log out several times. Then
> once
> it hits the error, it stays with it. no matter what page I go to.
>
>
>
> Russ
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262437
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4