您的位置:首页 > 其它

Never Say Die------坚持下去

2008-07-10 16:09 232 查看
今天花了三个小时来学习Jbpm,目前还处于没入门阶段。

感谢陈刚,他写的入门资料给了我不少帮助。

不过我还是不能完成那个Helloworld人例子。

再学习的过程中,出现了几个问题:

如:流程定义文件没找到、数据库驱动没找到等等。

最后一个问题实在是解决不了了,那个问题好像是说那个字段没有,导致无法查询,

报错信息如下,希望有朋友能帮我解决这个问题:

16:06:29,843 [main] INFO SettingsFactory : Named query checking : enabled16:06:29,875 [main] INFO SessionFactoryImpl : building session factory16:06:31,875 [main] INFO SessionFactoryObjectFactory : Not binding factory to JNDI, no JNDI name configured16:06:32,437
[main] DEBUG DbPersistenceService : creating hibernate session16:06:32,484 [main] DEBUG DbPersistenceService : beginning hibernate transaction16:06:32,500 [main] DEBUG DbPersistenceService : begun hibernate transaction
org.hibernate.transaction.JDBCTransaction@15f157b16:06:32,546 [main] WARN JDBCExceptionReporter : SQL Error: 1054, SQLState: 42S2216:06:32,546 [main] ERROR JDBCExceptionReporter : Unknown
column 'processdef0_.DESCRIPTION_' in 'field list'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:153) at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:67) at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173) at shou.myAction.DeployProcessTest.testDeployProcessDefinition(DeployProcessTest.java:31) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at
junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at
junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Caused by: java.sql.SQLException: Unknown column 'processdef0_.DESCRIPTION_' in 'field
list' at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622) at com.mysql.jdbc.Connection.execSQL(Connection.java:2376) at com.mysql.jdbc.Connection.execSQL(Connection.java:2297) at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1860) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1705) 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) ... 30 more16:06:32,750 [main] ERROR GraphSession : org.hibernate.exception.SQLGrammarException:
could not execute query

呵呵,今天就这样先,也累了,休息一下,下次再抽时间来研究了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: