Re: [rules-users] Rules don't execute using MVEL syntax in RHS - Possible Bug

2014-05-15 Thread jlprat
Hi Mario,

is there any progress? Could you find anything?

Best,
Josep



--
View this message in context: 
http://drools.46999.n3.nabble.com/Rules-don-t-execute-using-MVEL-syntax-in-LHS-Possible-Bug-tp4029494p4029581.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] Workbench and GIT Repo High Availability

2014-05-15 Thread Alexandre Porcelli
Hello Zahid,

Comments inline...

On May 13, 2014, at 3:56 AM, Zahid Ahmed zahid.ah...@emirates.com wrote:

 Hi,
  
 We are in a process of setting up a centralized drools6 Workbench in our 
 organization. This way we can keep our assets and artefacts in a central 
 location. We will make this central Workbench clustered for high 
 availability. I have a few queries in regard to clustering the Workbench.
  
 Problem Statement
 As workbench is using GIT, this means we need to have an enterprise level GIT 
 repository where all the assets get stored for Workbench. As GIT is 
 file-system based , it in turn, calls for a clustered GIT server within the 
 organization. Our organization will prefer to have a private GIT repository 
 hosted within office network which is highly available and wants to avoid any 
 cost for GIT repository setup.

Workbench doesn't force you to have any extra cost with GIT, as it comes with 
it and you don't need an external (outside your network) provider as Workbench 
has it's own GIT infra.

  
 1.   I want to know how to make Workbench highly available , with GIT 
 also Highly available. Is chapter# 18 VFS CLUSTERING is the answer to high 
 available GIT and WORKBENCH both ? or is there any other way to make GIT 
 repository highly available.

The Workbench cluster is a Highly Available type of cluster, all you need is 
follow the instructions and you'll have what you need. To be even more clear: 
as GIT is embedded in Workbench solution, once you setup a Workbench cluster 
you get for free a GIT HA setup.
But if you're looking for a proxy based solution (Workbench accessing your own 
external GIT cluster using whatever solution you have) - this we don't support, 
Workbench will always have it's own GIT infra embedded.

 2.   Will ZooKeeper and Helix be enough to make the clustered environment 
 for both Workbench with its GIT repo ?

Yes... ZK and Helix does the job! Be aware that you'd need to have a proper ZK 
setup (another cluster) in order to obtain a real HA cluster. Your final 
solution will be probably end up with 3 ZKs in a cluster + the Workbench 
cluster (both clusters can be setup in the same nodes if you want).


Regards,
--- 
Alexandre Porcelli
Principal Software Engineer 
Red Hat Business Systems and Intelligence Group

  
 Regards, 
 Zahid Ahmed
  
  
  
 ___
 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] Startup KIE Workbench without network connection

2014-05-15 Thread Sandjaja, Dominik
Hello,

I try to setup KIE Workbench (6.1.0.BetaX) on Tomcat 7 on a Windows 2012 Server 
without connection to the internet.

When starting up, the KIE-WB does not start up. I get the following errors in 
localhost.log (cut for better readability):

Mai 15, 2014 5:08:18 PM org.apache.catalina.core.StandardContext listenerStart
Schwerwiegend: Exception sending context initialized event to listener instance 
of class org.jboss.weld.environment.servlet.Listener
org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:
[...]
Caused by: java.lang.RuntimeException: 
https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open 
git-upload-pack
[...]
Caused by: java.net.ConnectException: Connection time out: github.com

This happens because the initial demo repository is downloaded - I do not want 
and need those repositories!

I could work around this by copying the TOMCAT_HOME/bin/.niogit directory to 
that server and have it start up then.

BUT: IMHO it is an inconvenience, maybe even a bug, that an internet connection 
is needed to set up the Drools KIE Workbench. How are we supposed to tell our 
infrastructure team that we need an open connection to some website with code 
to setup an editing system for internal knowledge ...
Should I file a bug for that? Is there a way to deactivate the downloading of 
the initial demo repository? Could it somehow be delivered with the KIE-WB 
package?

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.sandj...@it-motive.de

it-motive AG
Zum Walkm?ller 6
47269 Duisburg
i...@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
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Startup KIE Workbench without network connection

2014-05-15 Thread Ioannis Christodoulou
Hello,
you probably need to set:
-Dorg.kie.demo=false and -Dorg.kie.example=false in your startup variables.

