RE: division by 0 error

2006-12-01 Thread Bobby Hartsfield
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:

RE: division by 0 error

2006-12-01 Thread Russ
( 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

RE: division by 0 error

2006-12-01 Thread Bobby Hartsfield
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

Re: division by 0 error

2006-12-01 Thread Greg Morphis
. ..:.:.:.:.:.:.:.:.:.:.:. 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

RE: division by 0 error

2006-12-01 Thread Dave Watts
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

RE: division by 0 error

2006-12-01 Thread Russ
-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

RE: division by 0 error

2006-12-01 Thread Dave Watts
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

RE: division by 0 error

2006-12-01 Thread Brad Wood
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

RE: division by 0 error

2006-12-01 Thread Russ
: 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

RE: division by 0 error

2006-12-01 Thread Dave Watts
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

RE: division by 0 error

2006-12-01 Thread Russ
- 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

RE: division by 0 error

2006-12-01 Thread Russ
? 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

RE: division

2001-01-04 Thread Jann VanOver
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

RE: division

2000-12-13 Thread Allan Pichler
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

Re: division

2000-12-13 Thread Tom Espen Pedersen
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

RE: division

2000-12-13 Thread Dylan Bromby
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

RE: division

2000-12-13 Thread Cornillon, Matthieu
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]

RE: division

2000-12-13 Thread Rick Lamb
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:

Re: division

2000-12-13 Thread stas
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.

RE: division

2000-12-13 Thread 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 (Bjork) Borkman http://bjork.net ColdFusion Tags by Bjork -Original Message- From: [EMAIL PROTECTED]

RE: division

2000-12-13 Thread BORKMAN Lee
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

Re: division by zero error?

2000-09-15 Thread Terri Stocke
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]

RE: division by zero error?

2000-09-15 Thread Shane Pitts
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]

RE: division by zero error?

2000-09-15 Thread Jay Wigginton
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:

Re: division by zero error?

2000-09-15 Thread Mary_Baotic
You need to take the single quotes (') off the number fields: #variables.studentphone# #variables.studentfax# Mary |+--- || "Terri | || Stocke" | || tstocke@hotm| || ail.com | |

Re: division by zero error?

2000-09-15 Thread Kevin Schmidt
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:

RE: division by zero error?

2000-09-15 Thread David E. Crawford
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

RE: Division in Cold Fusion?

2000-08-24 Thread Peter Theobald
* -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

Re: Division in Cold Fusion?

2000-08-23 Thread Dave Hannum
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

Re: Division in Cold Fusion?

2000-08-23 Thread Jamie Keane
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]'

RE: Division in Cold Fusion?

2000-08-23 Thread Chapman, Katrina
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

Re: Division in Cold Fusion?

2000-08-23 Thread Peter Theobald
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 =

RE: Division in Cold Fusion?

2000-08-23 Thread Peter Benoit
: 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

RE: Division in Cold Fusion?

2000-08-23 Thread Olive, Christopher M Mr NMR
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

RE: Division in Cold Fusion?

2000-08-23 Thread Philip Arnold - ASP
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

Re: Division in Cold Fusion?

2000-08-23 Thread Bud
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 -

RE: Division in Cold Fusion?

2000-08-23 Thread Peter Benoit
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

Re: Division in Cold Fusion?

2000-08-23 Thread rkeniger
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: