[planner] documentation
by Eric Keller
Hi everyone,
I am going through your new optaPlanner User Guide documentaiton and found
one typo:
Let's take a look look at 2 different implementations:
(double look!)
2.1.7.1. Simple Java score configuration
Regards
--
Eric
11 years, 7 months
error when deploying guvnor war on websphere
by ashish6276
Hi i am getting this error when i am deploying guvnor war on websphere server
[4/24/13 11:07:10:629 IST] 0000001e webapp I
com.ibm.ws.webcontainer.webapp.WebApp log SRVE0296E:
[guvnorWAS_war#guvnorWAS.war][/test][Servlet.LOG]:.Exception while
dispatching incoming RPC
call:.com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
Make sure your IDE classpath is in sync with the real maven classpath.
The classpath should include weld-servlet.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1583)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:870)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:863)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:182)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Caused by: java.lang.IllegalStateException: CDI hasn't been properly
started.
Make sure your IDE classpath is in sync with the real maven classpath.
The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
The war get deployed in was succesfully. after that when i am hitting the
url from ide the page goes blank and it give me those exception. please help
me .
--
View this message in context: http://drools.46999.n3.nabble.com/error-when-deploying-guvnor-war-on-webs...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 7 months
Fusion: Null pointer exception when using sliding windows
by burmanator
I am getting a null pointer exception when I try and use a sliding window.
The rule I'm trying to run is:
$primary : Foo($name : Name) over window length(24)
$prev : ArrayList(size<1) from collect ( Foo(Name == $name, this before
$primary))
I am trying to look at the last 24 Foo events and have the rule only trigger
when an event with that name hasn't been seen before. I also get a null
pointer when I try and do a time window and no Foo events happen within the
window. Shouldn't the rule just not fire?
--
View this message in context: http://drools.46999.n3.nabble.com/Fusion-Null-pointer-exception-when-usin...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 7 months
Designer for Guvnor 5.3.5
by Lance Leverich
Can anyone point me to where I can find the jBPM designer tool for use
within Guvnor v5.3.5? Instead of getting a download option, all we get is
the error message telling us that Guvnor couldn't find the designer tool.
~ Lance
11 years, 7 months
Guvnor 5.4.0 Deployment Failing on Websphere CE 2.1.1.4
by kulpreet_singh
Hi,
Trying to deploy 'guvnor-5.4.0.Final-tomcat-6.0.war' on Websphere CE
2.1.1.4, but getting following deployment error:
-----------------------------------------
Deployment Failed
Can not resolve admin object ref ?j2eeType=JCAAdminObject,name=BeanManager#
in configuration default/guvnor-5.4.0.Final-tomcat-6.0/1366121936876/war
org.apache.geronimo.common.DeploymentException: Can not resolve admin object
ref ?j2eeType=JCAAdminObject,name=BeanManager# in configuration
default/guvnor-5.4.0.Final-tomcat-6.0/1366121936876/war
at
org.apache.geronimo.connector.deployment.AdminObjectRefBuilder.buildAdminObjectReference(AdminObjectRefBuilder.java:260)
at
org.apache.geronimo.connector.deployment.AdminObjectRefBuilder.buildNaming(AdminObjectRefBuilder.java:153)
at
org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
------------------------------------------
If anyone has faced similar issue before, please help me in this regard.
Thanks.
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-4-0-Deployment-Failing-on-Webs...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 7 months
Create package in Guvnor via REST API fail (Missing package name)
by Magic
Hi,
I am trying to operate my local 5.5.0 Guvnor through RESTful API and have
some trouble.
For example, below is my code to create a package through a InputStream DRL.
The DRL string is copied from
org.drools.guvnor.server.util.FileManagerUtilsTest.java
=====================================================================
String content = "package testClassicDRLImport\n import blah \n rule 'ola'
\n when \n then \n end \n rule 'hola' \n when \n then \n end";
HttpClient client = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(baseURL + "/rest/packages");
httpPost.addHeader("Authorization", securityToken);
httpPost.addHeader("Accept", MediaType.APPLICATION_JSON);
httpPost.addHeader("Content-Type", MediaType.APPLICATION_OCTET_STREAM);
InputStreamEntity entity = new
InputStreamEntity(IOUtils.toInputStream(comment), comment.length(),
ContentType.APPLICATION_OCTET_STREAM);
httpPost.setEntity(entity);
HttpResponse response = client.execute(httpPost);
=====================================================================
But, I still got an error that told me "Missing package name":
Caused by: java.lang.IllegalArgumentException: Missing package name.
at
org.drools.guvnor.server.files.FileManagerService.importClassicDRL(FileManagerService.java:313)
[guvnor-webap
p-core-5.5.0.Final.jar:5.5.0.Final]
at
org.drools.guvnor.server.files.FileManagerService$Proxy$_$$_WeldClientProxy.importClassicDRL(FileManagerServi
ce$Proxy$_$$_WeldClientProxy.java)
[guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
at
org.drools.guvnor.server.jaxrs.PackageResource.createPackageFromDRLAndReturnAsJaxB(PackageResource.java:172)
[guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
I really don't know what's wrong and any help is really appreciate!
--
View this message in context: http://drools.46999.n3.nabble.com/Create-package-in-Guvnor-via-REST-API-f...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 7 months
NullPointerException when using bean property which happens to be a Enum name
by Sean Su
I am using 5.5.0.Final and I think I may have run into a bug.
Assuming I have a class Foo that has a getter which is getMyEnum().
Also I have a Enum class which happens to have the name MyEnum.
When writing rules, I have
$foo : Foo (MyEnum == MyEnum.someItem)
This line will throw NullPointerException.
I have to write it as:
$foo : Foo (getMyEnum() == MyEnum.someItem)
This statement will work just fine.
The workaround is ok for DRL. However I tested this on Guvnor and the rule
editor would generate the DRL just like the first statement (MyEnum ==
MyEnum.someItem). So we would be out of luck there.
Has anyone ever ran into this before.
Thanks
Sean
11 years, 7 months
drools queries: strange dependency
by upalik
This message was cross-posted to stack-exchange. If someone wants to answer
there, the URL is
http://stackoverflow.com/questions/15922343/drools-queries-strange-depend...
.
I'm somewhat new to Drools, and experienced this strange behavior during
writing a query.
To start with, the Hotel class here is a subclass of PlaceImpl, which
implements the interface Place. PlaceImpl itself is a subclass (via another
class) of OntologyClassImpl, where the method getClasses() is implemented in
the most trivial way: it returns an already existing java.util.Set of
objects. In short, getClasses() is accessible from both Place interface and
Hotel class.
My problem is this: The following query does not return any result even when
there are matching Hotels.
query "qryRomantic" $e: Hotel (classes contains
Semantics.AMB_Romantic)end
However, if I replace Hotel with Place, then the /query returns desired
results/, although the ONLY condition-setting rules are written for Hotel,
as follows. (This rule actually gets fired several times.)
rule "Set semantic class Romantic"no-loop when $hotel: Hotel( ...
conditions go here ... ) then modify ($hotel){
addToClasses(Semantics.AMB_Romantic) }end
It does not end there.
if I add another query to the rule file, for exactly the opposite condition
as follows,
query "qryNonRomantic" $e: Hotel (classes not contains
Semantics.AMB_Romantic)end
then the /first query/ starts to return the desired results, /EVEN WHEN the
new query is not called at all/!
What am I doing wrong? I'd be really grateful for any pointers.
--
View this message in context: http://drools.46999.n3.nabble.com/drools-queries-strange-dependency-tp402...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 7 months