当前位置: 代码迷 >> 应用服务器 >> org.jbpm.JbpmException: couldn't find process definition 'commit'解决方案
  详细解决方案

org.jbpm.JbpmException: couldn't find process definition 'commit'解决方案

热度:9841   发布时间:2013-02-26 00:00:00.0
org.jbpm.JbpmException: couldn't find process definition 'commit'
Java code
org.jbpm.JbpmException: couldn't find process definition 'commit'    at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:158)    at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:67)    at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)    at cn.cc.upload.ProcessUploadServlet.handleRequest(ProcessUploadServlet.java:93)    at cn.cc.upload.ProcessUploadServlet.service(ProcessUploadServlet.java:58)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)    at java.lang.Thread.run(Thread.java:619)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:2223)    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)    at org.hibernate.loader.Loader.list(Loader.java:2099)    at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)    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:811)    at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:154)    ... 17 moreCaused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'processdef0_.DESCRIPTION_' in 'field list'    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)    at com.mysql.jdbc.Connection.execSQL(Connection.java:3176)    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1153)    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1266)    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)    at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)    at org.hibernate.loader.Loader.doQuery(Loader.java:674)    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)    at org.hibernate.loader.Loader.doList(Loader.java:2220)    ... 26 more


急求解决办法!

------解决方案--------------------------------------------------------
把数据库清空,用脚本重新生成。
  相关解决方案