java.lang.IllegalAccessException

Hi,

I am testing the process engine, this is how i build

processEngine = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration()
.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE)
.setJdbcUrl(“jdbc:h2:mem:my-own-db;DB_CLOSE_DELAY=1000”)
.setJobExecutorActivate(true)
.buildProcessEngine();

Now when trying to execute a process instance,

instanceBuilder.execute()

i get

Cause: org.apache.ibatis.builder.BuilderException: Error evaluating expression ‘tenantCheck.isTenantCheckEnabled’. Cause: org.apache.ibatis.ognl.OgnlException: isTenantCheckEnabled [java.lang.IllegalAccessException: Method [public boolean org.camunda.bpm.engine.impl.db.TenantCheck.getIsTenantCheckEnabled()] cannot be accessed.]’. Flush summary:

[

I also have a similar error when

repositoryService.createProcessDefinitionQuery().singleResult()

Did i miss anything?

Thanks
Shannon

Hi @Shannon_Ma,

which Camunda version do you use?

Can you please report the complete stacktrace?

Best regards,
Philipp

From googling, i added this

OgnlRuntime.setSecurityManager(null);

and it worked, not sure any side effect.

Shannon