transaction.org.ofbiz.entity.GenericDataSourceException

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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Grails pull object from has many
    via Stack Overflow by Sagarmichael
    ,
  • JDODataStoreException: Iteration request failed
    via Stack Overflow by Gavy
    ,
  • problem using openreports
    via oreports by storage7816
    ,
  • exception thrown next day
    via oreports by dadi
    ,
  • Problem after disk full
    via xplanner by lgd
    ,
    • transaction.org.ofbiz.entity.GenericDataSourceException: SQL Exception while executing the following:SELECT JOB_ID, JOB_NAME, RUN_TIME, POOL_ID, STATUS_ID, PARENT_JOB_ID, PREVIOUS_JOB_ID, SERVICE_NAME, LOADER_NAME, MAX_RETRY, CURRENT_RETRY_COUNT, AUTH_USER_LOGIN_ID, RUN_AS_USER, RUNTIME_DATA_ID, RECURRENCE_INFO_ID, TEMP_EXPR_ID, CURRENT_RECURRENCE_COUNT, MAX_RECURRENCE_COUNT, RUN_BY_INSTANCE_ID, START_DATE_TIME, FINISH_DATE_TIME, CANCEL_DATE_TIME, JOB_RESULT, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP FROM JOB_SANDBOX 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, SERVICE_NAME, LOADER_NAME, MAX_RETRY, CURRENT_RETRY_COUNT, AUTH_USER_LOGIN_ID, RUN_AS_USER, RUNTIME_DATA_ID, RECURRENCE_INFO_ID, TEMP_EXPR_ID, CURRENT_RECURRENCE_COUNT, MAX_RECURRENCE_COUNT, RUN_BY_INSTANCE_ID, START_DATE_TIME, FINISH_DATE_TIME, CANCEL_DATE_TIME, JOB_RESULT, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP FROM JOB_SANDBOX WHERE ((STATUS_ID = ? AND SERVICE_NAME = ?)) ORDER BY START_DATE_TIME DESC (Unknown system variable 'OPTION')) at org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:156)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:124)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.GenericDelegator.findOne(GenericDelegator.java:1500)[ofbiz-entity-test.jar:?] Caused by: org.ofbiz.entity.GenericDataSourceException: SQL Exception while executing the following:SELECT JOB_ID, JOB_NAME, RUN_TIME, POOL_ID, STATUS_ID, PARENT_JOB_ID, PREVIOUS_JOB_ID, SERVICE_NAME, LOADER_NAME, MAX_RETRY, CURRENT_RETRY_COUNT, AUTH_USER_LOGIN_ID, RUN_AS_USER, RUNTIME_DATA_ID, RECURRENCE_INFO_ID, TEMP_EXPR_ID, CURRENT_RECURRENCE_COUNT, MAX_RECURRENCE_COUNT, RUN_BY_INSTANCE_ID, START_DATE_TIME, FINISH_DATE_TIME, CANCEL_DATE_TIME, JOB_RESULT, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP FROM JOB_SANDBOX WHERE ((STATUS_ID = ? AND SERVICE_NAME = ?)) ORDER BY START_DATE_TIME DESC (Unknown system variable 'OPTION') at org.ofbiz.entity.jdbc.SQLProcessor.executeQuery(SQLProcessor.java:391)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:797)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:145)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1688)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java:1723)[ofbiz-entity-test.jar:?] at org.ofbiz.order.order.OrderServices.createAlsoBoughtProductAssocs(OrderServices.java:5728)[ofbiz-order.jar:?] ... 3 more Caused by: java.sql.SQLException: Unknown system variable 'OPTION' at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)[mysql-connector-java-5.1.6.jar:?] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)[mysql-connector-java-5.1.6.jar:?] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)[mysql-connector-java-5.1.6.jar:?] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)[mysql-connector-java-5.1.6.jar:?] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)[mysql-connector-java-5.1.6.jar:?] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)[mysql-connector-java-5.1.6.jar:?] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536)[mysql-connector-java-5.1.6.jar:?] at com.mysql.jdbc.StatementImpl.executeSimpleNonQuery(StatementImpl.java:1463)[mysql-connector-java-5.1.6.jar:?] at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1872)[mysql-connector-java-5.1.6.jar:?] at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)[commons-dbcp-1.4.jar:1.4] at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)[commons-dbcp-1.4.jar:1.4] at org.ofbiz.entity.jdbc.SQLProcessor.executeQuery(SQLProcessor.java:388)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:797)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:145)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1688)[ofbiz-entity-test.jar:?] at org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java:1723)[ofbiz-entity-test.jar:?] at org.ofbiz.order.order.OrderServices.createAlsoBoughtProductAssocs(OrderServices.java:5728)[ofbiz-order.jar:?] ... 9 more

    Users with the same issue

    Unknown visitor1 times, last one,
    ivanszkypeter
    470 times, last one,
    slash
    1 times, last one,
    musketyr
    1 times, last one,
    mauritius
    1 times, last one,
    147 more bugmates