Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

  2. ,

    Make sure you are using InnoDB storage engine and READ-COMMITTED transaction isolation level and increase the database server innodb_lock_wait_timeout variable to about 500.

Solutions on the web

via ofbiz-user by Morten Jensen, 1 year ago
WHERE ((STATUS_ID = ? AND SERVICE_NAME = ?)) ORDER BY START_DATE_TIME DESC (Unknown system variable 'OPTION') (SQL Exception while executing the following:SELECT JOB_ID, JOB_NAME, RUN_TIME, POOL_ID, STATUS_ID, PARENT_JOB_ID, PREVIOUS_JOB_ID
java.sql.SQLException: Unknown system variable 'OPTION'	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536)	at com.mysql.jdbc.StatementImpl.executeSimpleNonQuery(StatementImpl.java:1463)	at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1872)	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)	at org.ofbiz.entity.jdbc.SQLProcessor.executeQuery(SQLProcessor.java:388)	at org.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:797)	at org.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:145)	at org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1688)	at org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java:1723)	at org.ofbiz.order.order.OrderServices.createAlsoBoughtProductAssocs(OrderServices.java:5728)	at org.ofbiz.entity.jdbc.SQLProcessor.executeQuery(SQLProcessor.java:391)	at org.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:797)	at org.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:145)	at org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1688)	at org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java:1723)	at org.ofbiz.order.order.OrderServices.createAlsoBoughtProductAssocs(OrderServices.java:5728)	at org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:156)	at org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:124)	at org.ofbiz.entity.GenericDelegator.findOne(GenericDelegator.java:1500)