MySQL Forums
Forum List  »  Connector/JDBC and Java

Java Error in statment
Posted by: Kuba K
Date: May 21, 2009 02:18PM


First of all
I'm using UNIX + Java 1.6 + J/Connector 5.1 + Netbeans 6.5.1

I have a strange issue.
When i compile and run an application from netbeans everything works fine.
but whehn i build it and try to run it from command line i have this error

com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????????????????????' at line 1
at com.mysql.jdbc.SQLError.createSQLException(
at com.mysql.jdbc.MysqlIO.checkErrorPacket(
at com.mysql.jdbc.MysqlIO.sendCommand(
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
at com.mysql.jdbc.Connection.execSQL(
at com.mysql.jdbc.Connection.configureClientCharacterSet(
at com.mysql.jdbc.Connection.initializePropsFromServer(
at com.mysql.jdbc.Connection.createNewIO(
at com.mysql.jdbc.Connection.<init>(
at com.mysql.jdbc.NonRegisteringDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(

Its very strange because it works very well when i run it with netbeans.


Options: ReplyQuote

Written By
Java Error in statment
May 21, 2009 02:18PM
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.