AnsweredAssumed Answered

SLF4J error

Question asked by sarra1 on Jun 19, 2013
Latest reply on Aug 1, 2013 by jbarrez
I tried to follow the instructions, (Activiti in action) to deploy A book order process with a script and user task, but when I run the BookOrderTest.java ; nothing works :

———–
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
juin 19, 2013 3:07:18 PM org.activiti.engine.impl.interceptor.CommandContext close
SEVERE: Error while closing command context
org.activiti.engine.ActivitiException: no activiti tables in db.  set <property name="databaseSchemaUpdate" to value="true" or value="create-drop" (use create-drop for testing only!) in bean processEngineConfiguration in activiti.cfg.xml for automatic schema creation
   at org.activiti.engine.impl.db.DbSqlSession.dbSchemaCheckVersion(DbSqlSession.java:529)
   at org.activiti.engine.impl.db.DbSqlSession.performSchemaOperationsProcessEngineBuild(DbSqlSession.java:884)
   at org.activiti.engine.impl.SchemaOperationsProcessEngineBuild.execute(SchemaOperationsProcessEngineBuild.java:25)
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
   at org.activiti.engine.impl.ProcessEngineImpl.<init>(ProcessEngineImpl.java:77)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:283)
   at org.bpmnwithactiviti.chapter1.BookOrderTest.startBookOrder(BookOrderTest.java:26)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
   at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
   at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
   at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
   at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
   at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
   at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
   at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
   at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.ibatis.exceptions.PersistenceException:
### Error querying database.  Cause: org.h2.jdbc.JdbcSQLException: Table "ACT_GE_PROPERTY" not found; SQL statement:
select VALUE_ from ACT_GE_PROPERTY where NAME_ = 'schema.version' [42102-172]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
   at org.h2.message.DbException.get(DbException.java:169)
   at org.h2.message.DbException.get(DbException.java:146)
   at org.h2.command.Parser.readTableOrView(Parser.java:4824)
   at org.h2.command.Parser.readTableFilter(Parser.java:1099)
   at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1705)
   at org.h2.command.Parser.parseSelectSimple(Parser.java:1813)
   at org.h2.command.Parser.parseSelectSub(Parser.java:1699)
   at org.h2.command.Parser.parseSelectUnion(Parser.java:1542)
   at org.h2.command.Parser.parseSelect(Parser.java:1530)
   at org.h2.command.Parser.parsePrepared(Parser.java:405)
   at org.h2.command.Parser.parse(Parser.java:279)
   at org.h2.command.Parser.parse(Parser.java:251)
   at org.h2.command.Parser.prepareCommand(Parser.java:218)
   at org.h2.engine.Session.prepareLocal(Session.java:425)
   at org.h2.server.TcpServerThread.process(TcpServerThread.java:255)
   at org.h2.server.TcpServerThread.run(TcpServerThread.java:151)
   at java.lang.Thread.run(Thread.java:722)

### The error may exist in org/activiti/db/mapping/entity/Property.xml
### The error may involve org.activiti.engine.impl.persistence.entity.PropertyEntity.selectDbSchemaVersion
### The error occurred while executing a query
### SQL: select VALUE_ from ACT_GE_PROPERTY where NAME_ = 'schema.version'
### Cause: org.h2.jdbc.JdbcSQLException: Table "ACT_GE_PROPERTY" not found; SQL statement:
select VALUE_ from ACT_GE_PROPERTY where NAME_ = 'schema.version' [42102-172]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
   at org.h2.message.DbException.get(DbException.java:169)
   at org.h2.message.DbException.get(DbException.java:146)
   at org.h2.command.Parser.readTableOrView(Parser.java:4824)
   at org.h2.command.Parser.readTableFilter(Parser.java:1099)
   at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1705)
   at org.h2.command.Parser.parseSelectSimple(Parser.java:1813)
   at org.h2.command.Parser.parseSelectSub(Parser.java:1699)
   at org.h2.command.Parser.parseSelectUnion(Parser.java:1542)
   at org.h2.command.Parser.parseSelect(Parser.java:1530)
   at org.h2.command.Parser.parsePrepared(Parser.java:405)
   at org.h2.command.Parser.parse(Parser.java:279)
   at org.h2.command.Parser.parse(Parser.java:251)
   at org.h2.command.Parser.prepareCommand(Parser.java:218)
   at org.h2.engine.Session.prepareLocal(Session.java:425)
   at org.h2.server.TcpServerThread.process(TcpServerThread.java:255)
   at org.h2.server.TcpServerThread.run(TcpServerThread.java:151)
   at java.lang.Thread.run(Thread.java:722)

   at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
   at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:81)
   at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:73)
   at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:39)
   at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:34)
   at org.activiti.engine.impl.db.DbSqlSession.getDbVersion(DbSqlSession.java:551)
   at org.activiti.engine.impl.db.DbSqlSession.dbSchemaCheckVersion(DbSqlSession.java:490)
   … 30 more
Caused by: org.h2.jdbc.JdbcSQLException: Table "ACT_GE_PROPERTY" not found; SQL statement:
select VALUE_ from ACT_GE_PROPERTY where NAME_ = 'schema.version' [42102-172]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
   at org.h2.message.DbException.get(DbException.java:169)
   at org.h2.message.DbException.get(DbException.java:146)
   at org.h2.command.Parser.readTableOrView(Parser.java:4824)
   at org.h2.command.Parser.readTableFilter(Parser.java:1099)
   at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1705)
   at org.h2.command.Parser.parseSelectSimple(Parser.java:1813)
   at org.h2.command.Parser.parseSelectSub(Parser.java:1699)
   at org.h2.command.Parser.parseSelectUnion(Parser.java:1542)
   at org.h2.command.Parser.parseSelect(Parser.java:1530)
   at org.h2.command.Parser.parsePrepared(Parser.java:405)
   at org.h2.command.Parser.parse(Parser.java:279)
   at org.h2.command.Parser.parse(Parser.java:251)
   at org.h2.command.Parser.prepareCommand(Parser.java:218)
   at org.h2.engine.Session.prepareLocal(Session.java:425)
   at org.h2.server.TcpServerThread.process(TcpServerThread.java:255)
   at org.h2.server.TcpServerThread.run(TcpServerThread.java:151)
   at java.lang.Thread.run(Thread.java:722)

   at org.h2.engine.SessionRemote.done(SessionRemote.java:505)
   at org.h2.command.CommandRemote.prepare(CommandRemote.java:70)
   at org.h2.command.CommandRemote.<init>(CommandRemote.java:48)
   at org.h2.engine.SessionRemote.prepareCommand(SessionRemote.java:401)
   at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1070)
   at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)
   at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:233)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.apache.ibatis.datasource.pooled.PooledConnection.invoke(PooledConnection.java:225)
   at com.sun.proxy.$Proxy4.prepareStatement(Unknown Source)
   at org.apache.ibatis.executor.statement.PreparedStatementHandler.instantiateStatement(PreparedStatementHandler.java:50)
   at org.apache.ibatis.executor.statement.BaseStatementHandler.prepare(BaseStatementHandler.java:64)
   at org.apache.ibatis.executor.statement.RoutingStatementHandler.prepare(RoutingStatementHandler.java:39)
   at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:55)
   at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:40)
   at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:243)
   at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:117)
   at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:72)
   at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:79)
   … 35 more

Outcomes