looks like a bug to me. Break up the string into chucks and check each chunk
at a time. Horrible.

WG


-----Original Message-----
From: Peter Mayer [mailto:[EMAIL PROTECTED]
Sent: 03 March 2003 13:20
To: CF-Talk
Subject: Bug? java.lang.StringIndexOutOfBoundsException: String index
out of range: -3


Hello!

I load a text/plain document via cfHTTP and the size is about one
MegaByte.

Now I have the following problem:

<cfset a_str_content = cfhttp.FileContent>
<cfset a_str_content = ReplaceNoCase(a_str_content, "<!-- RESULT ITEM END -
-
>", chr(9), "ALL")>

If the http content is smaller (f.e. only 300kb) this works well, but if
the file is bigger I receive the following error message:

"java.lang.StringIndexOutOfBoundsException: String index out of range: -
3"

Is this a bug or limitation? Any workarounds?

Updater 2 is installed.

Best regards,

Peter

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to