У меня есть архитектура Spring + hibernate + mysql + jstl, работающая в рабочей среде Linux CENTOS.
Я добавил модуль кварца (schedualer), мой друг кварц каждые 10 секунд проверяет папку на наличие новых файлов, и, если он находит ее, проверяет и загружает файлы в базу данных и перемещает файл. Работающие программы можно найти в моем MacBook, однако в процессе работы я получаю ошибку jdbc при попытке загрузить данные в базу данных, но все остальное, что связано с базой данных, работает нормально.
Я загружаю файл в базу данных с помощью JAVA вроде:
String queryString = "LOAD DATA INFILE '"+path+"' INTO TABLE `branch_to_product` FIELDS TERMINATED BY ';' ENCLOSED BY '\"' ESCAPED BY '\\\\' LINES TERMINATED BY '\\n'(\n" +
"`product_model` , `branch_to_product_monthly_rotation` , `branch_to_product_quantity`\n" +
")";
Query query = getSession().createSQLQuery(queryString);
Если я запускаю sql из phpmyadmin's, он также выполняет поиск.
Это ошибка, которую я вижу в журналах:
[Loaded com.mysql.jdbc.SQLError from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded com.mysql.jdbc.NotImplemented from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded com.mysql.jdbc.exceptions.MySQLTransientConnectionException from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded com.mysql.jdbc.exceptions.MySQLDataException from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded com.mysql.jdbc.exceptions.MySQLSyntaxErrorException from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded com.mysql.jdbc.exceptions.DeadlockTimeoutRollbackMarker from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded com.mysql.jdbc.exceptions.MySQLTransactionRollbackException from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded java.sql.SQLRecoverableException from /usr/local/jdk1.6.0_22/jre/lib/rt.jar]
[Loaded com.mysql.jdbc.exceptions.jdbc4.CommunicationsException from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/mysql-connector-java-5.1.13-bin.jar]
[Loaded org.apache.tomcat.dbcp.pool.PoolUtils from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/naming-factory-dbcp.jar]
[Loaded org.apache.tomcat.dbcp.pool.KeyedObjectPool from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/naming-factory-dbcp.jar]
[Loaded org.apache.tomcat.dbcp.pool.PoolUtils$KeyedObjectPoolMinIdleTimerTask from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/naming-factory-dbcp.jar]
[Loaded org.apache.tomcat.dbcp.pool.PoolUtils$ObjectPoolMinIdleTimerTask from file:/usr/local/jakarta/apache-tomcat-5.5.33/common/lib/naming-factory-dbcp.jar]
[Loaded sun.net.ConnectionResetException from /usr/local/jdk1.6.0_22/jre/lib/rt.jar]
[Loaded org.hibernate.action.BulkOperationCleanupAction from file:/usr/local/jakarta/apache-tomcat-5.5.33/shared/lib/hibernate.jar]
0
[Loaded org.hibernate.exception.JDBCExceptionHelper from file:/usr/local/jakarta/apache-tomcat-5.5.33/shared/lib/hibernate.jar]
09:19:25,633 ERROR JDBCExceptionReporter:72 - Access denied for user 'jardinde_fp'@'localhost' (using password: YES)
09:19:25,633 ERROR JDBCExceptionReporter:72 - Access denied for user 'jardinde_fp'@'localhost' (using password: YES)