PDA

View Full Version : Expected ';' line: 342 char: 82



jhodzzz
02-23-2010, 06:19 AM
Hi all,

I'm working with J2EE Web API and javascripts. I'm having an error Expected ';' line: 342 char: 82 at one of my pages named map.jsp.

the problem is that the said page only has 185 lines. what could be the error?

i've attached a txt file containing the codes from the map.jsp page..
thanks in advance...

djr33
02-23-2010, 06:23 AM
Due to the way the page parses, this can happen because it gets trapped in an endless loop, the parser can't find the end of the file (because it's still in an inner level of code, like an if statement), etc.

This may be because it is referring to another page included in your file (if you are using several to process the entire script).

If not, then the only way to figure this out is to comment out large chunks of your file sequentially to find where the problem is.

jhodzzz
02-23-2010, 06:38 AM
if you've observed, i have dropdown lists as constraints. one has year values (Strings). basing on my database, there are only four years [2001,2002,2003,2004]. when i get to choose the rest except 2001 it works properly. when i get to choose 2001, that error occurs. when i tried tracing, if i choose 2001, the script (carcar[cnt]=<%=address%>) does not work, otherwise everything works fine..

jhodzzz
02-23-2010, 06:47 AM
as with my data... the number of results returned in 2001 is 779, that is way bigger than the results from the rest of the years [54,60,84]. does this matter? is there any problem between the time on accessing the database getting a lot of results?/

jhodzzz
02-23-2010, 07:27 AM
solved.........