How can we make the ‘over window:time’ parameter being configurable?
by moonbeam
How can we make the ‘over window:time’ parameter being configurable?
Something similar to the following rule (that does not compile at all). See
the $windowTime variable.
declare TemperatureThreshold
windowTime : String = "30s"
max : long = 70
end
declare SensorReading
@role( event )
temperature : String = "40"
end
rule "Sound the alarm in case temperature rises above threshold"
when
TemperatureThreshold( $max : max, $windowTime : windowTime )
Number( doubleValue > $max ) from accumulate(
SensorReading( $temp : temperature ) over window:time( $windowTime ),
average( $temp ) )
then
// sound the alarm
end
--
View this message in context: http://drools.46999.n3.nabble.com/How-can-we-make-the-over-window-time-pa...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 5 months
Re: [rules-users] Drools Workbench - VFS Repository Clustering - Workbench Assets Not synched
by Zahid Ahmed
Hi,
Getting following error in console of server B when making any change in Workbench server A
14:44:19,780 ERROR [org.apache.helix.messaging.handling.HelixTask] (pool-18-thread-21) Exception while executing a message. java.lang.NullPointerException msgId: 939154ed-eedb-493f-a803-83883764276a type: USER_DEFINE_MSG: java.lang.NullPointerException
at org.uberfire.metadata.io.IOServiceIndexedImpl.setupWatchService(IOServiceIndexedImpl.java:168) [uberfire-metadata-commons-io-0.3.1.Final.jar:0.3.1.Final]
at org.uberfire.metadata.io.IOServiceIndexedImpl.getFileSystem(IOServiceIndexedImpl.java:126) [uberfire-metadata-commons-io-0.3.1.Final.jar:0.3.1.Final]
at org.uberfire.io.impl.cluster.IOServiceClusterImpl$SyncFileSystemMessageHandler.handleMessage(IOServiceClusterImpl.java:919) [uberfire-io-0.3.1.Final.jar:0.3.1.Final]
at org.uberfire.io.impl.cluster.helix.ClusterServiceHelix$MessageHandlerResolverWrapper$1$1.handleMessage(ClusterServiceHelix.java:289) [uberfire-io-0.3.1.Final.jar:0.3.1.Final]
at org.apache.helix.messaging.handling.HelixTask.call(HelixTask.java:93) [helix-core-0.6.2-incubating.jar:0.6.2-incubating]
at org.apache.helix.messaging.handling.HelixTask.call(HelixTask.java:50) [helix-core-0.6.2-incubating.jar:0.6.2-incubating]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
14:44:20,506 ERROR [org.apache.helix.messaging.handling.HelixTask] (pool-18-thread-21) Message execution failed. msgId: 939154ed-eedb-493f-a803-83883764276a, errorMsg: null
14:44:20,985 INFO [org.apache.helix.messaging.handling.HelixTaskExecutor] (pool-18-thread-21) message finished: 939154ed-eedb-493f-a803-83883764276a, took 1260
14:44:20,995 INFO [org.apache.helix.manager.zk.CallbackHandler] (ZkClient-EventThread-117-localhost:2199) 117 START:INVOKE /brms-cluster/INSTANCES/nodeTwo_22/MESSAGES listener:org.apache.helix.messaging.handling.HelixTaskExecutor
Regards,
Zahid Ahmed
10 years, 5 months
Drools6 VFS Clustering what to mention in VFS-REPO
by Zahid Ahmed
Hi,
I need to know, what the vfs-repo in below command refers to ? Is it referring to .niogit
helix-admin.bat --zkSvr localhost:2199 --addResource kie-cluster vfs-repo 1 LeaderStandby AUTO_REBALANCE
regards,
Zahid
10 years, 5 months
Drools-PermissionDeniedException
by sravan k
Hi All ,
Does any one have idea on this below error ?
org.drools.task.service.PermissionDeniedException: User '[User:'XYZ']' was unable to execution operation 'Complete' on task id 3394226 due to no 'current status' matchines
we are facing this un-known exception and it is impacting our work very badly :( . Please give me some idea to resolve this error .
---Regards,Sravan.
10 years, 5 months
Memory leak when deploying to Maven repository?
by Sandjaja, Dominik
Hello everybody,
I use Drools to create rules from an external source and create an artifact from those rule strings, putting it into a local repository.
A minimalistic working example can be found at https://github.com/dadadom/MavenMemoryLeakMinimalExample
The code, taken from that example, is basically like this:
ReleaseId releaseId = new ReleaseIdImpl("some:releaseid:1.0.0-SNAPSHOT");
String rules = "rule \"testrule\ ... ";
KieServices kServices = KieServices.Factory.get();
KieFileSystem kfs = kServices.newKieFileSystem();
kfs.write("src/main/resources/someBase/testrule", rules);
kfs.generateAndWritePomXML(releaseId);
String kmoduleXmlString = "<kmodule ... </kmodule>";
kfs.writeKModuleXML(kmoduleXmlString.getBytes());
KieModule kieModule = kServices.newKieBuilder(kfs).getKieModule();
try {
File pomFile = new File(System.getProperty("java.io.tmpdir"), "pom.xml");
try (FileOutputStream fos = new FileOutputStream(pomFile)) {
fos.write(KieBuilderImpl.generatePomXml(releaseId).getBytes()); fos.flush();
} catch (IOException e) {
e.printStackTrace();
}
final MavenRepository mavenRepository = MavenRepository.getMavenRepository();
mavenRepository.deployArtifact(releaseId, (InternalKieModule) kieModule, pomFile);
When I call this method in a ServletContextListener in a Tomcat Server (version 7 or 8) and undeploy the application afterwards, I get a memory leak.
Tomcat tells me that the application has a memory leak:
The following web applications were stopped (reloaded, undeployed), but their
classes from previous runs are still loaded in memory, thus causing a memory
leak (use a profiler to confirm):
/mvntest
Looking at the memory dump with e.g. JProfiler, I can trace the dangling instances back to an object
static INSTANCE of class org.drools.compiler.kie.builder.impl.KieRepositoryImpl
So it seems like there is something which I am either missing or which is a bug. I cannot find any .close() or .release() method or something alike on any of the involved objects ...
If anyone could give me a hint how to solve this problem, I'd be happy not to litter my memory no more :)
Regards and thanks
Dominik
...........................................................................
mit freundlichen Gr??en / kind regards
Dominik Sandjaja
Fon: +49 (0) 203 60878 183
Fax: +49 (0) 203 60878 222
e-mail: dominik.sandjaja(a)it-motive.de
it-motive AG
Zum Walkm?ller 6
47269 Duisburg
info(a)it-motive.de
http://www.it-motive.de
..............................................................................
Vorsitzender des Aufsichtsrats: Dr.-Ing. J?rgen Sturm
Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim Klose
HRB 9207, Amtsgericht Duisburg
10 years, 5 months
drools leaving a backgroud thread
by Aliza Itzkowitz (Silver) (aitzkowi)
Hi,
I have a Java servlet running on Tomcat7 which runs multiple drools knowledge bases with a session associated to each one.
I am using drools version 6.1.0.Beta3
When tomcat shuts-down I am seeing this message in the log:
Jun 10, 2014 6:39:36 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/MyRulesServlet-1.0-SNAPSHOT] created a ThreadLocal with key of type [org.drools.core.common.UpgradableReentrantReadWriteLock$1] (value [org.drools.core.common.UpgradableReentrantReadWriteLock$1@5c0bf171<mailto:1@5c0bf171>]) and a value of type [org.drools.core.common.UpgradableReentrantReadWriteLock.LockRequestCounter] (value [org.drools.core.common.UpgradableReentrantReadWriteLock$LockRequestCounter@141860ed<mailto:LockRequestCounter@141860ed>]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
It seems I am not performing a proper cleanup of resources on shutdown.
I am calling kSession.dispose() for all the sessions I have, but apparently this is not enough.
What else do I need to do to get rid of this background thread?
Thanks,
Aliza
10 years, 5 months
Drools Workbench - VFS Repository Clustering - Workbench Assets Not synched
by Zahid Ahmed
Hi,
I am deploying Drools Workbench with VFS Clustering in place. I have followed the steps defined in Drools-6 documentation in section "VFS-CLUSTERING", and the following link. But my repositories are not synching
http://mswiderski.blogspot.com.br/2013/06/clustering-in-jbpm-v6.html
but getting following Zookeeper exception.
NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/df7cda63-979b-47b2-ac9a-f2b218cb188
Attachment List
1. Complete exception trace of zookeeper is pasted at the end.
2. Server logs of both workbench servers is attached in the email.
3. Server un-synched assets screen shot attached.
Problem
BPMN process created in Workbench-A is not getting Synched with Workbench-B. Following are the screen shots for the difference in project assets. Images attached in "ServerAssets.png"
DESIGN
[cid:image002.png@01CF84B6.3C23B0C0]
Helix Commands Startup and Cluster Setup
1. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --addCluster jbpm-cluster
2. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --addNode jbpm-cluster nodeOne:11
3. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --addNode jbpm-cluster nodeTwo:22
4. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --addResource jbpm-cluster vfs-repo 1 LeaderStandby AUTO_REBALANCE
5. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --rebalance jbpm-cluster vfs-repo 2
6. helix-core-0.6.3\bin>run-helix-controller.bat --zkSvr localhost:2199 --cluster jbpm-cluster 2>&1 > /tmp/controller.log &
ZooKeeper Setup
Changes done only in zoo.conf
1. dataDir = /zooDir/zookeeper (Not sure where this directory gets created as I could not find it in $zookeeper_home/)
2. clientPort = 2199
Work-Bench A Configuration: Standalone.xml
<property name="org.guvnor.m2repo.dir" value="D:\\Servers\\M2_REPO"/>
<property name="org.uberfire.nio.git.dir" value="D:\Servers\Drools-6-Deployment\repo"/>
<property name="jboss.node.name" value="nodeOne"/>
<property name="org.uberfire.metadata.index.dir" value="D:\Servers\Drools-6-Deployment\repo"/>
<property name="org.uberfire.cluster.id" value="jbpm-cluster"/>
<property name="org.uberfire.cluster.zk" value="localhost:2199"/>
<property name="org.uberfire.cluster.local.id" value="nodeOne_11"/>
<property name="org.uberfire.cluster.vfs.lock" value="vfs-repo"/>
<property name="org.uberfire.cluster.autostart" value="false"/>
Work-Bench B Configuration: Standalone.xml
<property name="org.guvnor.m2repo.dir" value="D:\\Servers\\M2_REPO"/>
<property name="org.uberfire.nio.git.dir" value="D:\Servers\Drools-6-Deployment\repoB"/>
<property name="org.kie.nio.git.deamon.port" value="9518"/>
<property name="org.uberfire.nio.git.daemon.port" value="9518"/>
<property name="org.uberfire.nio.git.ssh.port" value="8002"/>
<property name="jboss.node.name" value="nodeTwo"/>
<property name="org.uberfire.metadata.index.dir" value="D:\Servers\Drools-6-Deployment\repoB"/>
<property name="org.uberfire.cluster.id" value="jbpm-cluster"/>
<property name="org.uberfire.cluster.zk" value="localhost:2199"/>
<property name="org.uberfire.cluster.local.id" value="nodeTwo_22"/>
<property name="org.uberfire.cluster.vfs.lock" value="vfs-repo"/>
<property name="org.uberfire.cluster.autostart" value="false"/>
Zookeeper Exception Trace:
2014-06-10 13:58:32,572 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250008 type:setData cxid:0x253 zxid:0x24b txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/56d2d3ac-126e-4ed2-aeaf-4a4
bfd91d80f Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/56d2d3ac-126e-4ed2-aeaf-4a4bfd91d80f
2014-06-10 13:59:03,859 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x38c zxid:0x267 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/dea6167c-ca2c-4f5d-85aa-5fc
65703e5be Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/dea6167c-ca2c-4f5d-85aa-5fc65703e5be
2014-06-10 13:59:06,911 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x3ed zxid:0x281 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/b58e5ff9-235a-4a12-b159-ee1
c9fbc01cc Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/b58e5ff9-235a-4a12-b159-ee1c9fbc01cc
2014-06-10 13:59:09,618 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x44c zxid:0x29b txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/71ba364e-21c1-4ee2-8383-4cb
5d15d339e Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/71ba364e-21c1-4ee2-8383-4cb5d15d339e
2014-06-10 13:59:23,720 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x4ab zxid:0x2b5 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/7d5f0c9c-ee69-4061-94e6-12a
cf045a77b Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/7d5f0c9c-ee69-4061-94e6-12acf045a77b
2014-06-10 13:59:25,252 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x4c2 zxid:0x2b9 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/cc24bd9a-5297-4bc1-85f5-31f
6639de8e6 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/cc24bd9a-5297-4bc1-85f5-31f6639de8e6
2014-06-10 13:59:25,982 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x4d9 zxid:0x2bd txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/337e84c8-06e9-4023-87c5-b48
26ec5ddb1 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/337e84c8-06e9-4023-87c5-b4826ec5ddb1
2014-06-10 13:59:40,762 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x53c zxid:0x2d7 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/1eeac27e-5e48-43b9-bba5-98b
ce0b89015 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/1eeac27e-5e48-43b9-bba5-98bce0b89015
2014-06-10 13:59:41,775 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x59b zxid:0x2f1 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/7611f66a-993d-4652-8b07-011
e5bdcea60 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/7611f66a-993d-4652-8b07-011e5bdcea60
2014-06-10 13:59:43,681 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x5d4 zxid:0x301 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/55991bef-61cb-4011-a8f1-f28
d47c67c53 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/55991bef-61cb-4011-a8f1-f28d47c67c53
2014-06-10 14:00:04,689 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250008 type:setData cxid:0x332 zxid:0x311 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/65d0518e-1853-4373-a455-02d
1699930cc Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/65d0518e-1853-4373-a455-02d1699930cc
2014-06-10 14:00:06,542 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250008 type:setData cxid:0x391 zxid:0x32b txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/87131701-cf41-4c2f-8de4-54c
599da0f03 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/87131701-cf41-4c2f-8de4-54c599da0f03
2014-06-10 14:17:39,329 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250008 type:setData cxid:0x401 zxid:0x367 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/aeb3757b-4560-4dca-b78c-6be
24eb514dc Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/aeb3757b-4560-4dca-b78c-6be24eb514dc
Regards,
Zahid Ahmed
10 years, 5 months
Drools Workbench - VFS Clustering - Rpositories/Assets not synched
by Zahid Ahmed
Hi,
I am deploying Drools Workbench with VFS Clustering in place. I have followed the steps defined in Drools-6 documentation in section "VFS-CLUSTERING", and the following link. But my repositories are not synching
http://mswiderski.blogspot.com.br/2013/06/clustering-in-jbpm-v6.html
but getting following Zookeeper exception.
NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/df7cda63-979b-47b2-ac9a-f2b218cb188
Attachment List
1. Complete exception trace of zookeeper is pasted at the end.
2. Server logs of both workbench servers is attached in the email.
3. Server un-synched assets screen shot attached.
Problem
BPMN process created in Workbench-A is not getting Synched with Workbench-B. Following are the screen shots for the difference in project assets. Images attached in "ServerAssets.png"
DESIGN
[cid:image002.png@01CF84B6.3C23B0C0]
Helix Commands Startup and Cluster Setup
1. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --addCluster jbpm-cluster
2. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --addNode jbpm-cluster nodeOne:11
3. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --addNode jbpm-cluster nodeTwo:22
4. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --addResource jbpm-cluster vfs-repo 1 LeaderStandby AUTO_REBALANCE
5. helix-core-0.6.3\bin>helix-admin.bat --zkSvr localhost:2199 --rebalance jbpm-cluster vfs-repo 2
6. helix-core-0.6.3\bin>run-helix-controller.bat --zkSvr localhost:2199 --cluster jbpm-cluster 2>&1 > /tmp/controller.log &
ZooKeeper Setup
Changes done only in zoo.conf
1. dataDir = /zooDir/zookeeper (Not sure where this directory gets created as I could not find it in $zookeeper_home/)
2. clientPort = 2199
Work-Bench A Configuration: Standalone.xml
<property name="org.guvnor.m2repo.dir" value="D:\\Servers\\M2_REPO"/>
<property name="org.uberfire.nio.git.dir" value="D:\Servers\Drools-6-Deployment\repo"/>
<property name="jboss.node.name" value="nodeOne"/>
<property name="org.uberfire.metadata.index.dir" value="D:\Servers\Drools-6-Deployment\repo"/>
<property name="org.uberfire.cluster.id" value="jbpm-cluster"/>
<property name="org.uberfire.cluster.zk" value="localhost:2199"/>
<property name="org.uberfire.cluster.local.id" value="nodeOne_11"/>
<property name="org.uberfire.cluster.vfs.lock" value="vfs-repo"/>
<property name="org.uberfire.cluster.autostart" value="false"/>
Work-Bench B Configuration: Standalone.xml
<property name="org.guvnor.m2repo.dir" value="D:\\Servers\\M2_REPO"/>
<property name="org.uberfire.nio.git.dir" value="D:\Servers\Drools-6-Deployment\repoB"/>
<property name="org.kie.nio.git.deamon.port" value="9518"/>
<property name="org.uberfire.nio.git.daemon.port" value="9518"/>
<property name="org.uberfire.nio.git.ssh.port" value="8002"/>
<property name="jboss.node.name" value="nodeTwo"/>
<property name="org.uberfire.metadata.index.dir" value="D:\Servers\Drools-6-Deployment\repoB"/>
<property name="org.uberfire.cluster.id" value="jbpm-cluster"/>
<property name="org.uberfire.cluster.zk" value="localhost:2199"/>
<property name="org.uberfire.cluster.local.id" value="nodeTwo_22"/>
<property name="org.uberfire.cluster.vfs.lock" value="vfs-repo"/>
<property name="org.uberfire.cluster.autostart" value="false"/>
Zookeeper Exception Trace:
2014-06-10 13:58:32,572 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250008 type:setData cxid:0x253 zxid:0x24b txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/56d2d3ac-126e-4ed2-aeaf-4a4
bfd91d80f Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/56d2d3ac-126e-4ed2-aeaf-4a4bfd91d80f
2014-06-10 13:59:03,859 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x38c zxid:0x267 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/dea6167c-ca2c-4f5d-85aa-5fc
65703e5be Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/dea6167c-ca2c-4f5d-85aa-5fc65703e5be
2014-06-10 13:59:06,911 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x3ed zxid:0x281 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/b58e5ff9-235a-4a12-b159-ee1
c9fbc01cc Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/b58e5ff9-235a-4a12-b159-ee1c9fbc01cc
2014-06-10 13:59:09,618 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x44c zxid:0x29b txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/71ba364e-21c1-4ee2-8383-4cb
5d15d339e Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/71ba364e-21c1-4ee2-8383-4cb5d15d339e
2014-06-10 13:59:23,720 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x4ab zxid:0x2b5 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/7d5f0c9c-ee69-4061-94e6-12a
cf045a77b Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/7d5f0c9c-ee69-4061-94e6-12acf045a77b
2014-06-10 13:59:25,252 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x4c2 zxid:0x2b9 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/cc24bd9a-5297-4bc1-85f5-31f
6639de8e6 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/cc24bd9a-5297-4bc1-85f5-31f6639de8e6
2014-06-10 13:59:25,982 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x4d9 zxid:0x2bd txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/337e84c8-06e9-4023-87c5-b48
26ec5ddb1 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/337e84c8-06e9-4023-87c5-b4826ec5ddb1
2014-06-10 13:59:40,762 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x53c zxid:0x2d7 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/1eeac27e-5e48-43b9-bba5-98b
ce0b89015 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/1eeac27e-5e48-43b9-bba5-98bce0b89015
2014-06-10 13:59:41,775 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x59b zxid:0x2f1 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/7611f66a-993d-4652-8b07-011
e5bdcea60 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/7611f66a-993d-4652-8b07-011e5bdcea60
2014-06-10 13:59:43,681 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250007 type:setData cxid:0x5d4 zxid:0x301 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/55991bef-61cb-4011-a8f1-f28
d47c67c53 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeTwo_22/MESSAGES/55991bef-61cb-4011-a8f1-f28d47c67c53
2014-06-10 14:00:04,689 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250008 type:setData cxid:0x332 zxid:0x311 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/65d0518e-1853-4373-a455-02d
1699930cc Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/65d0518e-1853-4373-a455-02d1699930cc
2014-06-10 14:00:06,542 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250008 type:setData cxid:0x391 zxid:0x32b txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/87131701-cf41-4c2f-8de4-54c
599da0f03 Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/87131701-cf41-4c2f-8de4-54c599da0f03
2014-06-10 14:17:39,329 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x146850ce9250008 type:setData cxid:0x401 zxid:0x367 txntype:-1 reqpath:n/a Error Path:/jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/aeb3757b-4560-4dca-b78c-6be
24eb514dc Error:KeeperErrorCode = NoNode for /jbpm-cluster/INSTANCES/nodeOne_11/MESSAGES/aeb3757b-4560-4dca-b78c-6be24eb514dc
Regards,
Zahid Ahmed
10 years, 5 months
Are there second-rate fact types?
by Wolfgang Laun
Consider:
class Foo { /*...*/ }
rule checkFoo
when
Foo( noSuchField > 0 )
then ... end
DRL compilation reports an error (Error: unable to resolve method ...)
and identifies rule, line and column, which is fine.
Now let's look at:
import java.util.ArrayList;
rule checkArrayList
when
ArrayList( noSuchField > 0 )
then ... end
The same DRL compiler (checked with 5.5.0 and 6.0.0) accepts this, and
there is a nasty exception thrown at runtime. This is inconvenient,
since the exception can be thrown by any code inserting an ArrayList
object, and the faulty rule isn't identified.
Why are certain classes second-rate?
-W
10 years, 5 months