Build: #1544 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Job result summary

Completed
Duration
11 minutes
Revision
def1f70bb146fe10c23c428452047fe151f3fb85 def1f70bb146fe10c23c428452047fe151f3fb85
Total tests
4
Fixed in
#1545 (Manual run by Daniel Kayiwa)

Tests

  • 4 tests in total
  • 1 test failed
  • 1 failure is new
  • 4 minutes taken in total.
New test failures 1
Status Test Duration
Collapse Failed DefinitionLibraryFragmentControllerComponentTest testGetResources History
4 mins
org.dbunit.dataset.NoSuchTableException: person
	at org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:282)
	at org.dbunit.operation.AbstractOperation.getOperationMetaData(AbstractOperation.java:80)
	at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:98)
	at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:583)
	at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:495)
	at org.openmrs.test.BaseContextSensitiveTest.initializeInMemoryDatabase(BaseContextSensitiveTest.java:436)
	at org.openmrs.test.BaseContextSensitiveTest.baseSetupWithStandardDataAndAuthentication(BaseContextSensitiveTest.java:687)
(36 more lines...)

Error summary

The build generated some errors. See the full build log for more details.

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:622)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
        at com.sun.proxy.$Proxy134.onStartup(Unknown Source)
        at org.openmrs.api.context.Daemon$4.run(Daemon.java:209)
Caused by: org.h2.jdbc.JdbcSQLException: Table "USERS" not found; SQL statement:
select user0_.user_id as user1_41_, user0_.uuid as uuid41_, user0_.person_id as person3_41_, user0_.system_id as system4_41_, user0_.username as username41_, user0_.creator as creator41_, user0_.date_created as date7_41_, user0_.changed_by as changed8_41_, user0_.date_changed as date9_41_, user0_.retired as retired41_, user0_.retired_by as retired11_41_, user0_.date_retired as date12_41_, user0_.retire_reason as retire13_41_, user0_.secret_question as secret14_41_ from users user0_ where user0_.uuid=? [42102-135]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
        at org.h2.message.DbException.get(DbException.java:167)
        at org.h2.message.DbException.get(DbException.java:144)
        at org.h2.command.Parser.readTableOrView(Parser.java:4386)
        at org.h2.command.Parser.readTableFilter(Parser.java:1002)
        at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1536)
        at org.h2.command.Parser.parseSelectSimple(Parser.java:1633)
        at org.h2.command.Parser.parseSelectSub(Parser.java:1530)
        at org.h2.command.Parser.parseSelectUnion(Parser.java:1375)
        at org.h2.command.Parser.parseSelect(Parser.java:1363)
        at org.h2.command.Parser.parsePrepared(Parser.java:395)
        at org.h2.command.Parser.parse(Parser.java:278)
        at org.h2.command.Parser.parse(Parser.java:250)
        at org.h2.command.Parser.prepareCommand(Parser.java:222)
        at org.h2.engine.Session.prepareLocal(Session.java:420)
        at org.h2.engine.Session.prepareCommand(Session.java:381)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071)
        at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)
        at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234)
        at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:213)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
        at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
        at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1700)
        at org.hibernate.loader.Loader.doQuery(Loader.java:801)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
        at org.hibernate.loader.Loader.doList(Loader.java:2533)
        ... 34 more
Exception in thread "Thread-52" org.openmrs.module.ModuleException: Unable to run onStartup() method as Daemon
        at org.openmrs.api.context.Daemon.runStartupForService(Daemon.java:235)
        at org.openmrs.api.context.ServiceContext$1.run(ServiceContext.java:1001)
Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
        at org.hibernate.loader.Loader.doList(Loader.java:2536)
        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
        at org.hibernate.loader.Loader.list(Loader.java:2271)
        at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452)
        at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
        at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
        at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:890)
        at org.openmrs.api.db.hibernate.HibernateContextDAO.getUserByUuid(HibernateContextDAO.java:195)
        at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:622)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at com.sun.proxy.$Proxy104.getUserByUuid(Unknown Source)
        at org.openmrs.api.context.Context.getAuthenticatedUser(Context.java:618)
        at org.openmrs.aop.AuthorizationAdvice.before(AuthorizationAdvice.java:52)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at com.sun.proxy.$Proxy96.onStartup(Unknown Source)
        at org.openmrs.api.context.Daemon$4.run(Daemon.java:209)
Caused by: org.h2.jdbc.JdbcSQLException: Table "USERS" not found; SQL statement:
select user0_.user_id as user1_41_, user0_.uuid as uuid41_, user0_.person_id as person3_41_, user0_.system_id as system4_41_, user0_.username as username41_, user0_.creator as creator41_, user0_.date_created as date7_41_, user0_.changed_by as changed8_41_, user0_.date_changed as date9_41_, user0_.retired as retired41_, user0_.retired_by as retired11_41_, user0_.date_retired as date12_41_, user0_.retire_reason as retire13_41_, user0_.secret_question as secret14_41_ from users user0_ where user0_.uuid=? [42102-135]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
        at org.h2.message.DbException.get(DbException.java:167)
        at org.h2.message.DbException.get(DbException.java:144)
        at org.h2.command.Parser.readTableOrView(Parser.java:4386)
        at org.h2.command.Parser.readTableFilter(Parser.java:1002)
        at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1536)
        at org.h2.command.Parser.parseSelectSimple(Parser.java:1633)
        at org.h2.command.Parser.parseSelectSub(Parser.java:1530)
        at org.h2.command.Parser.parseSelectUnion(Parser.java:1375)
        at org.h2.command.Parser.parseSelect(Parser.java:1363)
        at org.h2.command.Parser.parsePrepared(Parser.java:395)
        at org.h2.command.Parser.parse(Parser.java:278)
        at org.h2.command.Parser.parse(Parser.java:250)
        at org.h2.command.Parser.prepareCommand(Parser.java:222)
        at org.h2.engine.Session.prepareLocal(Session.java:420)
        at org.h2.engine.Session.prepareCommand(Session.java:381)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071)
        at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)
        at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234)
        at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:213)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
        at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
        at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1700)
        at org.hibernate.loader.Loader.doQuery(Loader.java:801)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
        at org.hibernate.loader.Loader.doList(Loader.java:2533)
        ... 26 more