-
Bug
-
Resolution: Won't Do
-
Critical
-
6.5.0.CR1
-
None
-
-
NEW
-
NEW
There is null pointer exception error when try to submit problem to solver via REST API in KIE server. The attached project is created by Drools Workbench 6.5.0.CR1.
KIE Container and Solver are created successfully.
08:27:50,569 INFO [org.kie.server.services.impl.KieServerImpl] (EJB default - 2) Container optacloud_1_0_0 (for release id demo:optacloud:0.0.1) successfully started
08:27:56,076 INFO [org.uberfire.ext.security.management.BackendUserSystemManager] (default task-21) Using the user management service named 'WildflyCLIUserManagementService'
08:28:19,332 INFO [org.kie.server.services.optaplanner.SolverServiceBase] (default task-7) Solver 'solver1' successfully created in container 'optacloud_1_0_0'
Null pointer exception when submitting problem via REST API:
08:35:54,444 ERROR [org.kie.server.services.optaplanner.SolverServiceBase] (pool-8-thread-2) Exception executing solver 'solver1' from container 'optacloud_1_0_0'. Thread will terminate.: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:692)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:652)
at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirectorFactory.newKieSession(DroolsScoreDirectorFactory.java:113)
at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.resetKieSession(DroolsScoreDirector.java:68)
at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.setWorkingSolution(DroolsScoreDirector.java:61)
at org.optaplanner.core.impl.solver.scope.DefaultSolverScope.setWorkingSolutionFromBestSolution(DefaultSolverScope.java:198)
at org.optaplanner.core.impl.solver.DefaultSolver.solvingStarted(DefaultSolver.java:196)
at org.optaplanner.core.impl.solver.DefaultSolver.solve(DefaultSolver.java:175)
at org.kie.server.services.optaplanner.SolverServiceBase$1.run(SolverServiceBase.java:329)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
- is caused by
-
DROOLS-1276 KieContainer.newKieSession((String) null) should return the default ksession to be consistent with getKieSessionModel(null)
- Closed