[jboss-jira] [JBoss JIRA] (DROOLS-2726) Drools core doesn't run on AWS lambda
Mario Fusco (Jira)
issues at jboss.org
Mon Jul 1 02:45:00 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-2726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-2726.
---------------------------------
Resolution: Explained
As explained here https://stackoverflow.com/a/52691012/112779 the problem is caused by the fact that when you create a fat jar all kie.conf files must be concatenated in a single file.
See https://docs.jboss.org/drools/release/7.22.0.Final/drools-docs/html_single/#_building_and_running_drools_in_a_fat_jar to check how to do this.
> Drools core doesn't run on AWS lambda
> -------------------------------------
>
> Key: DROOLS-2726
> URL: https://issues.jboss.org/browse/DROOLS-2726
> Project: Drools
> Issue Type: Feature Request
> Components: core engine
> Affects Versions: 7.7.0.Final
> Reporter: Adeela Huma
> Assignee: Mario Fusco
> Priority: Major
>
> When running drools on AWS lambda they get this exception apparently:
> {code}
> java.lang.ExceptionInInitializerError:
> java.lang.ExceptionInInitializerError
> java.lang.ExceptionInInitializerError
> at org.kie.api.internal.utils.ServiceRegistry.getInstance(ServiceRegistry.java:27)
> ...
> Caused by: java.lang.RuntimeException: Child services [org.kie.api.internal.assembler.KieAssemblers] have no parent
> at org.kie.api.internal.utils.ServiceDiscoveryImpl.buildMap(ServiceDiscoveryImpl.java:191)
> at org.kie.api.internal.utils.ServiceDiscoveryImpl.getServices(ServiceDiscoveryImpl.java:97)
> ...
> {code}
> Reporting the bug from stack overflow discussion:
> https://stackoverflow.com/questions/51273121/optaplanner-with-aws-lambda
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list