Re: Java Error in statment
Posted by: Jochen Reinhardt
Date: May 22, 2009 08:30AM

Hi,
The error you describe is not a Java-error. It's a database error, reported through JDBC and thrown as Java Exception.
Somehow, you managed to pass a query with quit a lot '?'-signs to mySQL JDBC. I wonder what's different in your application that makes it work in NetBeans?

Where do you load your query string from? May be you are missing some sort of resource outside NetBeans?
Or is it a constant in your program's source code?
Another problem could be encoding - NetBeans will use UTF-8, I guess, but there is always a risk, that some other OS component, like a shell, uses some other encoding. That may cause problems with external resources, too.

Hope this helps!

Options: ReplyQuote


Subject
Written By
Posted
May 21, 2009 02:18PM
Re: Java Error in statment
May 22, 2009 08:30AM
May 23, 2009 08:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.