For example, using jboss, I have in standalone.conf file (used during jboss
startup)
JAVA_OPTS=$JAVA_OPTS -Dorg.kie.demo=false -Dorg.kie.example=false
This will disable the demo and the example sources from the workbench.


Ευχαριστώ πολύ,
   Ιωάννης Χριστοδούλου


On Thu, May 15, 2014 at 6:27 PM, Sandjaja, Dominik 
dominik.sandj...@it-motive.de wrote:

  Hello,



 I try to setup KIE Workbench (6.1.0.BetaX) on Tomcat 7 on a Windows 2012
 Server without connection to the internet.



 When starting up, the KIE-WB does not start up. I get the following errors
 in localhost.log (cut for better readability):



 Mai 15, 2014 5:08:18 PM org.apache.catalina.core.StandardContext
 listenerStart

 Schwerwiegend: Exception sending context initialized event to listener
 instance of class org.jboss.weld.environment.servlet.Listener

 org.jboss.weld.exceptions.DeploymentException: Exception List with 1
 exceptions:

 […]

 Caused by: java.lang.RuntimeException:
 https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open
 git-upload-pack

 […]

 Caused by: java.net.ConnectException: Connection time out: github.com



 This happens because the initial demo repository is downloaded – I do not
 want and need those repositories!



 I could work around this by copying the TOMCAT_HOME/bin/.niogit directory
 to that server and have it start up then.



 BUT: IMHO it is an inconvenience, maybe even a bug, that an internet
 connection is needed to set up the Drools KIE Workbench. How are we
 supposed to tell our infrastructure team that we need an open connection to
 “some website with code” to setup an editing system for internal knowledge …

 Should I file a bug for that? Is there a way to deactivate the downloading
 of the initial demo repository? Could it somehow be delivered with the
 KIE-WB package?



 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.sandj...@it-motive.de

 it-motive AG
 Zum Walkmüller 6
 47269 Duisburg
 i...@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

 ___
 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] Startup KIE Workbench without network connection

2014-05-15 Thread Michael Anstis
When the workbench starts it tries to download an example repository.

The documentation lists various system properties you can use to disable
this automatic download.


On 15 May 2014 16:27, Sandjaja, Dominik dominik.sandj...@it-motive.dewrote:

  Hello,



 I try to setup KIE Workbench (6.1.0.BetaX) on Tomcat 7 on a Windows 2012
 Server without connection to the internet.



 When starting up, the KIE-WB does not start up. I get the following errors
 in localhost.log (cut for better readability):



 Mai 15, 2014 5:08:18 PM org.apache.catalina.core.StandardContext
 listenerStart

 Schwerwiegend: Exception sending context initialized event to listener
 instance of class org.jboss.weld.environment.servlet.Listener

 org.jboss.weld.exceptions.DeploymentException: Exception List with 1
 exceptions:

 […]

 Caused by: java.lang.RuntimeException:
 https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open
 git-upload-pack

 […]

 Caused by: java.net.ConnectException: Connection time out: github.com



 This happens because the initial demo repository is downloaded – I do not
 want and need those repositories!



 I could work around this by copying the TOMCAT_HOME/bin/.niogit directory
 to that server and have it start up then.



 BUT: IMHO it is an inconvenience, maybe even a bug, that an internet
 connection is needed to set up the Drools KIE Workbench. How are we
 supposed to tell our infrastructure team that we need an open connection to
 “some website with code” to setup an editing system for internal knowledge …

 Should I file a bug for that? Is there a way to deactivate the downloading
 of the initial demo repository? Could it somehow be delivered with the
 KIE-WB package?



 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.sandj...@it-motive.de

 it-motive AG
 Zum Walkmüller 6
 47269 Duisburg
 i...@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

 ___
 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] Startup KIE Workbench without network connection

2014-05-15 Thread Sandjaja, Dominik
Hello,

many thanks for that information! I somehow never got that far down in the 
properties-page to notice.

Nevertheless I think that the startup should not fail completely, if the sample 
repositories cannot be downloaded. Shouldn’t a warning suffice?

Thank you!

Dominik

Von: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Ioannis 
Christodoulou
Gesendet: Donnerstag, 15. Mai 2014 17:40
An: Rules Users List
Betreff: Re: [rules-users] Startup KIE Workbench without network connection

