ibatis.builder.BuilderException: Could not find SQL statement to include with refid 'org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntit

1,798 views
Skip to first unread message

steul...@googlemail.com

unread,
Oct 25, 2013, 4:46:26 AM10/25/13
to camunda-...@googlegroups.com
Seid kurzem schlagen meine Tests fehl mit folgender Meldung:

Tests in error:
testGetAufgabe_OhneZuweisung(...Test): Error while building ibatis SqlSessionFactory: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Could not find SQL statement to include with refid 'org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity.queryAuthorizationCheck'

Ich habe von fox 6 auf camunda 7 aktualisiert aber keine Idee, was hier fehlt.

Stefan

Daniel Meyer

unread,
Oct 25, 2013, 7:14:33 AM10/25/13
to camunda-...@googlegroups.com, steul...@googlemail.com
Hi Stefan,


could you maybe post the complete Stacktrace? That might help us to get a better understanding of whats happening here.

Thanks,
Daniel 

steul...@googlemail.com

unread,
Oct 26, 2013, 7:48:28 AM10/26/13
to camunda-...@googlegroups.com, steul...@googlemail.com
org.camunda.bpm.engine.ProcessEngineException: Error while building ibatis SqlSessionFactory: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Could not find SQL statement to include with refid 'org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity.queryAuthorizationCheck'
at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.initSqlSessionFactory(ProcessEngineConfigurationImpl.java:711)
at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:387)
at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:357)
at org.camunda.bpm.engine.test.ProcessEngineTestCase.initializeProcessEngine(ProcessEngineTestCase.java:102)
at org.camunda.bpm.engine.test.ProcessEngineTestCase.setUp(ProcessEngineTestCase.java:90)
at de.haspa.hsf.aufgabenliste.control.KommentarServiceTest.setUp(KommentarServiceTest.java:19)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
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.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Could not find SQL statement to include with refid 'org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity.queryAuthorizationCheck'
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:71)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:55)
at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.initSqlSessionFactory(ProcessEngineConfigurationImpl.java:706)
... 19 more
Caused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Could not find SQL statement to include with refid 'org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity.queryAuthorizationCheck'
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:59)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:39)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:247)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:69)
... 21 more
Caused by: org.apache.ibatis.builder.BuilderException: Could not find SQL statement to include with refid 'org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity.queryAuthorizationCheck'
at org.apache.ibatis.builder.xml.XMLStatementBuilder$IncludeNodeHandler.handleNode(XMLStatementBuilder.java:160)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseDynamicTags(XMLStatementBuilder.java:87)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.access$1100(XMLStatementBuilder.java:19)
at org.apache.ibatis.builder.xml.XMLStatementBuilder$WhereHandler.handleNode(XMLStatementBuilder.java:187)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseDynamicTags(XMLStatementBuilder.java:87)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.access$1100(XMLStatementBuilder.java:19)
at org.apache.ibatis.builder.xml.XMLStatementBuilder$IncludeNodeHandler.contents(XMLStatementBuilder.java:168)
at org.apache.ibatis.builder.xml.XMLStatementBuilder$IncludeNodeHandler.handleNode(XMLStatementBuilder.java:163)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseDynamicTags(XMLStatementBuilder.java:87)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:45)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:192)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:57)
... 24 more


Roman Smirnov

unread,
Oct 29, 2013, 8:10:56 AM10/29/13
to camunda-...@googlegroups.com, steul...@googlemail.com
Hi Stefan,


we are not able to reproduce it!

Do you use some custom mapping files or a custom process engine configuration?

Cheers,
Roman

steul...@googlemail.com

unread,
Nov 4, 2013, 5:35:51 AM11/4/13
to camunda-...@googlegroups.com, steul...@googlemail.com
Hi Roman,

the reason was an additional dependency to mybatis in my pom.

Stefan

Daniel Meyer

unread,
Nov 4, 2013, 8:12:27 AM11/4/13
to camunda-...@googlegroups.com, steul...@googlemail.com
Hi Stefan,

glad to hear that you could solve it!

Cheers,
Daniel Meyer
Reply all
Reply to author
Forward
0 new messages