0
java.lang.ArrayIndexOutOfBoundsException: 9

/t5/coldfusion-discussions/java-lang-arrayindexoutofboundsexception-9/td-p/341959
Feb 16, 2008
Feb 16, 2008
Copy link to clipboard
Copied
Hi
I logged an exception last night when a subscriber tried to log into my web site:
Error.message: 9
Error.rootCause: java.lang.ArrayIndexOutOfBoundsException: 9
Error.diagnostics: 9 null <br>The error occurred on line 5.
I'm running CF8 on OS X server with postgresql as the database. I deployed the site about 4 weeks ago and I've had hundreds, if not a couple of thousand users log in, so the code has been hammered pretty good. The natural assumption would be that somehow I'm trying to access an array element that doesn't exist, but I don't see where I'm trying to access any arrays at all. Certainly not anywhere at a "line 5".
After doing some googling, it seems that there have been issues in the past with errors of this type - some sort of java driver issues, so I suspect this may be a CF bug.
I was able to tell that the user was able to log in shortly afterwards, and this is the first I've seen this error - so, being able to reproduce it seems unlikely.
Any one have any ideas as to the cause?
I logged an exception last night when a subscriber tried to log into my web site:
Error.message: 9
Error.rootCause: java.lang.ArrayIndexOutOfBoundsException: 9
Error.diagnostics: 9 null <br>The error occurred on line 5.
I'm running CF8 on OS X server with postgresql as the database. I deployed the site about 4 weeks ago and I've had hundreds, if not a couple of thousand users log in, so the code has been hammered pretty good. The natural assumption would be that somehow I'm trying to access an array element that doesn't exist, but I don't see where I'm trying to access any arrays at all. Certainly not anywhere at a "line 5".
After doing some googling, it seems that there have been issues in the past with errors of this type - some sort of java driver issues, so I suspect this may be a CF bug.
I was able to tell that the user was able to log in shortly afterwards, and this is the first I've seen this error - so, being able to reproduce it seems unlikely.
Any one have any ideas as to the cause?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/java-lang-arrayindexoutofboundsexception-9/m-p/341960#M30789
Feb 16, 2008
Feb 16, 2008
Copy link to clipboard
Copied
Could be a null value somewhere. What does line 5 do? How
about line 4?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/coldfusion-discussions/java-lang-arrayindexoutofboundsexception-9/m-p/341961#M30790
Feb 16, 2008
Feb 16, 2008
Copy link to clipboard
Copied
That's not a bad idea, but it seems unlikely - a null value
somewhere would show up, I think, each time the user tried to log
in. Little, if anything, can change in the relevant data between
log ins.
I don't know which "line 5" it could be. The code for logging in calls a template, a custom tag and initializes several cfc's.
In my experience, "line 5" could be referring to anything that's called. Unfortunately, I only know how to narrow down the offending file by having debugging turned on, which means I have to have a reproducible error. The debugging output indicates what template, tag or cfc threw the error. I haven't been able to find any way of getting this info from an exception without it. None of the "error' variables seem to give what I want.
I've designed a large and complex site. The odds are that it's something in my code. Nevertheless, I'm very suspicious in this case that it isn't.
I don't know which "line 5" it could be. The code for logging in calls a template, a custom tag and initializes several cfc's.
In my experience, "line 5" could be referring to anything that's called. Unfortunately, I only know how to narrow down the offending file by having debugging turned on, which means I have to have a reproducible error. The debugging output indicates what template, tag or cfc threw the error. I haven't been able to find any way of getting this info from an exception without it. None of the "error' variables seem to give what I want.
I've designed a large and complex site. The odds are that it's something in my code. Nevertheless, I'm very suspicious in this case that it isn't.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

