RE: division by 0 error

2006-12-01 Thread Dave Watts
> This is what I'm using as a workaround > > >clientmanagement="Yes" > sessionmanagement="Yes" > setclientcookies="No" > sessiontimeout="#CreateTimeSpan(0,2,0,0)#" > clientstorage="myclientdsn"> >isDefined("session")> var="#session#">session is not defined

RE: division by 0 error

2006-12-01 Thread Russ
ilto:[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 and redirect them > to the

RE: division by 0 error

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

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
ilto:[EMAIL PROTECTED] > Sent: 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 no

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 Q

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

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

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 J2

Re: division by 0 error

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

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 Russ
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 1

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: d

RE: division

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

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 (Bjork)

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] [mailto:[

Re: division

2000-12-13 Thread stas
Try this: "/" 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. Currently my > recordcount is 162 and i'm using the ceiling function to round up

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: divisio

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] [mai

RE: division

2000-12-13 Thread Dylan Bromby
or 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 suppose to be easy... I'm trying to divide a recordcount by 100 and then round up. Currently my recordcount is 162

RE: division

2000-12-13 Thread John Rice
forward ( / ) slash not back ( \ ) slash -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 13, 2000 12:02 PM To: CF-Talk Subject: division This was suppose to be easy... I'm trying to divide a recordcount by 100 and then round up. Current

Re: division

2000-12-13 Thread Tom Espen Pedersen
Try using 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 suppose to be easy... > > I'm trying to divide a rec

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 A

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 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 Mary_Baotic
You need to take the single quotes (') off the number fields: #variables.studentphone# #variables.studentfax# Mary |+---> || "Terri | || Stocke" | || | || | ||

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 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] Subj

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 in Cold Fusion?

2000-08-24 Thread Peter Theobald
;* 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. >* >* >* >* BTW you also don't need #'s in set's

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: Rob Keniger -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http:

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 F

Re: Division in Cold Fusion?

2000-08-23 Thread Bud
On 8/23/00, Peter Benoit penned: > 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 - Tropical Web Creations _/_/_/_/_/_

RE: Division in Cold Fusion?

2000-08-23 Thread Olive, Christopher M Mr NMR
: '[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: 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: > > > > Is there a correct way to do this? You have the wrong slash Philip Arnold ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" **

RE: Division in Cold Fusion?

2000-08-23 Thread Peter Benoit
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. * * * * BTW you also don't need #&

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: > > > >Is ther

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. 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 AM To: '[EMAIL PROTECTED]' Subjec

Re: Division in Cold Fusion?

2000-08-23 Thread Jamie Keane
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]' <[EMAIL PROTECTED]> Date: Wed

Re: Division in Cold Fusion?

2000-08-23 Thread Dave Hannum
The correct way is: You almost had it right - just had the slash turned around. Dave = "What we need is a list of specific unknown problems we will encounter" David Hannum Web Analyst/Programmer Ohio University [EMAIL PROTECTED] (740) 597-2524 - Ori