2 Replies Latest reply on Nov 5, 2006 3:15 AM by Ronald van Kuijk

    deploying from cvs head to 4.0.4 and mysql 4.1.x job error

    Ronald van Kuijk Master

       

      19:36:47,421 ERROR [JobExecutorThread] exception in job executor thread. waiting 10000 milliseconds
      org.jbpm.JbpmException: couldn't get acquirable jobs
       at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:42)
       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:2148)
       at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
       at org.hibernate.loader.Loader.list(Loader.java:2024)
       at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:392)
       at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:333)
       at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
       at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:756)
       at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:38)
       ... 2 more
      Caused by: java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL serve
      r version for the right syntax to use near '1 job0_.ID_ as ID1_143_, job0_.VERSION_ as VERSION3_143_, job0_.DUEDATE_ as DUED'
       at line 1
       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2921)
       at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570)
       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
       at com.mysql.jdbc.Connection.execSQL(Connection.java:2978)
       at com.mysql.jdbc.Connection.execSQL(Connection.java:2902)
       at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:930)
       at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1024)
       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:1669)
       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:2145)
       ... 11 more
      


      I'll try to see what it is, but if anyone has a clue it saves me time