Hello,
you probably need to set:
-Dorg.kie.demo=false and -Dorg.kie.example=false in your startup variables.

For example, using jboss, I have in standalone.conf file (used during jboss 
startup)
JAVA_OPTS=$JAVA_OPTS -Dorg.kie.demo=false -Dorg.kie.example=false
This will disable the demo and the example sources from the workbench.


Ευχαριστώ πολύ,
   Ιωάννης Χριστοδούλου

On Thu, May 15, 2014 at 6:27 PM, Sandjaja, Dominik 
dominik.sandj...@it-motive.demailto:dominik.sandj...@it-motive.de wrote:
Hello,

I try to setup KIE Workbench (6.1.0.BetaX) on Tomcat 7 on a Windows 2012 Server 
without connection to the internet.

When starting up, the KIE-WB does not start up. I get the following errors in 
localhost.log (cut for better readability):

Mai 15, 2014 5:08:18 PM org.apache.catalina.core.StandardContext listenerStart
Schwerwiegend: Exception sending context initialized event to listener instance 
of class org.jboss.weld.environment.servlet.Listener
org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:
[…]
Caused by: java.lang.RuntimeException: 
https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open 
git-upload-pack
[…]
Caused by: java.net.ConnectException: Connection time out: 
github.comhttp://github.com

This happens because the initial demo repository is downloaded – I do not want 
and need those repositories!

I could work around this by copying the TOMCAT_HOME/bin/.niogit directory to 
that server and have it start up then.

BUT: IMHO it is an inconvenience, maybe even a bug, that an internet connection 
is needed to set up the Drools KIE Workbench. How are we supposed to tell our 
infrastructure team that we need an open connection to “some website with code” 
to setup an editing system for internal knowledge …
Should I file a bug for that? Is there a way to deactivate the downloading of 
the initial demo repository? Could it somehow be delivered with the KIE-WB 
package?

Thanks
Dominik

…
mit freundlichen Grüßen / kind regards
Dominik Sandjaja
Fon: +49 (0) 203 60878 183tel:%2B49%20%280%29%20203%2060878%20183
Fax: +49 (0) 203 60878 222tel:%2B49%20%280%29%20203%2060878%20222
e-mail: dominik.sandj...@it-motive.demailto:dominik.sandj...@it-motive.de

it-motive AG
Zum Walkmüller 6
47269 Duisburg
i...@it-motive.demailto:i...@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

___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


…
mit freundlichen Grüßen / kind regards
Dominik Sandjaja
Fon: +49 (0) 203 60878 183
Fax: +49 (0) 203 60878 222
e-mail: dominik.sandj...@it-motive.de

it-motive AG
Zum Walkmüller 6
47269 Duisburg
i...@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
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Rules don't execute using MVEL syntax in RHS - Possible Bug

2014-05-15 Thread Mario Fusco
Hi Josep,

as I anticipated the propName vs. getPropName() issue was only a red herring
and totally unrelated with the actual bug. Investigating in more detail your
test case I found that the problem is that in some circumstances, when using
fireUntilHalt, a single working memory action (insert/update/delete) is not
processed atomically as it should. This causes that it can make to fire a
rule even before than the consequences of such action have been completely
propagated to all the nodes of the rete network. 

Yesterday evening I finished developing a fix for this issue that also makes
your test case to pass. However I only pushed it on a branch of my personal
guthub repo (
https://github.com/mariofusco/drools/commit/6d7a849f0920e95c22aa913f0cc5b741b1ddb92b
) because there are still some outstanding details that I am discussing with
the other members of the team. 

I'll let you know when we decide that the fix is ok and merge it to the
master.

Cheers,
Mario



--
View this message in context: 
http://drools.46999.n3.nabble.com/Rules-don-t-execute-using-MVEL-syntax-in-LHS-Possible-Bug-tp4029494p4029587.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 5.5 and Java 7 syntax

2014-05-15 Thread Ephemeris Lappis
Hello.It seems that Drools 5.5 experiences problems translating RHS code with
Java 7 syntax, while it's running with JDK 1.7.For example, literal numbers
with thousand separator of form *10_000* are detected as errors, and
generics forms like *List l = new ArrayList()*; is also refused because of
the  that must be removed.Is it a natural behavior or is there a way to
majke it use a Java 7 aware parser ?Thanks for your help.Regards.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-5-5-and-Java-7-syntax-tp4029588.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] CompositiveClassLoader$CachingLoader$load method intermittently hangs

