Looks like a bug in drools, not really relate to optaplanner as it happens before you set this KieBase on OptaPlanner's SolverFactory, I presume?
If (and only if) it reproduces with drools 6.0.0.Final (optaplanner 6.0.0.Final uses that version), create a new jira: https://issues.jboss.org/browse/DROOLS We're in squashing bugs mode, so it's a perfect time to create these jira's :) On 22-11-13 16:19, jonathan.labin wrote: > I am calling KieFileSystem.write(String path ,String content) but the same > issue may be experienced with any of the versions of write that take a > "path" parameter but I haven't tried them. > > I found that if the path parameter includes a character \ there is no error > produced when calling KieFileSystem.write(...). > > When a KieBuilder.buildAll() is called a warning is logged: > [o.d.compiler.kie.builder.impl.AbstractKieModule ] No files found for > KieBase defaultKieBase > > Then when solving begins the exception is thrown: > java.lang.RuntimeException: Unexpected global [scoreHolder] > (the same stack trace provided at the beginning of this thread). > > For my code I've done a String regex just before the write call to swap any > \ into / > replaceAll("\\\\","/") > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Optaplanner-Unexpected-global-scoreHolder-tp4023837p4026888.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
