Re: CFMX possible bug, anyone care to verify
I was not able to reproduce this bug. (Using CFMX+Updater.) -Ray - Original Message - From: Brook Davies [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 7:26 PM Subject: CFMX possible bug, anyone care to verify I might be missing something here, but I seem to be able to generate a null error when performing a regex operation on a sting longer than 12980 chars. Is this a known limitation? Maybe some one could try this could on there CFMX dev box and tell me if they get the same error. Here is some sample code which will generate a string of 12980 characters long and then try a regular expression operation on the string. This generates an error on my CFMX (updater installed) server which is running Win2k / sp3 with IIS5.0. !--- changing the loop to value to anything over 12980 throws an error (try it at 12980 and 12981)--- cfset str= cfloop from=1 to=12981 index=i cfset str=stri /cfloop BR cfoutputThs string is #len(str)# chars long/cfoutput !--- this is the expression which causes the error --- cfset z=REfindnocase((\[)([[:print:][:space:]])*(\]),str,1) ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: CFMX possible bug, anyone care to verify
Me neither, also using CFMX+ Updater. Christine -Original Message- From: Raymond Camden [mailto:jedimaster;macromedia.com] Sent: Wednesday, October 30, 2002 9:51 AM To: CF-Talk Subject: Re: CFMX possible bug, anyone care to verify I was not able to reproduce this bug. (Using CFMX+Updater.) -Ray - Original Message - From: Brook Davies [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 7:26 PM Subject: CFMX possible bug, anyone care to verify I might be missing something here, but I seem to be able to generate a null error when performing a regex operation on a sting longer than 12980 chars. Is this a known limitation? Maybe some one could try this could on there CFMX dev box and tell me if they get the same error. Here is some sample code which will generate a string of 12980 characters long and then try a regular expression operation on the string. This generates an error on my CFMX (updater installed) server which is running Win2k / sp3 with IIS5.0. !--- changing the loop to value to anything over 12980 throws an error (try it at 12980 and 12981)--- cfset str= cfloop from=1 to=12981 index=i cfset str=stri /cfloop BR cfoutputThs string is #len(str)# chars long/cfoutput !--- this is the expression which causes the error --- cfset z=REfindnocase((\[)([[:print:][:space:]])*(\]),str,1) ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: CFMX possible bug, anyone care to verify
Hi Brook, I tried your code and for 12981 got Ths string is 53799 chars long (No null pointer exception) for a hoot I bumped it up to 5 I got Ths string is 238894 chars long (No null pointer exception) It is a phat box though. W2k, jdk1.4.0_02, IIS5 -Original Message- From: Brook Davies [mailto:brook;maracasmedia.com] Sent: Tuesday, October 29, 2002 4:26 PM To: CF-Talk Subject: CFMX possible bug, anyone care to verify I might be missing something here, but I seem to be able to generate a null error when performing a regex operation on a sting longer than 12980 chars. Is this a known limitation? Maybe some one could try this could on there CFMX dev box and tell me if they get the same error. Here is some sample code which will generate a string of 12980 characters long and then try a regular expression operation on the string. This generates an error on my CFMX (updater installed) server which is running Win2k / sp3 with IIS5.0. !--- changing the loop to value to anything over 12980 throws an error (try it at 12980 and 12981)--- cfset str= cfloop from=1 to=12981 index=i cfset str=stri /cfloop BR cfoutputThs string is #len(str)# chars long/cfoutput !--- this is the expression which causes the error --- cfset z=REfindnocase((\[)([[:print:][:space:]])*(\]),str,1) Brook Davies ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: CFMX possible bug, anyone care to verify
The code you're using to generate a long string will give: For 1-9 it will produce: 123456789 (making len(str)=9) but for 1-10 it will give 12345678910 (making len(str)=11) etc So the string len that you're getting (53799) sounds about right when the loop goes up to 12981. Doesn;t explain why the regex fails though ! Alex -Original Message- From: Rob Rohan [mailto:rob;cardinalweb.com] Sent: 30 October 2002 16:06 To: CF-Talk Subject: RE: CFMX possible bug, anyone care to verify Hi Brook, I tried your code and for 12981 got Ths string is 53799 chars long (No null pointer exception) for a hoot I bumped it up to 5 I got Ths string is 238894 chars long (No null pointer exception) It is a phat box though. W2k, jdk1.4.0_02, IIS5 -Original Message- From: Brook Davies [mailto:brook;maracasmedia.com] Sent: Tuesday, October 29, 2002 4:26 PM To: CF-Talk Subject: CFMX possible bug, anyone care to verify I might be missing something here, but I seem to be able to generate a null error when performing a regex operation on a sting longer than 12980 chars. Is this a known limitation? Maybe some one could try this could on there CFMX dev box and tell me if they get the same error. Here is some sample code which will generate a string of 12980 characters long and then try a regular expression operation on the string. This generates an error on my CFMX (updater installed) server which is running Win2k / sp3 with IIS5.0. !--- changing the loop to value to anything over 12980 throws an error (try it at 12980 and 12981)--- cfset str= cfloop from=1 to=12981 index=i cfset str=stri /cfloop BR cfoutputThs string is #len(str)# chars long/cfoutput !--- this is the expression which causes the error --- cfset z=REfindnocase((\[)([[:print:][:space:]])*(\]),str,1) Brook Davies ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
Re: CFMX possible bug, anyone care to verify
Well, thats odd then. Because it certainly happens on my box. Thats too strange... Thanks for checking y'all... Brook At 09:50 AM 10/30/02 -0500, you wrote: I was not able to reproduce this bug. (Using CFMX+Updater.) -Ray - Original Message - From: Brook Davies [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 7:26 PM Subject: CFMX possible bug, anyone care to verify I might be missing something here, but I seem to be able to generate a null error when performing a regex operation on a sting longer than 12980 chars. Is this a known limitation? Maybe some one could try this could on there CFMX dev box and tell me if they get the same error. Here is some sample code which will generate a string of 12980 characters long and then try a regular expression operation on the string. This generates an error on my CFMX (updater installed) server which is running Win2k / sp3 with IIS5.0. !--- changing the loop to value to anything over 12980 throws an error (try it at 12980 and 12981)--- cfset str= cfloop from=1 to=12981 index=i cfset str=stri /cfloop BR cfoutputThs string is #len(str)# chars long/cfoutput !--- this is the expression which causes the error --- cfset z=REfindnocase((\[)([[:print:][:space:]])*(\]),str,1) ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
CFMX possible bug, anyone care to verify
I might be missing something here, but I seem to be able to generate a null error when performing a regex operation on a sting longer than 12980 chars. Is this a known limitation? Maybe some one could try this could on there CFMX dev box and tell me if they get the same error. Here is some sample code which will generate a string of 12980 characters long and then try a regular expression operation on the string. This generates an error on my CFMX (updater installed) server which is running Win2k / sp3 with IIS5.0. !--- changing the loop to value to anything over 12980 throws an error (try it at 12980 and 12981)--- cfset str= cfloop from=1 to=12981 index=i cfset str=stri /cfloop BR cfoutputThs string is #len(str)# chars long/cfoutput !--- this is the expression which causes the error --- cfset z=REfindnocase((\[)([[:print:][:space:]])*(\]),str,1) Brook Davies ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm