stack overflow in work items
by Garrett Conaty
My scenario is a rule that is firing over a collection. For each item
in that collection a ruleflow starts to handle it. Right now the
ruleflow just uses the log workitem to log the steps. When there are
~600 items in the collection I'm getting stack overflows. Granted the
processes could be optimized (I'd really like to take each thing in
the collection that matched and start a process for the set of them).
Still is there a limit to the number of active processes with work
items?
java.lang.StackOverflowError
at java.lang.Long.valueOf(Long.java:547)
at
org
.drools
.workflow.core.impl.NodeContainerImpl.getNode(NodeContainerImpl.java:44)
at
org
.drools
.workflow
.core.impl.WorkflowProcessImpl.getNode(WorkflowProcessImpl.java:47)
at
org
.drools
.workflow
.core
.impl.WorkflowProcessImpl.internalGetNode(WorkflowProcessImpl.java:51)
at
org
.drools
.workflow.instance.impl.NodeInstanceImpl.getNode(NodeInstanceImpl.java:
90)
at
org
.drools
.workflow
.instance
.impl
.ExtendedNodeInstanceImpl
.getExtendedNode(ExtendedNodeInstanceImpl.java:24)
at
org
.drools
.workflow
.instance
.impl
.ExtendedNodeInstanceImpl.triggerEvent(ExtendedNodeInstanceImpl.java:41)
at
org
.drools
.workflow
.instance
.impl
.ExtendedNodeInstanceImpl
.internalTrigger(ExtendedNodeInstanceImpl.java:28)
at
org
.drools
.workflow
.instance
.node
.EventBasedNodeInstance.internalTrigger(EventBasedNodeInstance.java:30)
at
org
.drools
.workflow
.instance
.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:80)
at
org
.drools
.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:
111)
at
org
.drools
.workflow
.instance
.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:141)
at
org
.drools
.workflow
.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:
128)
at
org
.drools
.workflow
.instance
.impl
.ExtendedNodeInstanceImpl
.triggerCompleted(ExtendedNodeInstanceImpl.java:37)
at
org
.drools
.workflow
.instance
.node
.EventBasedNodeInstance.triggerCompleted(EventBasedNodeInstance.java:96)
at
org
.drools
.workflow
.instance
.node
.EventBasedNodeInstance.triggerCompleted(EventBasedNodeInstance.java:77)
at
org
.drools
.workflow
.instance
.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:
192)
at
org
.drools
.workflow
.instance
.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:
244)
at
org
.drools
.workflow
.instance
.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:222)
at
org
.drools
.workflow
.instance
.impl
.WorkflowProcessInstanceImpl
.signalEvent(WorkflowProcessInstanceImpl.java:258)
at
org
.drools
.process
.instance
.impl
.DefaultWorkItemManager.completeWorkItem(DefaultWorkItemManager.java:96)
at com.jsi.inactivity.DroolsTest$1.executeWorkItem(DroolsTest.java:40)
15 years, 7 months
Facing severe issues while using Persistence
by Umesh Wankhede
Hi
While using workflow persistence feature (with human task component), I
am having quite a few problems. When I use default db (H2), I get
ConstraintViolationException [1]. Since I have to ultimately integrate
with Oracle, I modify the config files to point to Oracle. But with that
I started getting lot of other issues, like invalid column names (size,
date), invalid table name (Comment), SQLGrammarException, etc[2] (This
is serious problem, if you use Oracle!)
I am struggling for quite a few days to get this work, but no success,
any help would be greatly appreciated.
I am attaching the source code also[3].
[1]db-h2-errors.log
[2] db-oracle-errors.log
[3] RuleFlowTest.java, ruleflow.rf
Regds
Umesh
Legal Notice: This transmission, including any attachments, is confidential, proprietary, and may be privileged. It is intended solely for
the intended recipient. If you are not the intended recipient, you have received this transmission in error and you are hereby advised that any
review, disclosure, copying, distribution, or use of this transmission, or any of the information included therein, is unauthorized and strictly
prohibited. If you have received this transmission in error, please immediately notify the sender by reply and permanently delete all copies of
this transmission and its attachments
15 years, 7 months
Writing rules using java from template
by Meny Kobel
Hi,
Any updates regarding this subject?
I have the same problem and can't find a solution.
Like newbie I need to read varying rules from DB and transform them to
drools language.
Thanks,
Meny
15 years, 7 months
stateful knowledge session and thread safety
by Michal Bali
Hi,
I am trying to find out how to properly interact with one stateful knowledge
session from multiple concurrent threads. As far as I know the session is
not thread safe.
Is the BatchExecutor interface meant for this task?
Thanking you in advance.
Best Regards,
Michal
15 years, 8 months
Drools Boot Camp / share room
by Mauricio Salatino
I'm trying to get the money to go but I have a limited budget for hotel :)
and I don't care to share a room with another drools guy!
Just let me know if you are in the same situation than I or if you just
don't mind to share the room and help this poor drooler!
Thanks! Hope to see you all in San Francisco!
--
- Salatino Mauricio -
15 years, 8 months
How to write below rule using Guvnor ( Invoice and Line Item scenario )
by Ashish Soni
Hi All ,
I am trying to write below rule in Guvnor Guided Editor but not able to do
so , Any help or suggestion will be appreciated -
Let say i have a Invoice Object which contains collection of Line Items
Class Invoice
{
private Collection<LineItem> lineItems;
}
Class LineItem
{
private double grossAmount;
}
Now i want to write a rule on Invoice object so that when ever there is only
one LineItem in the collection and the gross amount is greater then $100
then split the lineitem in two with setting equal gross amount in each Line
Item i.e after the rule execution the Collection of the LineItem should
contain two line item object with equal gross amount .
Please let me know how can i create this rule using Guvnor guided editor.
Regards,
Ashish
15 years, 8 months
Guvnor 5.0.0.CR1 Error Extractor dependency not found: org.apache.jackrabbit.extractor.MsWordTextExtractor java.lang.NoClassDefFoundError
by Ashish Soni
Hi All ,
I just took the latest Guvnor 5.0.0.CR1 and getting the below error when i
build the package , can some one please help
10:17:36,526 INFO [STDOUT] WARN 31-03 10:17:36,526
(JackrabbitTextExtractor.java:<init>:128) *Extractor dependency not found:
org.apache.jackrabbit.extractor.MsWordTextExtractor
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)*
at
org.apache.jackrabbit.core.query.lucene.JackrabbitTextExtractor.<init>(JackrabbitTextExtractor.java:113)
at
org.apache.jackrabbit.core.query.lucene.SearchIndex.createTextExtractor(SearchIndex.java:912)
at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:419)
at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:264)
at
org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:625)
at
org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:104)
at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
at
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
at
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration.newSession(BRMSRepositoryConfiguration.java:112)
at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration_$$_javassist_0.newSession(BRMSRepositoryConfiguration_$$_javassist_0.java)
at
org.drools.guvnor.server.repository.RulesRepositoryManager.create(RulesRepositoryManager.java:58)
at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
at
org.drools.guvnor.server.repository.RulesRepositoryManager_$$_javassist_6.create(RulesRepositoryManager_$$_javassist_6.java)
15 years, 8 months
Re: [rules-users] Drools 5 et SEAM 2.1.1
by Marc Dzaebel
Drools 5 had to change it's API mainly to overcome the rule-centric in favour
of a knowledge centric approach. See
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/tr...
http://hudson.jboss.org .
Note that Drools Flow 5 is now able to act as a noticable BPM-system and
other subsystems like Fusion/Solver etc. completes the functionality.
However, Drools 5 is not yet documented enough. Even if the Seam integration
fix should not be hard, I assume that Drools 5 has to be stable until
integration issues can be tackled.
aubertinp wrote:
>
> I am trying to work with drools 5 BRMS (RC1) and SEAM 2.1.1.
> I want use JBPM with rules from the BRMS.
> I am not able to make it work, i guess i have some libraries problems.
> I tried to change drools libraries from SEAM with drools libraries from
> DROOLS 5 but i keep getting this error:
> ...
> Caused by: java.lang.NoSuchMethodError:
> org.drools.WorkingMemory.fireAllRules()
>
--
View this message in context: http://www.nabble.com/Drools-5-et-SEAM-2.1.1-tp22471448p22645424.html
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months