mvn failed to install under drools-5.1.1-examples.zip
by Aman
When I tried to run mvn install, it gave me following error-
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/org/drools/drools/5.1.1/drools-5.1.1.pom
[INFO] Unable to find resource 'org.drools:drools:pom:5.1.1' in repository
central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: null:drools-examples:pom:null
Reason: Cannot find parent: org.drools:drools for project:
null:drools-examples:pom:null for project null:drools-examples:pom:null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.drools:drools for project: null:drools-examples:pom:null for project
null:drools-examples:pom:null
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
parent: org.drools:drools for project: null:drools-examples:pom:null for
project null:drools-examples:pom:null
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
avenProjectBuilder.java:1396)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMav
enProjectBuilder.java:823)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInter
nal(DefaultMavenProjectBuilder.java:508)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjec
tBuilder.java:200)
at
org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
... 12 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.drools:drools' not found in repository: Unable to download the artifact
from any repository
org.drools:drools:pom:5.1.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
for project org.drools:drools
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:605)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
avenProjectBuilder.java:1392)
... 18 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
org.drools:drools:pom:5.1.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:228)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:90)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:558)
... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWag
onManager.java:404)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:216)
... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sat Oct 02 16:37:04 EDT 2010
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------
13 years, 8 months
Question
by Heng hh
Hi all
I would like to ask how drools run . I found that they can run in two
different drl file. What is salience for ?.
rule " Teting 571"
salience 4200
when
root:AdjudicationDTO(type=="PRIORAPPROVAL_LINE",t:type);
pa:PriorApproval();
pal:PriorApprovalLine($pb:productBenefit);
cct:PriorApprovalTreatment(id!=null,$c:clinical);
then
System.out.println( "571= PASS ");
if(
root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c)!=null&&
root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c).getUcrType()!=null&&
(
root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c).getMinChargeLimit()!=null&&
root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c).getMinChargeLimit().compareTo(pal.getRequestedAmount())<0
||
root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c).getMinChargeLimit()!=null&&
root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c).getMinChargeLimit().compareTo(pal.getAllocatedAmount())<0
)
){
registerPALineStepStr(pal,571+cct.getId().toString(),
"571 Clinical treatment UCR validation",
AdjudicationConstants.RESULT_FAIL,
"The requested amount is more than the treatment UCR charge limit",
"PA line requested amt ["+pal.getRequestedAmount()+"] "+
" Allocated amt ["+pal.getAllocatedAmount()+"] "+
" benefit["+pal.getProductBenefit().getBenefit().getCode()+"]"+
"UCR["+root.getUcrDetailsMsg(root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c))+"]"
);
}
else{
registerPALineStepStr(pal,571+cct.getId().toString(),
"571 Clinical treatment UCR validation",
AdjudicationConstants.RESULT_PASS,
"The requested amount is more than the treatment UCR charge limit",
"PA line requested amt ["+pal.getRequestedAmount()+"] "+
" Allocated amt ["+pal.getAllocatedAmount()+"] "+
" benefit["+pal.getProductBenefit().getBenefit().getCode()+"]"+
root.getUcrDetailsMsg(root.getAppliedUcr($pb.getBenefit(),pa.getProposedDateOfTreatment(),pal.getClinicalUcrs(),$c))
);
}
end
13 years, 8 months
whern to remove persistent stateful drools session
by Stephan.Koops@We4IT.com
Hi,
I use drools with JPA peristence. It also persists the sessions. If I want
to load them back, I got an exception. So I create a new session every
time a need one. Is this a bad (or not good) strategy?
When can I remove the persisted session from the database? Directly after
closing it? Or can I disable the persistence of session, so only the other
things are persisted?
Thanks in advance.
Mit freundlichen Grüssen/Best regards
i. A.
Stephan Koops
Software Engineer
We4IT GmbH
***************************************************
Sie wollen aktuelle Informationen zu Lotus-Produkten? Dann besuchen Sie unseren Blog:
http://www.lotus-notes-domino-blog.de
***************************************************
We4IT GmbH
Technologiepark 11
33100 Paderborn
Tel: +49 5251 / 70993 - 24
Fax: +49 5251 / 70993 - 01
Mobil:
E-Mail: stephan.koops(a)we4it.com
Internet: http://www.we4it.com
HRB 20740, Amtsgericht Bremen
Geschäftsführer: Stefan Sucker, Vicente Diaz Fernandez
USt.-ID.-Nr. DE 220 859 831
Diese Nachricht ist vertraulich und ausschließlich für die adressierte Person und/oder Organisation bestimmt. Vertrauliche und/oder spezifische Informationen können hierin enthalten sein. Falls Sie ein nicht beabsichtigter Empfänger dieser Nachricht sind, sind das Kopieren, Verteilen und/oder das Aufnehmen aus dem Inhalt resultierender Handlungen untersagt. Haben Sie diese Nachricht fehlerhaft und/oder unvollständig erhalten, benachrichtigen Sie uns bitte umgehend unter unseren oben genannten Kontaktmöglichkeiten.
This message is confidential and intended solely for the person or organization to which it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action on reliance on it. If you have received this transmission in error, please notify us immediately by e-mail at the above address.
13 years, 8 months
Ruleflow "stalling" in stateless session - no events, workitems, etc
by drdaveg
I apologize if this is covered elsewhere, but I am not sure of the keywords
to search that would not return 1000 posts.
I have ruleflow running from a rule that starts it in a
StatelessKnowledgeSession. I am doing this to avoid inferencing, which is
present in the stateful version of this application. I am starting the
ruleflow from a rule with no ruleflow-group.
The ruleflow seems to run until it executes a rule in the first rule
RuleflowGroup node. The subsequent node, included for debugging, just
displays a message to the console and is never reached. There are no
parameters to the ruleflow, no events in the ruleflow, no workitems (as this
is simply a ruleflow) so I am wondering how processing has stalled before a
node with no conditions for entry.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Ruleflow-stalling-in-...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 8 months
drools flow - why after reloading some process previously completed workItems gets executed once again?
by gs76pl
hi,
i've a simple drools flow process with one workItem (its execute method
simply prints some text) and one human task. I'm using
drools-persistence-jpa to save my process status and load it when
process/server crashes.
What i've noticed is that:
1. after starting process my processinfo table gets updated with a new
process status (P1)
2. my workItem (W1) runs correctly and prints a text
3. a human task gets created
----- when i stop my server at this point and restart my server executing
below steps
1. load the session using
JPAKnowledgeService.loadStatefulKnowledgeSession(myPreviousSessionId,....)
2. start the process
At this point previously completed workItem (W1) gets executed once again
and the same human task gets created !!
I thought that perhaps the issue is with my transactionManager not
committing steps but since i'm using local transaction (commit happens after
any process step) its very unlikely.
Is it a bug that the same workItem gets executed or is it intentional and
it's up to the developer to check somewhere else whether specific step has
been already finished or not..?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-why-after...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 8 months
Drools Guvnor - Websphere 7
by smileychappy
I'm trying to install and run Guvnor on Websphere 7.
When I try starting the app, I get the following exception
[4/5/11 11:02:26:793 EDT] 00000085 webapp E
com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E:
Exception caught while initializing context: {0}
org.jboss.seam.InstantiationException:
Could not instantiate Seam component: repositoryConfiguration
at org.jboss.seam.Component.newInstance(Component.java:2066)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at
org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
at org.jboss.seam.init.Initialization.init(Initialization.java:727)
at
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1681)
at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:374)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299)
at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1315)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:623)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1266)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4599)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4687)
at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1271)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2043)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:653)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:615)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1177)
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 sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)
at
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
at
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
at
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at
com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
at
com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251)
at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:239)
at
com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:564)
at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown
Source)
at org.apache.struts.action.RequestProcessor.process(Unknown Source)
at org.apache.struts.action.ActionServlet.process(Unknown Source)
at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
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:1655)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341)
at org.apache.struts.action.RequestProcessor.doForward(Unknown Source)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown Source)
at org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown
Source)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown
Source)
at
com.ibm.isclite.container.controller.InformationController.processForwardConfig(InformationController.java:217)
at org.apache.struts.action.RequestProcessor.process(Unknown Source)
at org.apache.struts.action.ActionServlet.process(Unknown Source)
at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
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:1655)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
at
com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistence(WSCUrlFilter.java:927)
at
com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:494)
at
com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:315)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
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.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
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.RuntimeException: exception invoking: create
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:148)
at org.jboss.seam.Component.callComponentMethod(Component.java:2171)
at org.jboss.seam.Component.callCreateMethod(Component.java:2094)
at org.jboss.seam.Component.newInstance(Component.java:2054)
... 104 more
Caused by: java.lang.reflect.InvocationTargetException
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 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.RepositoryStartupService_$$_javassist_1.create(RepositoryStartupService_$$_javassist_1.java)
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 org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)
... 107 more
Caused by: java.lang.NoSuchMethodError:
javax/jcr/Repository.login(Ljavax/jcr/Credentials;)Ljavax/jcr/Session;
at
org.drools.guvnor.server.repository.RepositoryStartupService.newSession(RepositoryStartupService.java:151)
at
org.drools.guvnor.server.repository.RepositoryStartupService.create(RepositoryStartupService.java:72)
... 128 more
Am I missing some libraries or something in the process. Please let me know.
Thanks!
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Guvnor-Websphe...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 8 months
[Drools Flow] Stop a timer event
by JAMAL Moundir (EXT)
Hello,
I'm using Drools Flow 5, I have N Message events waiting for a signal to be started, I want to launch a Timer in the beginning of my WorkFlow, if one of the event is received, then I want to stop the Timer and execute my workflow, else I want to execute another branch of my workflow.
For example :
1- Start
- Launch the Timer of 30s
- Wait for a Message (external event)
2- Case 1 : External event received before 30s
- Execute SubProcess 1 and stop the Timer
Case 2 : Timer reached 30s
- Execute SubProecss 2 and ignore the external event
How can I stop the Timer when the case 1 is verified ? Can I do such as thing with Drools Flow ?
In my current implementation even when the case 1 is verified, after the 30s the subProcess2 is also executed !
Did someone implement such us thing
Thanks,
Regards
*************************************************************************
This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or
falsified.
************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes
par le secret professionnel.
Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************
13 years, 8 months
Manuel's Analysis of JBRULES-2887 (NPE in AccumulateNode.java:967)
by Wolfgang Laun
Thanks a lot, and I've added your analysis as a comment to JBRULES-2887.
Wolfgang
2011/4/3 Manuel Ortiz <manuel.ortizramos(a)gmail.com>
> Hi Wolfgang:
>
> I write to you concerning JIRA
> https://issues.jboss.org/browse/JBRULES-2887, which the SampleAlarmRules
> scenario which was attached to this discussion was added in.
>
> I've executed several times the SampleAlarmRules scenario and found that
> the problem in that scenario is the existence of a JoinNode (Node 18) which
> feeds two nodes, a JoinNode (Node 20) and an AccumlateNode (Node 25, the one
> in which NPE occurs). I've seen that the child tuples of a join node are
> interconnected via pointers and that those connections must be updated every
> time a parent tuple of the join node is modified, via reAddLeft and
> reAddRight tuple methods. When a JoinNode feeds two or more nodes, the child
> tuples are interconnected in a ordered way that mixes tuples with different
> sinks.
>
> In the SampleAlarmRules scenario, when JoinNode18 is right modified, the
> CompositeLeftTupleSinkAdapter processes several child tuples, but only the
> last one is returned and reAddLeft'ed, hence breaking the child tuple
> relations which it seems necessary to keep rete coherence. After this right
> modify, the next left modify fails because a child tuple related to one node
> of the composite sink is used to check the next operation to do in another
> sink node different from the first one. This leads to a chain of incorrect
> assertions which ends in the AccumulateNode NPE.
>
> I've rewriten my rules in order to JoinNode18 feeds only AccumulateNode25
> thus avoiding the NPE and returning to my user role. However I am not sure
> if any CompositeSink starting at a JoinNode will have this or other problems
> when being left or right modified. I hope this information helps to solve
> this problem.
>
> Best regards,
>
> Manuel Ortiz.
>
>
> 2011/3/31 Wolfgang Laun <wolfgang.laun(a)gmail.com>
>
>>
>>
>> 2011/3/31 Manuel Ortiz <manuel.ortizramos(a)gmail.com>
>>
>>> Hi Wofgang:
>>>
>>> Thank youvery much for your response. I was replaying to Mauricio when
>>> your email has arrived. I hope the test case is useful.
>>>
>>>
>> Thanks. Files are attached to the JIRA and JIRA is now at "critical".
>> -W
>>
>>
>>> Best regards,
>>>
>>> Manuel Ortiz.
>>>
>>>
>>> 2011/3/31 Wolfgang Laun <wolfgang.laun(a)gmail.com>
>>>
>>>> Manuel,
>>>>
>>>> I have reported this (or a very similar) problem
>>>> https://issues.jboss.org/browse/JBRULES-2887 with a small example to
>>>> reproduce.
>>>>
>>>> The stack trace is not identical, so please try to reproduce this with a
>>>> small test case; it is bound to happen with a rule (Test Negativo Alarma
>>>> Acceso Portal Ubicacion UM) that modifies some fact that is used in an
>>>> "accumulate" phrase, (If this pattern is different from the one I gave, I'll
>>>> raise the issue priority to "critical".)
>>>>
>>>> Cheers
>>>> Wolfgang
>>>>
>>>>
>>>> 2011/3/30 Manuel Ortiz <manuel.ortizramos(a)gmail.com>
>>>>
>>>>> Hello all!
>>>>>
>>>>> I am new in Drools but day by day, test by test, I think I get a bit
>>>>> more knowledge of how the rule engine works from user point of view. I've
>>>>> been adding rules to an alarm system, increasing the complexity and
>>>>> functionality in several steps. Unfortunately in the last step I found the
>>>>> following NullPointerException inside the rule engine...
>>>>>
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.drools.reteoo.AccumulateNode.getFirstMatch(AccumulateNode.java:967)
>>>>> at
>>>>> org.drools.reteoo.AccumulateNode.modifyLeftTuple(AccumulateNode.java:329)
>>>>> at
>>>>> org.drools.reteoo.SingleLeftTupleSinkAdapter.propagateModifyChildLeftTuple(SingleLeftTupleSinkAdapter.java:239)
>>>>> at
>>>>> org.drools.reteoo.AccumulateNode.evaluateResultConstraints(AccumulateNode.java:640)
>>>>> at
>>>>> org.drools.reteoo.AccumulateNode.assertObject(AccumulateNode.java:270)
>>>>> at org.drools.reteoo.BetaNode.modifyObject(BetaNode.java:312)
>>>>> at
>>>>> org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateModifyObject(CompositeObjectSinkAdapter.java:460)
>>>>> at
>>>>> org.drools.reteoo.CompositeObjectSinkAdapter.propagateModifyObject(CompositeObjectSinkAdapter.java:428)
>>>>> at org.drools.reteoo.AlphaNode.modifyObject(AlphaNode.java:160)
>>>>> at
>>>>> org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateModifyObject(CompositeObjectSinkAdapter.java:460)
>>>>> at
>>>>> org.drools.reteoo.CompositeObjectSinkAdapter.propagateModifyObject(CompositeObjectSinkAdapter.java:428)
>>>>> at
>>>>> org.drools.reteoo.ObjectTypeNode.modifyObject(ObjectTypeNode.java:263)
>>>>> at
>>>>> org.drools.reteoo.EntryPointNode.modifyObject(EntryPointNode.java:172)
>>>>> at
>>>>> org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1442)
>>>>> at
>>>>> org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1349)
>>>>> at
>>>>> org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:183)
>>>>> at
>>>>> org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:196)
>>>>> at
>>>>> es.simcasva.alarmas.rules.Rule_Test_Negativo_Alarma_Acceso_Portal_Ubicacion_UM_0.defaultConsequence(Rule_Test_Negativo_Alarma_Acceso_Portal_Ubicacion_UM_0.java:18)
>>>>> at
>>>>> es.simcasva.alarmas.rules.Rule_Test_Negativo_Alarma_Acceso_Portal_Ubicacion_UM_0DefaultConsequenceInvoker.evaluate(Rule_Test_Negativo_Alarma_Acceso_Portal_Ubicacion_UM_0DefaultConsequenceInvoker.java:44)
>>>>> at
>>>>> org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:917)
>>>>> at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:856)
>>>>> at
>>>>> org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1071)
>>>>> at
>>>>> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:785)
>>>>> at
>>>>> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:751)
>>>>> at
>>>>> org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:218)
>>>>>
>>>>> I've been trying to find the problem, and found a strange interaction
>>>>> between three rules that makes the null pointer to appear. The alarm system
>>>>> has many rules now and it is difficult to simplify the scenario, so I just
>>>>> would like to know what is the funcion of AccumulateNode object in order to
>>>>> have an idea of the NullPointerException possible cause.
>>>>>
>>>>> Can anyone help me?
>>>>>
>>>>> Thank you in advance for your time.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Manuel Ortiz.
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> rules-users mailing list
>>>>> rules-users(a)lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> rules-users mailing list
>>>> rules-users(a)lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users(a)lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
13 years, 8 months
KnowledgeAgent Issue
by Steven Williams
Hi all,
I am trying to use a Knowledge Agent in 5.1.1 with a change set with a few
different packages and resource types in it, and I am running into a problem
where it is not adding all the packages. Looking at the code I can see that
KnowledegeAgentImpl.createPackageFromResource has the following code when it
loads a resource:
if (kbuilder.getKnowledgePackages().iterator().hasNext()) {
return (KnowledgePackageImp)
kbuilder.getKnowledgePackages().iterator().next();
}
and KnowledgeBuilderImpl.getKnowledgePackages does the following:
Package[] pkgs = pkgBuilder.getPackages();
List<KnowledgePackage> list = new ArrayList<KnowledgePackage>( pkgs.length
);
and PackageBuilder.getPackages does the following:
for ( PackageRegistry pkgRegistry : this.pkgRegistryMap.values() ) {
Package pkg = pkgRegistry.getPackage();
// add package to array
}
pkgRegistryMap is implemented as a HashMap however so the order the packages
are returned in is not guaranteed. I seem to be hitting this problem.
This is a hard one to create a unit test for so I wanted to check that my
analysis is correct before raising a bug. Perhaps using a LinkedHashMap or
similar would fix it?
thanks
Steve
13 years, 8 months