[jboss-user] [JBoss jBPM] - Problem using mysql

jcv do-not-reply at jboss.com
Wed Apr 11 13:18:06 EDT 2007


Hi, i've followed the steps to user mysql instead of hypersonic, i can upload process, and work with them, but i'm keep getting this error:

13:13:49,906 WARN  [JDBCExceptionReporter] SQL Error: 1064, SQLState: 42000
  | 13:13:49,906 ERROR [JDBCExceptionReporter] 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 '1 job0_.ID_ as ID1_26_, job0_.VERSION_ as VERSION3_26_, job0_.DUEDATE_ as DUEDAT' at line 1
  | 13:13:49,906 ERROR [JobSession] org.hibernate.exception.SQLGrammarException: could not execute query
  | 13:13:49,906 ERROR [JobExecutorThread] exception in job executor thread. waiting 40000 milliseconds
  | org.jbpm.JbpmException: couldn't get acquirable jobs
  |         at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:44)
  |         at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:111)
  |         at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
  | Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
  |         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
  |         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  |         at org.hibernate.loader.Loader.doList(Loader.java:2147)
  |         at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
  |         at org.hibernate.loader.Loader.list(Loader.java:2023)
  |         at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
  |         at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
  |         at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  |         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
  |         at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  |         at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:780)
  |         at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:40)
  |         ... 2 more
  | Caused by: 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 '1 job0_.ID_ as ID1_26_, job0_.VERSION_ as VERSION3_26_, job0_.DUEDATE_ as DUEDAT' at line 1
  |         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
  |         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
  |         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
  |         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
  |         at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
  |         at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
  |         at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1403)
  |         at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236)
  |         at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
  |         at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)
  |         at org.hibernate.loader.Loader.doQuery(Loader.java:662)
  |         at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
  |         at org.hibernate.loader.Loader.doList(Loader.java:2144)
  |         ... 11 more
  | 

any hints on why is this happening?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036456#4036456

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036456



More information about the jboss-user mailing list