Target Karaf (4 or 3)
I try to integrate a code writent in pur java, inside a bundle (runing inside karaf)
But unfortunately, when I run this code:
ProcessEngineConfiguration configuration = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration();
this.processEngine = configuration.buildProcessEngine();
I have the following error:
java.lang.IllegalArgumentException: InputStream cannot be null …
When I run this:
this.processEngine
= ProcessEngineConfiguration
.createStandaloneProcessEngineConfiguration()
.createProcessEngineConfigurationFromInputStream(configInputStream)
.setAsyncExecutorActivate(true)
.setJdbcUrl(“jdbc:h2:mem:eaton;DB_CLOSE_DELAY=-1”)
.setJdbcDriver(“org.h2.Driver”)
.setJdbcUsername(“sa”)
.setJdbcPassword("")
.setDatabaseSchemaUpdate(“true”)
.buildProcessEngine();
I have the following error:
I progress on this issue, but not the solution, The problem is:
Inside the AbstractEngineConfigurator class instanciate by IdmEngineConfigurator, the method registerCustomMybatisMappings coud no retrieve the resource: org/flowable/idm/db/mapping/mappings.xml
and throw an exception InputStream can not be null!
I try to set the classLoader but unfortunately , it’s does not work too!!!
Any help on this issue will be appreciate.
I use Flowable in Karaf 4 (used it in 3 too) and instantiate the engine with the following in a blueprint.xml file just fine. Doing the equivalent in code should work too.
Thx for your comment added few days ago.
I work again on this topic, but unfortunately, it’s does not work.
I have already the same issue.
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean processEngineFactory
…
…
…
Caused by: java.lang.IllegalArgumentException: InputStream cannot be null
I foud the root cause but without any change in the code, I don’t know how to solve this issue!!
The root cause is
The AbstractEngineConfigurator does not find the resource name “org/flowable/idm/db/mapping/mappings.xml”.
this configuration file is located in the Flowable IDM engine.
So ??
I instantiate flowable engine, etc, with the following blueprint file:
I am meeting the same issue using Felix Framework. The problem comes from the Class Loading as the current bundle class loader is used while referring to a resource path from another bundle.