Re: [rules-users] Unexpected, Unclear, Unperiodic error
Are the admin module and user module running in the same box? Can you access the package's URL from user's side? The error is clear, the kagent is getting a HTTP-502 error when it tries to read the package binary. Maybe a network configuration issue? Regards, Esteban Aliverti - Blog @ http://ilesteban.wordpress.com On Wed, May 15, 2013 at 7:10 AM, abhinay_agarwal abhinay_agar...@infosys.com wrote: I have a piece of code which builds the kbase, when i run it from my local system as a java application with guvnor deployed, the code works fine. When i try and access from the admin module, it calls the same method readKnowledgeBase(), it works. But, when i call the same piece of code (the same method readKnowledgeBase()) from user module, no extra parameter, the same changeset is being used, it throws the following exception. java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage at org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:796) at org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:1103) at org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:844) at org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:684) at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:207) at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:186) at com.infosys.fps.drools.adapter.DroolsAdapter.readKnowledgeBase(DroolsAdapter.java:58) at com.infosys.fps.feecommission.helper.GoalFeeCommissionHelper.calculateFee(GoalFeeCommissionHelper.java:189) at com.infosys.fps.feecommission.helper.GoalFeeCommissionHelper.processFee(GoalFeeCommissionHelper.java:167) at com.infosys.fps.feecommission.helper.GoalFeeCommissionHelper.processFeeCalculation(GoalFeeCommissionHelper.java:126) at com.infosys.fps.feecommission.helper.GoalFeeCommissionHelper.chargeGoalCreation(GoalFeeCommissionHelper.java:77) at com.infosys.fps.feecommission.helper.GoalFeeCommissionHelper.chargeFee(GoalFeeCommissionHelper.java:55) at com.infosys.fps.client.goal.service.EduGoalNeedsService.saveEducationNeeds(EduGoalNeedsService.java:932) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy57.saveEducationNeeds(Unknown Source) at com.infosys.fps.client.goal.delegate.EducationGoalDelegate.saveEducationNeeds(EducationGoalDelegate.java:217) at com.infosys.fps.client.goal.controller.EduGoalNeedsController.saveAfterGoalId(EduGoalNeedsController.java:865) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at
Re: [rules-users] Optaplanner - Multiday / Periodic Vehicle Routing Problems
On 15-05-13 03:35, Raoul Cousins wrote: I am interested in solving periodic vehicle routing problems and other multi-day (but static and deterministic) vehicle routing variants. These are similar to standard VRP except that not every customer is visited each day. In some variants, the days to visit each node are chosen from some predefined schedules; in others, each node has to be visited a specific number of times over the course of several days. Would Optaplanner be a good choice to model such problems? I know it's not a very well-defined question, but I'm wondering if there would be any serious difficulties modeling this type of problem before I dive into the programming. Definitely :) It's just a matter of choosing your class design wisely. Just like the VRP example: - Use a single PlanningEntity Visit, which represents 1 stop at a customer. - Use a single PlanningVariable previousAppearance, which is a Visit or a VehicleSingleDayTrip (instead of a Vehicle) The difference with the example is that the anchor of a chain (see "chained variables" in documentation) is not a Vehicle, but a VehicleSingleDayTrip. A VehicleSingleDayTrip is the combination of a Vehicle and a Day. The rest are just score constraint rules: - "days to visit each node are chosen from some predefined schedules" - "each node has to be visited a specific number of times over the course of several days" Thank you! ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] email
noorjalillahjef...@gmail.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Optaplan6.0.0Beta1:chaining-simpleScore OK, DRL Score corruption
Hi Geoffrey Thanks for attending to the Jira. I am at a loss as how to continue using Rete if my model cannot be handled by Rete so as Phreak works . tried out using Drools,OptaPlanner as per 2013-05-14 snapshots, turned on Phreak in OptaPlanner ScoreDirectorFactoryConfig, used OptaCrashExample-2.tar.gz from the Jira , changed testConfigDRL.xml from minimalAcceptedSelection to acceptedCountLimit which resulted in the following error:which appears similar to the previous score corruption problem. 2013-05-15 07:38:26,149 [main] INFO Loaded: data/plansched/solved/tmp.xml 2013-05-15 07:38:28,308 [main] INFO KieModule was added:MemoryKieModule[ ReleaseId=org.default:artifact:1.0.0-SNAPSHOT] OptaPlanner 2013-5-14 PT PhreakOption.ENABLED 2013-05-15 07:38:28,666 [main] INFO Solving started: time spend (146), score (0hard/0medium/0soft), new best score (0hard/0medium/0soft), random seed (0). 2013-05-15 07:38:28,669 [main] INFO Phase (0) constructionHeuristic ended: step total (0), time spend (149), best score (0hard/0medium/0soft). Exception in thread main Exception executing consequence for rule standtime vs maxendtime in com.umple.solver: java.lang.IllegalStateException: The constraintMatchTotal (com.umple.solver/standtime vs maxendtime/level2=11) could not remove constraintMatch (com.umple.solver/standtime vs maxendtime/level2/[ Plan: id 12 fry snitzel, Plan: id 10 fry chips, [Table-2], org.drools.core.reteoo.InitialFactImpl@4dde85f0]=-11) from its constraintMatchSet ([]). at org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39) at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1448) at org.drools.core.phreak.RuleExecutor.evaluateNetwork(RuleExecutor.java:105) at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1334) at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1585) at org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:654) at org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:618) at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:233) at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.calculateScore(DroolsScoreDirector.java:181) at org.optaplanner.core.impl.solver.scope.DefaultSolverScope.calculateScore(DefaultSolverScope.java:93) at org.optaplanner.core.impl.phase.AbstractSolverPhaseScope.calculateScore(AbstractSolverPhaseScope.java:117) at org.optaplanner.core.impl.localsearch.decider.DefaultDecider.processMove(DefaultDecider.java:157) at org.optaplanner.core.impl.localsearch.decider.DefaultDecider.doMove(DefaultDecider.java:144) at org.optaplanner.core.impl.localsearch.decider.DefaultDecider.decideNextStep(DefaultDecider.java:116) at org.optaplanner.core.impl.localsearch.DefaultLocalSearchSolverPhase.solve(DefaultLocalSearchSolverPhase.java:62) at org.optaplanner.core.impl.solver.DefaultSolver.runSolverPhases(DefaultSolver.java:190) at org.optaplanner.core.impl.solver.DefaultSolver.solve(DefaultSolver.java:155) at com.umple.app.PlanSchedHelloWorld.pseudoBenchMark(PlanSchedHelloWorld.java:77) at com.umple.app.PlanSchedHelloWorld.main(PlanSchedHelloWorld.java:60) Caused by: java.lang.IllegalStateException: The constraintMatchTotal (com.umple.solver/standtime vs maxendtime/level2=11) could not remove constraintMatch (com.umple.solver/standtime vs maxendtime/level2/[ Plan: id 12 fry snitzel, Plan: id 10 fry chips, [Table-2], org.drools.core.reteoo.InitialFactImpl@4dde85f0]=-11) from its constraintMatchSet ([]). at org.optaplanner.core.api.score.constraint.primint.IntConstraintMatchTotal.removeConstraintMatch(IntConstraintMatchTotal.java:101) at org.optaplanner.core.api.score.holder.AbstractScoreHolder$2.unMatch(AbstractScoreHolder.java:87) at org.optaplanner.core.api.score.holder.AbstractScoreHolder.prepareAgendaItemForUnMatchListener(AbstractScoreHolder.java:218) at org.optaplanner.core.api.score.holder.AbstractScoreHolder.registerIntConstraintMatch(AbstractScoreHolder.java:72) at org.optaplanner.core.api.score.buildin.hardmediumsoft.HardMediumSoftScoreHolder.addSoftConstraintMatch(HardMediumSoftScoreHolder.java:90) at com.umple.solver.Rule_standtime_vs_maxendtime2105489009.defaultConsequence(Rule_standtime_vs_maxendtime2105489009.java:13) at com.umple.solver.Rule_standtime_vs_maxendtime2105489009DefaultConsequenceInvokerGenerated.evaluate(Unknown Source) at com.umple.solver.Rule_standtime_vs_maxendtime2105489009DefaultConsequenceInvoker.evaluate(Unknown Source) at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1438) Any suggestions: - do you think that my
Re: [rules-users] Optaplan6.0.0Beta1:chaining-simpleScore OK, DRL Score corruption - VRP time windows
Phreak isn't ready for general consumption yet :) We're working hard to make it ready though. Regardless, the fact that Phreak doesn't expose this issue is a coincidence. There's actually a potential issue in OptaPlanner: https://issues.jboss.org/browse/PLANNER-158 Given the recent uptake in VRP implementations, I 'll try to give this priority in the next month or so. To fix your problem you can either go alternative B) or use the described workaround hack to get alternative A) to function properly. On 15-05-13 10:54, Paul T wrote: Hi Geoffrey Thanks for attending to the Jira. I am at a loss as how to continue using Rete if my model cannot be handled by Rete so as Phreak works . tried out using Drools,OptaPlanner as per 2013-05-14 snapshots, turned on Phreak in OptaPlanner ScoreDirectorFactoryConfig, used OptaCrashExample-2.tar.gz from the Jira , changed testConfigDRL.xml from minimalAcceptedSelection to acceptedCountLimit which resulted in the following error:which appears similar to the previous score corruption problem. 2013-05-15 07:38:26,149 [main] INFO Loaded: data/plansched/solved/tmp.xml 2013-05-15 07:38:28,308 [main] INFO KieModule was added:MemoryKieModule[ ReleaseId=org.default:artifact:1.0.0-SNAPSHOT] OptaPlanner 2013-5-14 PT PhreakOption.ENABLED 2013-05-15 07:38:28,666 [main] INFO Solving started: time spend (146), score (0hard/0medium/0soft), new best score (0hard/0medium/0soft), random seed (0). 2013-05-15 07:38:28,669 [main] INFO Phase (0) constructionHeuristic ended: step total (0), time spend (149), best score (0hard/0medium/0soft). Exception in thread main Exception executing consequence for rule standtime vs maxendtime in com.umple.solver: java.lang.IllegalStateException: The constraintMatchTotal (com.umple.solver/standtime vs maxendtime/level2=11) could not remove constraintMatch (com.umple.solver/standtime vs maxendtime/level2/[ Plan: id 12 fry snitzel, Plan: id 10 fry chips, [Table-2], org.drools.core.reteoo.InitialFactImpl@4dde85f0]=-11) from its constraintMatchSet ([]). at org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39) at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1448) at org.drools.core.phreak.RuleExecutor.evaluateNetwork(RuleExecutor.java:105) at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1334) at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1585) at org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:654) at org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:618) at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:233) at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.calculateScore(DroolsScoreDirector.java:181) at org.optaplanner.core.impl.solver.scope.DefaultSolverScope.calculateScore(DefaultSolverScope.java:93) at org.optaplanner.core.impl.phase.AbstractSolverPhaseScope.calculateScore(AbstractSolverPhaseScope.java:117) at org.optaplanner.core.impl.localsearch.decider.DefaultDecider.processMove(DefaultDecider.java:157) at org.optaplanner.core.impl.localsearch.decider.DefaultDecider.doMove(DefaultDecider.java:144) at org.optaplanner.core.impl.localsearch.decider.DefaultDecider.decideNextStep(DefaultDecider.java:116) at org.optaplanner.core.impl.localsearch.DefaultLocalSearchSolverPhase.solve(DefaultLocalSearchSolverPhase.java:62) at org.optaplanner.core.impl.solver.DefaultSolver.runSolverPhases(DefaultSolver.java:190) at org.optaplanner.core.impl.solver.DefaultSolver.solve(DefaultSolver.java:155) at com.umple.app.PlanSchedHelloWorld.pseudoBenchMark(PlanSchedHelloWorld.java:77) at com.umple.app.PlanSchedHelloWorld.main(PlanSchedHelloWorld.java:60) Caused by: java.lang.IllegalStateException: The constraintMatchTotal (com.umple.solver/standtime vs maxendtime/level2=11) could not remove constraintMatch (com.umple.solver/standtime vs maxendtime/level2/[ Plan: id 12 fry snitzel, Plan: id 10 fry chips, [Table-2], org.drools.core.reteoo.InitialFactImpl@4dde85f0]=-11) from its constraintMatchSet ([]). at org.optaplanner.core.api.score.constraint.primint.IntConstraintMatchTotal.removeConstraintMatch(IntConstraintMatchTotal.java:101) at org.optaplanner.core.api.score.holder.AbstractScoreHolder$2.unMatch(AbstractScoreHolder.java:87) at org.optaplanner.core.api.score.holder.AbstractScoreHolder.prepareAgendaItemForUnMatchListener(AbstractScoreHolder.java:218) at org.optaplanner.core.api.score.holder.AbstractScoreHolder.registerIntConstraintMatch(AbstractScoreHolder.java:72) at
[rules-users] clustering
hi, i need to configure Jboss clustering , i tried to apply it in the same server but i couldn't perform Failover so now i'm trying two different ips at different machines , what should i do exactly?! REGARDS, SARA ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] clustering
Hi Sara, I'm not sure if this is the right mailing list for JBoss Application Server Clustering configurations. You should try at the JBoss AS User forums. On Wed, May 15, 2013 at 12:01 PM, sara ibrahim saraibrahimhas...@hotmail.com wrote: hi, i need to configure Jboss clustering , i tried to apply it in the same server but i couldn't perform Failover so now i'm trying two different ips at different machines , what should i do exactly?! REGARDS, SARA ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - MyJourney @ http://salaboy.com http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Optaplanner: Unexpected global [scoreHolder]
I am using Optaplanner 6.0.0-Beta2 and I am in some cases receiving the following error during initial solution construction: Exception in thread main java.lang.RuntimeException: Unexpected global [scoreHolder] at org.drools.core.common.AbstractWorkingMemory.setGlobal(AbstractWorkingMemory.java:515) at org.drools.core.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:360) at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.resetKieSession(DroolsScoreDirector.java:83) at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.setWorkingSolution(DroolsScoreDirector.java:74) at org.optaplanner.core.impl.solver.scope.DefaultSolverScope.setWorkingSolutionFromBestSolution(DefaultSolverScope.java:176) at org.optaplanner.core.impl.solver.DefaultSolver.solvingStarted(DefaultSolver.java:176) at org.optaplanner.core.impl.solver.DefaultSolver.solve(DefaultSolver.java:154) I noticed this error in gist: https://gist.github.com/ge0ffrey/5236604 If this is the same error, what are the current constraints that I need adhere to in order to avoid this error? Jon -- View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-Unexpected-global-scoreHolder-tp4023837.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] NPE from reteoo.AccumulateNode
Davide and Wolfgang, thank you both for your time and feedback into my questions as well as to other's questions. I'm rather interested in learning more about the internals of drools in the hopes of making contribution when and where possible. I'd imagine there's a developer guide that talks to fusion's architecture that would act as a companion to reviewing the source code? Sincerely, Jason On May 14, 2013 8:25 PM, Davide Sottara dso...@gmail.com wrote: Confirmed as a race condition, hopefully it will be fixed in 5.6 Thanks Jason and Wolfgang Davide On 05/14/2013 06:43 AM, Jason Barto wrote: Thanks Wolfgang. I'll change over to the 5.3 libraries and carry on with my testing. I'll also enter this issue into jira if it doesn't yet exist. Sincerely, Jason On May 14, 2013 11:30 AM, Wolfgang Laun wolfgang.l...@gmail.com wrote: Looks like a bug in Drools to me. It has the classic hallmark of a race condition: the NPE does not happen with every run (on my system), perhaps only with 85%. Moreover, with 5.4.0 I get a similar NPE and also: Exception in thread main java.util.NoSuchElementException at java.util.LinkedList.remove(LinkedList.java:788) at java.util.LinkedList.removeFirst(LinkedList.java:134) at org.drools.common.PropagationContextImpl.evaluateActionQueue(PropagationContextImpl.java:344) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:342) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:298) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:123) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:53) at overrun.Main.main(Main.java:64) 5.3.0 is the last version without this bug. -W On 14/05/2013, jpbarto jason.p.ba...@gmail.com wrote: First the specifics: JDK 1.6, Mac OSX, using Drools 5.5 Final The full source code and rules are pasted below but here's the gist, I have a stateful knowledge session to which I am inserting events and running an accumulate on the input events. I have a for loop generating the events and inserting them as rapidly as possible. In the rules I use an accumulator to calculate the average of the values contained within the events. The behavior I'm observing is that if I insert ~120 events without any waiting I receive an NPE. If I Thread.sleep for even just 1ms the test goes off without a hitch. Have I uncovered a bug which should be logged in JIRA? I would check through JIRA to see if something similar has been logged but I'm so unfamiliar with the codebase, not to mention it could all just be user error. The NPE is as follows: Exception in thread main java.lang.NullPointerException at org.drools.reteoo.AccumulateNode.getFirstMatch(AccumulateNode.java:1050) at org.drools.reteoo.AccumulateNode.modifyLeftTuple(AccumulateNode.java:345) at org.drools.reteoo.SingleLeftTupleSinkAdapter.propagateModifyChildLeftTuple(SingleLeftTupleSinkAdapter.java:259) at org.drools.reteoo.AccumulateNode.evaluateResultConstraints(AccumulateNode.java:676) at org.drools.reteoo.ReteooWorkingMemory$EvaluateResultConstraints.execute(ReteooWorkingMemory.java:590) at org.drools.common.PropagationContextImpl.evaluateActionQueue(PropagationContextImpl.java:350) at org.drools.rule.SlidingLengthWindow.assertFact(SlidingLengthWindow.java:119) at org.drools.rule.BehaviorManager.assertFact(BehaviorManager.java:94) at org.drools.reteoo.WindowNode.assertObject(WindowNode.java:167) at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:497) at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:382) at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:235) at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:240) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:350) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:311) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:127) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:55) at drools5fusioneval.Average.main(Average.java:66) ### Average.java ### package drools5fusioneval; import java.io.IOException; import java.util.Random; import org.drools.KnowledgeBase; import org.drools.KnowledgeBaseConfiguration; import org.drools.KnowledgeBaseFactory; import org.drools.builder.KnowledgeBuilder; import org.drools.builder.KnowledgeBuilderFactory; import org.drools.builder.ResourceType; import org.drools.conf.EventProcessingOption; import org.drools.io.ResourceFactory; import org.drools.runtime.StatefulKnowledgeSession; import
[rules-users] Drools 6.0.0.Beta2 Documentation and Examples
I'm trying to use Drools 6.0.0.Beta2 but none of the examples appear to be Kie-ified making it difficult to figure out. Is there more up to date documentation concerning Drools 6 without pooring through source code? I'm specifically interested in drools + jbpm, new annotations, git integration, maven integration, new Drools UI (the uberfire one which I'm still unclear whether this is going to be called guvnor or something completely different). I realize how hard it is to work on a project and document at the same time - especially given the multi-continent talks coming up but this has been an ongoing struggle with JBoss based projects. The early releases (and even final) lack sufficient accurate documentation to even evaluate its use. I can only assume that this substantially reduces support contract opportunities and frustrates early adopters. Any pointers will be greatly appreciated. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-0-Beta2-Documentation-and-Examples-tp4023840.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 6.0.0.Beta2 Documentation and Examples
Up to date examples can be found here: https://github.com/droolsjbpm/drools/tree/master/drools-examples-api https://github.com/droolsjbpm/drools/tree/master/drools-examples-cdi Mark On 15 May 2013, at 17:48, 445511 cont...@silvernine.com wrote: I'm trying to use Drools 6.0.0.Beta2 but none of the examples appear to be Kie-ified making it difficult to figure out. Is there more up to date documentation concerning Drools 6 without pooring through source code? I'm specifically interested in drools + jbpm, new annotations, git integration, maven integration, new Drools UI (the uberfire one which I'm still unclear whether this is going to be called guvnor or something completely different). I realize how hard it is to work on a project and document at the same time - especially given the multi-continent talks coming up but this has been an ongoing struggle with JBoss based projects. The early releases (and even final) lack sufficient accurate documentation to even evaluate its use. I can only assume that this substantially reduces support contract opportunities and frustrates early adopters. We have deadlines, for which releases must be met. These are always aggressive and if things get too squeezed, documentation is one of the first things to go, as it's the only thing that can be left until the end. Anyone from the community is welcome to work with us to help document the examples we've done, or update existing examples. While not everyone can do core code, or have the time to do core code, I imagine most people can spare a few hours here and there for examples and documentation. Mark Any pointers will be greatly appreciated. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-0-Beta2-Documentation-and-Examples-tp4023840.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] threw error java.lang.ClassCastException: org.drools.reteoo.FromNode$FromMemory cannot be cast to org.drools.reteoo.BetaMemory
Apologize for being late to provide update ... Basically I did a small workaround and it has worked fine so far. So whenever a rule is added/updated, I perform following steps - 1. Create new KB 2. Add rule to this KB and check for errors 3. If no errors, then Copy over the knowledge packages from previous KB to new KB Make new KB as the default KB End So far I've not seen any of the previous exceptions (ClassCastException) Regards Ejaz -- View this message in context: http://drools.46999.n3.nabble.com/threw-error-java-lang-ClassCastException-org-drools-reteoo-FromNode-FromMemory-cannot-be-cast-to-orgy-tp4023497p4023842.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools Fusion Dropping Events?
I've been working to load test Drools 5.3 to determine if its a fit for a project. As part of the test I programmatically insert events as rapidly as possible; an example, my earlier test inserted 10k events in about 300ms. There is currently a single rule which reads the event and stores the event's value into the only fact in Drools. I'm very happy to report, and I'm sure it will be no surprise to anyone, that the engine processes all the events in roughly 1 sec. However I have noticed that any large number of events (~1000) usually sees that a small number of events don't get processed. I think after 10k events as many as 7 appear to have gone unprocessed. If 100 events are inserted, rather than 10k, no events get disregarded. Being new to Drools I can easily accept that my java code or DRL code is off or unoptimized in some way. However not knowing how Drools does its magic I'm currently inclined to think that Drools gets swamped (10k in 300ms is a lot) and a few events get dropped so Drools can keep operating. Is this a known or expected behavior from Drools? If not I am happy to post my code, it is similar to the other code sets I've posted in the last few days. I'm still new to Drools and trying to learn its behavior so any insight or enlightenment is greatly appreciated. Sincerely, Jason ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools Fusion Dropping Events?
What you describe is definitely not expected behaviour - it's more like that race condition (or another one) already being in 5.3. Posting your code might be a good idea ;-) -W On 16/05/2013, Jason Barto jason.p.ba...@gmail.com wrote: I've been working to load test Drools 5.3 to determine if its a fit for a project. As part of the test I programmatically insert events as rapidly as possible; an example, my earlier test inserted 10k events in about 300ms. There is currently a single rule which reads the event and stores the event's value into the only fact in Drools. I'm very happy to report, and I'm sure it will be no surprise to anyone, that the engine processes all the events in roughly 1 sec. However I have noticed that any large number of events (~1000) usually sees that a small number of events don't get processed. I think after 10k events as many as 7 appear to have gone unprocessed. If 100 events are inserted, rather than 10k, no events get disregarded. Being new to Drools I can easily accept that my java code or DRL code is off or unoptimized in some way. However not knowing how Drools does its magic I'm currently inclined to think that Drools gets swamped (10k in 300ms is a lot) and a few events get dropped so Drools can keep operating. Is this a known or expected behavior from Drools? If not I am happy to post my code, it is similar to the other code sets I've posted in the last few days. I'm still new to Drools and trying to learn its behavior so any insight or enlightenment is greatly appreciated. Sincerely, Jason ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users