2014-05-15 Thread Steven Williams
We are also experiencing the same problems using 5.x and it is causing us
big problems.

I haven't had time to try it yet but do any developers know whether we
would be safe to change the HashMap the CompositiveClassLoader is using to
a ConcurrentHashMap?

thanks
Steve

---
Steven Williams



On Wed, Mar 19, 2014 at 12:31 AM, mikerod mjr4...@gmail.com wrote:

 I cannot easily reproduce an issue that I'm seeing.  This is an
 intermittent
 issue that happens probably 3% of the time or less.

 This is observed behavior in
 * Drools v5.6.0.Final, using
 * Janino compiler v2.5.16  transitively Drools brings
 * mvel2 v2.1.8.Final

 We have an environment that loads around 10 different KnowledgeBases into a
 list.
 Then one-by-one a single StatefulKnowledgeSession is created for a single
 KnowledgeBase, facts are inserted, and then fireAllRules is called.

 Every so often, we noticed that we were getting what seemed to be ininite
 looping behavior for during either insertion time or fireAllRules time.
 When we subsequently re-run the *same* session with the *same*
 KnowledgeBase
 and the *same* facts inserted, it was successful and finished in
 milliseconds (the average for our successful runs).  We have repeatedly
 seen
 this behavior of 1 failure, followed by a re-run that is successful.

 We were able to attach a profiler to several of these hung sessions to
 determine what was happening.  It turns out that in both the scenario where
 we saw a hang up on fact insertion and on fireAllRules call, the thread
 dump
 was the same.

 The stack looks like:
 ```
 main - Thread t@1
java.lang.Thread.State: RUNNABLE
  at java.util.HashMap.getEntry(HashMap.java:347)
  at java.util.HashMap.containsKey(HashMap.java:335)
  at

 org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:244)
  at

 org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:237)
  at

 org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:88)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:247)
  at

 org.mvel2.ParserConfiguration.checkForDynamicImport(ParserConfiguration.java:163)
  at
 org.mvel2.ParserConfiguration.hasImport(ParserConfiguration.java:191)
  at org.mvel2.ParserContext.hasImport(ParserContext.java:360)
  at org.mvel2.ParserContext.isVariableVisible(ParserContext.java:715)
  at
 org.mvel2.compiler.ExpressionCompiler.verify(ExpressionCompiler.java:394)
  at
 org.mvel2.compiler.ExpressionCompiler._compile(ExpressionCompiler.java:250)
  at
 org.mvel2.compiler.ExpressionCompiler.compile(ExpressionCompiler.java:62)
  at org.mvel2.MVEL.compileExpression(MVEL.java:810)
  at

 org.drools.base.mvel.MVELCompilationUnit.compile(MVELCompilationUnit.java:417)
  at

 org.drools.base.mvel.MVELCompilationUnit.getCompiledExpression(MVELCompilationUnit.java:238)
  at

 org.drools.rule.constraint.MvelConstraint.createMvelConditionEvaluator(MvelConstraint.java:224)
  at
 org.drools.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:208)
  at

 org.drools.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:175)
  at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:133)
  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:302)
  at
 org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:254)
  at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:366)
  at
 org.drools.common.SimpleBeliefSystem.insert(SimpleBeliefSystem.java:38)
  at

 org.drools.common.TruthMaintenanceSystem.addLogicalDependency(TruthMaintenanceSystem.java:207)
  at

 org.drools.common.TruthMaintenanceSystem.addLogicalDependency(TruthMaintenanceSystem.java:179)
  at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:247)
  at

 org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:950)
  at

 org.drools.base.DefaultKnowledgeHelper.insertLogical(DefaultKnowledgeHelper.java:263)
  at

 org.drools.base.DefaultKnowledgeHelper.insertLogical(DefaultKnowledgeHelper.java:228)
  at

 org.drools.base.DefaultKnowledgeHelper.insertLogical(DefaultKnowledgeHelper.java:223)
  application-stack
  at some.drools.generated.rule.package.Rule_drools-generated2
  at some.drools.generated.rule.package.Rule_drools-generated1
  at
 org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1282)
  - locked 656dd9a0 (a org.drools.common.DefaultAgenda)
  at