Drools Guvnor got hang
by krishna prasad As
Hi,
I'm using Drools Guvnor 5.4.0.Final for my production application. It was
running fine But today the guvnor got hung and when I tried to restart it,
got the following error in tomcat's(6.0.24) localhost log,
Jul 1, 2013 7:14:31 AM org.apache.catalina.session.StandardSession
writeObject
WARNING: Cannot serialize session attribute
org.jboss.weld.context.http.HttpSessionContext#org.jboss.weld.bean-flat-ManagedBean-org.jboss.seam.security.IdentityImpl[@javax.enterprise.context.SessionScoped()@javax.inject.Named(value=identity)@org.jboss.solder.config.xml.core.XmlConfiguredBean()@org.jboss.solder.config.xml.core.XmlId(value=1)]{org.jboss.seam.security.IdentityImpl.authenticators[@javax.enterprise.inject.Any()@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.beanManager[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.credentials[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.permissionMapper[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.requestSecurityState[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.session[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.deferredAuthenticationObserver(org.jboss.seam.security.events.DeferredAuthenticationEvent[(a)javax.enterprise.event.Observes(during=IN_PROGRESS,notifyObserver=ALWAYS)]);}
for session 82B9B573DFBB2E9E7470649A1A5441E3
java.io.NotSerializableException: org.drools.repository.RulesRepository
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at
java.util.Collections$SynchronizedCollection.writeObject(Collections.java:1602)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1546)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:989)
at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4611)
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
at
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1319)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1290)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:323)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
at
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:584)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
at org.apache.catalina.startup.Catalina.start(Catalina.java:618)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
------------------------------------------------------------------------------------------------------------------------
Can anyone help me for finding the root cause.?
Thanks & Regards
Krishnaprasad.
11 years, 4 months
Event and Facts Problem
by Andynator
hey,
I have a problem with events and facts: when i have two existing facts
(resources) und i am inserting an event (request), then following rule is
fired twice (for each resource)
/declare ReservationRequest
@role ( event )
@timestamp ( timestamp )
@expires(0s)
end
rule "Allocate"
no-loop true
when
$resource : Resource(state == 0)
$request : ReservationRequest() from entry-point "EventStream"
then
modify($resource) { setState(1) };
insert(new Allocation($resource, $request.getDuration()));
log.warn("Rule 'Allocate' fired: '" + $resource.getName() + "' on
Request '" + $request.getName());
end/
Any ideas why?
--
View this message in context: http://drools.46999.n3.nabble.com/Event-and-Facts-Problem-tp4024622.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 4 months
Fwd: Drools and Dynamic rules per client
by Radhika Inugala
Hi All,
I am new to drools rule engine.
And I am looking at the drools for the following requirement:
My application has many customers, and we want to give them an ability to
set some sort of rules.
We need to store these rules and then when we get requests from these
clients we need to apply these client specific rules to the requests.
So the rules and the rule data is customer specific.
Please let me know, if we can do that using drools.
11 years, 4 months
How to call a function in when statement?
by luqman
I am using Drools. I was using a function to check a condition and I'm facing
this problem:
When I call the function without using an input argument, then it works
fine. However, when I use the function using an argument, then it fails and
the program gives the following error:
Exception in thread "main" [Error: *unable to resolve method using
strict-mode:* rbs.RBS.checkTopology(java.lang.Object)]
[Near : {... RBS.checkTopology($alarm.getProper ....}]
The rule is:
rule "R_LOS"
when
$alarm:Alarm(properties.get("nativeProbableCause")=="R_LOS",properties.get("perceivedSeverity")!="PS_CLEARED",*/RBS.checkTopology($alarm.getProperties.get("nativeEMSName")/*
) )
then
System.out.println($alarm.getProperties().get("perceivedSeverity"));
end
The function I'm using RBS.checkTopology(String name). Remember, that when I
don't pass the argument I change the function prototype too!
Kindly, help me out with this!!!
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-call-a-function-in-when-statemen...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 4 months
Drools_Documentation
by Oussama Rezgui
Hi,
I am an engineer student, I am asking to develop a program (the program
will choose autocratically an account type that fits best a bank customer)
using drools and Java. I never worked with this and I am really confused.
If there is someone who can help me I will be so grateful I can't ask
question here since I am beginner. I need basic documentation and someone
who can answer my question privately.
Thanks
--
Oussama REZGUI
Engineering Student at the ENSI (École Nationale des Sciences de
l'Informatique, Tunisie)
Treasurer of the TAICE ( Tunisian Association for International Cultural
Exchanges )
Event Manager at OSSEC ( Open Source Software ENSI Club )
http://about.me/oussama.rezgui
Mobile: +216 52 89 07 17
11 years, 4 months