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:
(
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
Sorry. I'm lost in stack traces. Wish I could help more.
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Friday, December 01, 2006 11:44 AM
To: CF-Talk
Subject: RE: division by 0 error
Nope
.
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Friday, December 01, 2006 11:44 AM
To: CF-Talk
Subject: RE: division by 0 error
Nope... no includes.
From the strack trace it looks like it has
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
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, December 01, 2006 12:54 PM
To: CF-Talk
Subject: RE: division by 0 error
From the strack trace it looks like it has something to do
with J2EE sessions. The error also seems to only happen when
more
If I only use 1 instance, everything is fine. Once I have
more then 1 instance in the cluster, the error happens randomly.
I'm not sure the exact reason we're using client variables.
It's a big system and I haven't played with that part of the
code yet.
In my test example the
But the error doesn't happen right away, right? Can you trap what's in
the
Session scope prior to the error?
The session scope wouldn't exist before the cfapplication tag, would
it??
~Brad
~|
Introducing the Fusion Authority
: Friday, December 01, 2006 1:31 PM
To: CF-Talk
Subject: RE: division by 0 error
If I only use 1 instance, everything is fine. Once I have
more then 1 instance in the cluster, the error happens randomly.
I'm not sure the exact reason we're using client variables.
It's a big system
I'm not sure how... The error doesn't always happen on the
same action.
Use onRequestEnd/onRequestEnd.cfm to log your session data?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers
-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, December 01, 2006 1:51 PM
To: CF-Talk
Subject: RE: division by 0 error
I'm not sure how... The error doesn't always happen on the
same action.
Use onRequestEnd/onRequestEnd.cfm to log your session data?
Dave Watts, CTO, Fig
?
Russ
-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Friday, December 01, 2006 2:10 PM
To: CF-Talk
Subject: RE: division by 0 error
I found a workaround. Basically I put cfapplication in a try catch block,
and if it fails, I force the jsessionid cookie to expire
tors.
-Original Message-
From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 12:46 PM
To: CF-Talk
Subject: RE: division
Rick,
The division operator in your first line of code is the wrong slash. I'm
not sure why, but CF apparently turns that whole thin
You're using the wrong division symbol!
/ returns a regular division
\ returns the integer result of a regular division, that means ... no
decimals!
Allan Pichler
Machine Dreams Inc.
-Original Message-
From: Rick Lamb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 9:02
Try using cfset temp = decimalFormat(getdealers.recordcount/100)
Sincirely
Tom Espen Pedersen
developer
www.pixelduck.com
- Original Message -
From: "Rick Lamb" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, December 13, 2000 6:02 PM
Subject: division
This was
CFSET varname = #Round(getdealers.recordcount/100)#
or
CFSET varname = #Round(Evaluate(getdealers.recordcount/100))#
should work fine.
-Original Message-
From: Rick Lamb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 9:02 AM
To: CF-Talk
Subject: division
This was
Rick,
The division operator in your first line of code is the wrong slash. I'm
not sure why, but CF apparently turns that whole thing into "1". Strange.
I reproduced the same problem on my end. Flipping that slash fixes it.
Matthieu
-Original Message-
From: [EMAIL PROTECTED]
Ok. I'm a dumb @#$!. I just needed to point my slash the right way, /, not
\. HeHe! So when you guys get this in 2 hours or so, excuse my thickness.
Rick
-Original Message-
From: Rick Lamb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 11:02 AM
To: CF-Talk
Subject:
Try this:
cfset temp = getdealers.recordcount * 0.01
cfset variables.totalpages = ceiling(temp)
"/" strips the decimal part
stas
- Original Message -
From: "Rick Lamb" [EMAIL PROTECTED]
This was suppose to be easy...
I'm trying to divide a recordcount by 100 and then round up.
Honestly, I can't imagine what it might mean outside Australia, but down
here it's very bad manners to "point your slash" the wrong way (and very
messy).
(Sorry about that)
Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork
-Original Message-
From: [EMAIL PROTECTED]
Hey, are my messages getting through to you? I have my doubts.
-Original Message-
From: BORKMAN Lee
Honestly, I can't imagine what it might mean outside Australia, but down
here it's very bad manners to "point your slash" the wrong way (and very
messy).
(Sorry about that)
Lee
FYI, I just noticed that there are quotes around some of the numeric fields.
I changed this in my app, and I'm still getting the error...
(I inherited this app from someone else, so I'm still cleaning some of it
up)...
Original Message Follows
From: "Terri Stocke" [EMAIL PROTECTED]
I believe it is in your dateformat, but I could be wrong. Try using full ""
instead of '' around the formating.
or use use CreateODBCDate(now())
Shane
-Original Message-
From: Terri Stocke [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 15, 2000 10:40 AM
To: [EMAIL PROTECTED]
I had this problem once... it is caused by the statement in your code...
#dateformat(Now(), 'mm/dd/yy')#
Try using double quotes around the date mask...
#dateformat(Now(), "mm/dd/yy")#,
or remove the slashes... they are what is producing the error.
Jay
-Original Message-
From:
You need to take the single quotes (') off the number fields:
#variables.studentphone#
#variables.studentfax#
Mary
|+---
|| "Terri |
|| Stocke" |
|| tstocke@hotm|
|| ail.com |
|
It is your date!
It is probably formated like 09/00/00
This would look like division. Make sure there are not quotes around yor
date field. Also using the CreatODBCDate() is a good function to use when
inserting dates.
- Original Message -
From: "Terri Stocke" [EMAIL PROTECTED]
To:
This is a multi-part message in MIME format.
--=_NextPart_000_009B_01C01F38.A0432B00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
division by zero error?This right here:
#dateformat(Now(), 'mm/dd/yy')#,
Is what is causing your problem. That would
* -Original Message-
* From: Chapman, Katrina [mailto:[EMAIL PROTECTED]]
* Sent: Wednesday, August 23, 2000 2:50 PM
* To: [EMAIL PROTECTED]
* Subject: RE: Division in Cold Fusion?
*
*
* Just like you did but you're using the wrong slash it should be.
*
* CFSET MYVAL = thisval / thatval
The correct way is:
cfset myval = #thisval# / #thatval#
You almost had it right - just had the slash turned around. g
Dave
=
"What we need is a list of specific unknown problems we will encounter"
David Hannum
Web Analyst/Programmer
Ohio University
[EMAIL
cfset myval = thisval / thatval should work.
--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite 100
Charlotte, NC 28270
www.solutionmasters.com
704.563.5559 x 228 Voice
704.849.9291 Fax
-Original Message-
From: Peter Benoit [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
Just like you did but you're using the wrong slash it should be.
CFSET MYVAL = thisval / thatval
BTW you also don't need #'s in set's unless the variable name is in ""'s.
HTH,
--K
-Original Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 11:33
The backwards slash will divide and truncate the remainder, ie: it is an INTEGER
divide.
Use the normal / if you want to just divide.
At 02:33 PM 8/23/00 -0400, Peter Benoit wrote:
I must be looking at all the wrong stuff... but I want to take 2 values and
divide them.
like:
cfset myval =
: Chapman, Katrina [mailto:[EMAIL PROTECTED]]
* Sent: Wednesday, August 23, 2000 2:50 PM
* To: [EMAIL PROTECTED]
* Subject: RE: Division in Cold Fusion?
*
*
* Just like you did but you're using the wrong slash it should be.
*
* CFSET MYVAL = thisval / thatval
*
* BTW you also don't need #'s
To: '[EMAIL PROTECTED]'
Subject: RE: Division in Cold Fusion?
Thanks for all the help with this one. One final question would be, is
there a way to round the results of this to say 2 decimal places?
It's hard to find what you're looking for when you don't know what you're
looking for! :)
Thanks
I must be looking at all the wrong stuff... but I want to take 2
values and divide them.
like:
cfset myval = #thisval# \ #thatval#
Is there a correct way to do this?
You have the wrong slash
cfset myval = thisval / thatval
Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133
On 8/23/00, Peter Benoit penned:
cfset myval = #thisval# \ #thatval#
Use a forward slash.
Geesh, you Windows people. LOL
Oh, you shouldn't use the pound signs inside a cfset either. Just
don't put double or single quotes around them and CF will know
they're variables.
--
Bud Schneehagen -
Well the backslash I saw somewhere (no can't remember where) and it worked,
just not the way I expected it to.
* -Original Message-
* From: Bud [mailto:[EMAIL PROTECTED]]
* Sent: Wednesday, August 23, 2000 3:30 PM
* To: [EMAIL PROTECTED]
* Subject: Re: Division in Cold Fusion
I must be looking at all the wrong stuff... but I want to take 2 values and
divide them.
Try:
cfset myval = evaluate(thisval/thatval)
Rob Keniger
--
Archives:
38 matches
Mail list logo