[rules-users] Optaplanner: Unexpected global [scoreHolder] - Kie API trouble
jonathan.labin
jonathan.labin at gmail.com
Fri Nov 22 10:19:37 EST 2013
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.
More information about the rules-users
mailing list