[rules-users] Problem in deploying GUNVOR

2012-07-11 Thread elena_nard...@libero.it
Hi all,I am trying to deploy GUVNOR 5.4.0 on TOMCAT 6.0.35 but I met the 
following error:
11-lug-2012 8.44.17 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
C:\Program Files 
(x86)\Java\jre6\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program
 Files (x86)\MiKTeX 2.8\miktex\bin;C:\Program Files\Internet 
Explorer;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\system32;C:\windows;C:\windows\System32\wbem;C:\windows\SysWOW64\;C:\Program
 Files\Internet 
Explorer;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\system32;C:\windows;C:\windows\System32\wbem;C:\windows\SysWOW64\;C:\PROGRA~2\IBM\SQLLIB\FUNCTION;C:\PROGRA~2\IBM\SQLLIB\SAMPLES\REPL;C:\Program
 Files (x86)\Kaspersky Lab\Kaspersky Endpoint Security 8 for 
Windows\;C:\Program Files\TortoiseSVN\bin;C:\Program Files 
(x86)\Java\jre6\bin;C:\Program Files (x86)\OpenVPN\bin;.
11-lug-2012 8.44.18 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVVERTENZA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting 
property 'source' to 'org.eclipse.jst.jee.server:Test' did not find a matching 
property.
11-lug-2012 8.44.18 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
11-lug-2012 8.44.18 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 683 ms
11-lug-2012 8.44.18 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11-lug-2012 8.44.18 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
11-lug-2012 8.44.18 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor guvnor-5.4.0.CR1-tomcat-6.0.xml
11-lug-2012 8.44.22 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
11-lug-2012 8.44.22 org.apache.catalina.core.StandardContext start
GRAVE: Context [/guvnor-5.4.0.CR1-tomcat-6.0] startup failed due to previous 
errors
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
11-lug-2012 8.44.23 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
11-lug-2012 8.44.23 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
11-lug-2012 8.44.23 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/34  config=null
11-lug-2012 8.44.23 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5476 ms

I read several posts suggesting to remove jars from WEB-INF/lib.
I tried to do that, but the result does not change.
Could anyone help me?

Thanks in advance,Elena 
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to write Hibernate query lang(HQL) in .DRL file

2012-07-11 Thread ashwindrool
Hi Laune,

We are tried to created similar scenario in which we get error when we tried
to execute HQL from DRL file but unfortunately , i m sorry we r unable to
give you exact what error we are getting.

But it will be great if you can share your approach or process in calling
hibernate query directly in DRL file. 
How to pass hibernate session and execute query if we can run simple
select query from their , then we can go for complex nested queries.

--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-write-Hibernate-query-lang-HQL-in-DRL-file-tp4018571p4018580.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] Deploy ModeShape to Tomcat issue (Guvnor 5.4.0 Final)

2012-07-11 Thread Mark Proctor

From one of the modeshape authors, who I forwarded this email to:
The correct way to use ModeShape within Tomcat is to just copy the JARs 
and include it in your deployment, just as you've been doing. In this 
way, you're embedding ModeShape into your web application. The three 
modeshape-* files you cite below are used only when installing 
ModeShape into JBoss AS (as a service within JBoss AS), and are not 
needed in Tomcat (or any other servlet container).


Mark
On 09/07/2012 15:56, yan.d.zh...@accenture.com wrote:

Hi,
In order to trying connect Guvnor to DB2, I am trying another JCR 
modeshape instead of jackrabbit.

I downloaded modeshape-2.8.1.Final, and I am using Tomcat 6.0.x.
My first question is, should I just copy some of modeshape jar in /lib 
directory (I currently do), or I should install it as a service in Tomcat?

Second quesion, If I have to install it, how can I do that?
Besides, I am not able to find the modeshape-service.jar in 
'modeshape-2.8.1.Final' which is mentioned in the Guvnor manual, 
therefore I am also not able to locate and modify the following files:

- modeshape-roles.properties
- modeshape-users.properties
- modeshape-services.jar/modeshape-config.xml
Is it because I didn't install it as a service?
Any help or instruction will be appreciated.
Thank you,
Yan


Subject to local law, communications with Accenture and its affiliates 
including telephone calls and emails (including content), may be 
monitored by our systems for the purposes of security and the 
assessment of internal compliance with Accenture policy.

__

www.accenture.com


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



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


Re: [rules-users] Problem in deploying GUNVOR

2012-07-11 Thread Michael Anstis
Have you tried 5.4.0.Final?

The log below suggests you are using 5.4.0.CR1.

On 11 July 2012 07:53, elena_nard...@libero.it elena_nard...@libero.itwrote:

 Hi all,

 I am trying to deploy GUVNOR 5.4.0 on TOMCAT 6.0.35 but I met the
 following error:


 11-lug-2012 8.44.17 org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path: C:\Program Files
 (x86)\Java\jre6\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program
 Files (x86)\MiKTeX 2.8\miktex\bin;C:\Program Files\Internet
 Explorer;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\system32;C:\windows;C:\windows\System32\wbem;C:\windows\SysWOW64\;C:\Program
 Files\Internet
 Explorer;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\system32;C:\windows;C:\windows\System32\wbem;C:\windows\SysWOW64\;C:\PROGRA~2\IBM\SQLLIB\FUNCTION;C:\PROGRA~2\IBM\SQLLIB\SAMPLES\REPL;C:\Program
 Files (x86)\Kaspersky Lab\Kaspersky Endpoint Security 8 for
 Windows\;C:\Program Files\TortoiseSVN\bin;C:\Program Files
 (x86)\Java\jre6\bin;C:\Program Files (x86)\OpenVPN\bin;.
 11-lug-2012 8.44.18 org.apache.tomcat.util.digester.SetPropertiesRule begin
 AVVERTENZA: [SetPropertiesRule]{Server/Service/Engine/Host/Context}
 Setting property 'source' to 'org.eclipse.jst.jee.server:Test' did not find
 a matching property.
 11-lug-2012 8.44.18 org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 11-lug-2012 8.44.18 org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 683 ms
 11-lug-2012 8.44.18 org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 11-lug-2012 8.44.18 org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
 11-lug-2012 8.44.18 org.apache.catalina.startup.HostConfig deployDescriptor
 INFO: Deploying configuration descriptor guvnor-5.4.0.CR1-tomcat-6.0.xml
 11-lug-2012 8.44.22 org.apache.catalina.core.StandardContext start
 GRAVE: Error listenerStart
 11-lug-2012 8.44.22 org.apache.catalina.core.StandardContext start
 GRAVE: Context [/guvnor-5.4.0.CR1-tomcat-6.0] startup failed due to
 previous errors
 11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDescriptor
 INFO: Deploying configuration descriptor host-manager.xml
 11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDescriptor
 INFO: Deploying configuration descriptor manager.xml
 11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory
 INFO: Deploying web application directory docs
 11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory
 INFO: Deploying web application directory examples
 11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory
 INFO: Deploying web application directory ROOT
 11-lug-2012 8.44.23 org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 11-lug-2012 8.44.23 org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 11-lug-2012 8.44.23 org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/34  config=null
 11-lug-2012 8.44.23 org.apache.catalina.startup.Catalina start
 INFO: Server startup in 5476 ms



 I read several posts suggesting to remove jars from WEB-INF/lib.


 I tried to do that, but the result does not change.


 Could anyone help me?



 Thanks in advance,

 Elena

 ___
 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] R: Re: Problem in deploying GUNVOR

2012-07-11 Thread elena_nard...@libero.it
5.4.0 Final works!

Thanks a lot!

Elena


Messaggio originale

Da: michael.ans...@gmail.com

Data: 11/07/2012 10.41

A: elena_nard...@libero.itelena_nard...@libero.it, Rules Users 
Listrules-users@lists.jboss.org

Ogg: Re: [rules-users] Problem in deploying GUNVOR



Have you tried 5.4.0.Final?

The log below suggests you are using 5.4.0.CR1.

On 11 July 2012 07:53, elena_nard...@libero.it elena_nard...@libero.it wrote:

Hi all,I am trying to deploy GUVNOR 5.4.0 on TOMCAT 6.0.35 but I met the 
following error:

11-lug-2012 8.44.17 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
C:\Program Files 
(x86)\Java\jre6\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program
 Files (x86)\MiKTeX 2.8\miktex\bin;C:\Program Files\Internet 
Explorer;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\system32;C:\windows;C:\windows\System32\wbem;C:\windows\SysWOW64\;C:\Program
 Files\Internet 
Explorer;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\system32;C:\windows;C:\windows\System32\wbem;C:\windows\SysWOW64\;C:\PROGRA~2\IBM\SQLLIB\FUNCTION;C:\PROGRA~2\IBM\SQLLIB\SAMPLES\REPL;C:\Program
 Files (x86)\Kaspersky Lab\Kaspersky Endpoint Security 8 for 
Windows\;C:\Program Files\TortoiseSVN\bin;C:\Program Files 
(x86)\Java\jre6\bin;C:\Program Files (x86)\OpenVPN\bin;.

11-lug-2012 8.44.18 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVVERTENZA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting 
property 'source' to 'org.eclipse.jst.jee.server:Test' did not find a matching 
property.

11-lug-2012 8.44.18 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
11-lug-2012 8.44.18 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 683 ms

11-lug-2012 8.44.18 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11-lug-2012 8.44.18 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35

11-lug-2012 8.44.18 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor guvnor-5.4.0.CR1-tomcat-6.0.xml
11-lug-2012 8.44.22 org.apache.catalina.core.StandardContext start

GRAVE: Error listenerStart
11-lug-2012 8.44.22 org.apache.catalina.core.StandardContext start
GRAVE: Context [/guvnor-5.4.0.CR1-tomcat-6.0] startup failed due to previous 
errors

11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor manager.xml
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory examples
11-lug-2012 8.44.23 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
11-lug-2012 8.44.23 org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-8080
11-lug-2012 8.44.23 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
11-lug-2012 8.44.23 org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/34  config=null
11-lug-2012 8.44.23 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5476 ms


I read several posts suggesting to remove jars from WEB-INF/lib.
I tried to do that, but the result does not change.

Could anyone help me?

Thanks in advance,
Elena 

___

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] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread chrisLi
 Hi, All

  I am using Guvnor 5.4.0 Final with Tomcat 6.0.35. And I wanted to replace
commons-lang2.4 with commons-

lang3-3.1, so I overwrote the commons-lang2.4 jar file in Guvnor's
WEB-INF/lib directory with commons-

lang3-3.1.jar. However an error like follows occured:

Service method 'public abstract long
org.drools.guvnor.client.rpc.AssetService.getAssetCount(org.drools.guvnor.client.rpc.AssetPageRequest)
throws com.google.gwt.user.client.rpc.SerializationException' threw an
unexpected exception: java.lang.NoClassDefFoundError:
org/apache/commons/lang/StringUtils org/apache/commons/lang/StringUtils

I have restarted Guvnor. 

Any suggestion will be appreciated, thank you very much.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Error-occured-when-replacing-commons-lang2-4-with-commons-lang3-3-1-in-Guvnor-5-4-0-Final-tp4018584.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] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread Michael Anstis
The class required by Guvnor, org.apache.commons.lang.StringUtils, doesn't
exist in 3-3.1.

It has been renamed org.apache.commons.lang3.StringUtils in 3-3.1.

On 11 July 2012 12:15, chrisLi shengtao0...@163.com wrote:

  Hi, All

   I am using Guvnor 5.4.0 Final with Tomcat 6.0.35. And I wanted to replace
 commons-lang2.4 with commons-

 lang3-3.1, so I overwrote the commons-lang2.4 jar file in Guvnor's
 WEB-INF/lib directory with commons-

 lang3-3.1.jar. However an error like follows occured:

 Service method 'public abstract long

 org.drools.guvnor.client.rpc.AssetService.getAssetCount(org.drools.guvnor.client.rpc.AssetPageRequest)
 throws com.google.gwt.user.client.rpc.SerializationException' threw an
 unexpected exception: java.lang.NoClassDefFoundError:
 org/apache/commons/lang/StringUtils org/apache/commons/lang/StringUtils

 I have restarted Guvnor.

 Any suggestion will be appreciated, thank you very much.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Error-occured-when-replacing-commons-lang2-4-with-commons-lang3-3-1-in-Guvnor-5-4-0-Final-tp4018584.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread chrisLi
oops!I have not noticed this change. 

Thank you very much.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Error-occured-when-replacing-commons-lang2-4-with-commons-lang3-3-1-in-Guvnor-5-4-0-Final-tp4018584p4018586.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] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread Geoffrey De Smet
commons-lang 3 isn't backwards compatible with commons-lang 2 (hence the 
major version number change).
But if they namespaced all the lang 3 work under lang3 (and also 
namespaces the maven GAV), then both a 2 and 3 jar can be in the 
classpath together. Not sure if that's the case though...

Op 11-07-12 13:29, chrisLi schreef:
 oops!I have not noticed this change.

 Thank you very much.

 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Error-occured-when-replacing-commons-lang2-4-with-commons-lang3-3-1-in-Guvnor-5-4-0-Final-tp4018584p4018586.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

-- 
With kind regards,
Geoffrey De Smet


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


Re: [rules-users] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread chrisLi
Hi manstis,

 I have another question.

I have created a model jar in Guvnor. And the classes in this jar have
references to other classes out of this 

jar. But I do not wanted to create another model jar to contain the refered
classes. So I packaged them into 

a jar file and put it into the Guvnor's WEB-INF/lib directory. However after
I have restarted Guvnor and 

Tomcat, Guvnor still could not find these refered classes.

The following is error message from Guvnor's Event log:

 Service method 'public abstract
org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine
org.drools.guvnor.client.rpc.RepositoryService.loadSuggestionCompletionEngine(java.lang.String)
throws com.google.gwt.user.client.rpc.SerializationException' threw an
unexpected exception: java.lang.NoClassDefFoundError:
cn/id5/disruptor/util/GlobalUtil cn/id5/disruptor/util/GlobalUtil

Thank you very much.

 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Error-occured-when-replacing-commons-lang2-4-with-commons-lang3-3-1-in-Guvnor-5-4-0-Final-tp4018584p4018589.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] How to write Hibernate query lang(HQL) in .DRL file

2012-07-11 Thread Wolfgang Laun
If you have working Java code

   import a.b.MyService;

   MyService service = ...;
   service.aMethod(...);

then in DRL you can do

   import a.b.MyService;

   global MyService service;

   rule x when
  ...
   then
  service.aMethod(...);
   end

and in your Java code, after you create the session and before you
fire any rules you must assign an object to the global:

  MyService service = ...;
  kSession.setGlobal( service, service );

That's all.
-W


On 11/07/2012, ashwindrool ashwin.khandelwa...@gmail.com wrote:
 Hi Laune,

 We are tried to created similar scenario in which we get error when we
 tried
 to execute HQL from DRL file but unfortunately , i m sorry we r unable to
 give you exact what error we are getting.

 But it will be great if you can share your approach or process in calling
 hibernate query directly in DRL file.
 How to pass hibernate session and execute query if we can run simple
 select query from their , then we can go for complex nested queries.

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/How-to-write-Hibernate-query-lang-HQL-in-DRL-file-tp4018571p4018580.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

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


[rules-users] Drools scalability (performance) in numbers.

2012-07-11 Thread skatta1986
Hi,

Please can any one help me out in finding the Drools performance. I wanted
to know its scalabilty.

What is the Drools Maximum capacity (No. of Facts/second) in Complex Event
Processing w.r.t any particular Hardware/OS. 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-scalability-performance-in-numbers-tp4018592.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] Planner - Initialized solution local search

2012-07-11 Thread Garf
I'm using v5.4. I've built a prototype which uses the constructionHeuristic,
and localSearch, as the example does, and am able to run the solver (though
it still doesn't do a good job of solving at this point).

I've now added customSolverPhase, and set it to use an initializer class
which implements CustomSolverPhaseCommand.

In my changeWorkingSolution, I call scoreDirector.beforeEntityAdded(), and
then set the planning entity's planning variable, and then call
afterEntityAdded().

If I leave any entities unadded -- and let the constructionHeuristic
(BEST_FIT, etc) do the fitting (which I can verify from the logs)-- I then
get this exception:

/java.lang.IllegalStateException: Phase localSearch started with an
uninitialized Solution. First initialize the Solution. For example, run a
phase constructionHeuristic first./

For now, I can update my code to ensure that all of the entities are fitted
and bypass the constructionHeuristic, but I'm curious why this error is
getting thrown. I did hunt through the source code to look at all the
isInitialized() methods, but I haven't yet stepped through to see which one
returns false any why.

As for turning on TRACE mode, see my 
http://drools.46999.n3.nabble.com/drools-planner-5-4-0-Final-java-lang-IllegalStateException-Score-corruption-the-workingScore-tp3981199p4018558.html
recent post .

Jon

--
View this message in context: 
http://drools.46999.n3.nabble.com/Planner-Initialized-solution-local-search-tp4018594.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] Planner - Initialized solution local search

2012-07-11 Thread Geoffrey De Smet



Op 11-07-12 17:19, Garf schreef:
 I'm using v5.4. I've built a prototype which uses the constructionHeuristic,
 and localSearch, as the example does, and am able to run the solver (though
 it still doesn't do a good job of solving at this point).

 I've now added customSolverPhase, and set it to use an initializer class
 which implements CustomSolverPhaseCommand.

 In my changeWorkingSolution, I call scoreDirector.beforeEntityAdded(), and
 then set the planning entity's planning variable, and then call
 afterEntityAdded().

 If I leave any entities unadded -- and let the constructionHeuristic
 (BEST_FIT, etc) do the fitting (which I can verify from the logs)-- I then
 get this exception:

 /java.lang.IllegalStateException: Phase localSearch started with an
 uninitialized Solution. First initialize the Solution. For example, run a
 phase constructionHeuristic first./
This sounds like a bug.
Unless, you called afterEntityAdded() on the non initialized entities too?

If that's not the case, could you file a jira?
   https://issues.jboss.org/browse/JBRULES
 For now, I can update my code to ensure that all of the entities are fitted
 and bypass the constructionHeuristic, but I'm curious why this error is
 getting thrown. I did hunt through the source code to look at all the
 isInitialized() methods, but I haven't yet stepped through to see which one
 returns false any why.

 As for turning on TRACE mode, see my
 http://drools.46999.n3.nabble.com/drools-planner-5-4-0-Final-java-lang-IllegalStateException-Score-corruption-the-workingScore-tp3981199p4018558.html
 recent post .

 Jon

 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Planner-Initialized-solution-local-search-tp4018594.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


-- 
With kind regards,
Geoffrey De Smet


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


Re: [rules-users] Score curruption exception in drools-planner-5.4.0.CR1

2012-07-11 Thread ge0ffrey

Garf wrote
 
 I wanted to get a better understanding of this problem. 
 I'm getting a score Corruption error -- but only when environmentMode is
 set to TRACE.
 
 When it's set to REPRODUCIBLE, I get no error.
 
 Jon
 

Score corruption detection greatly reduces performance, so it's only enabled
in TRACE (and partially in DEBUG).
Keep the mode on TRACE untill you fix that error.

--
View this message in context: 
http://drools.46999.n3.nabble.com/drools-planner-5-4-0-Final-java-lang-IllegalStateException-Score-corruption-the-workingScore-tp3981199p4018596.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] [Solved] Concurrency bug in 5.4.0.Final

2012-07-11 Thread Edson Tirelli
  Hi all,

  Just a heads up, in case you are using the community release 5.4.0.Final
in a multi-threaded application, be aware that we found a quite serious
racing condition bug:

https://issues.jboss.org/browse/JBRULES-3573

  The bug is now fixed in 5.4.x branch, so I strongly recommend that you
build from source and use that instead. The bug was also fixed in the
up-stream branch and will be released in 5.5.0.

  IMPORTANT: if you are a Red Hat subscriber, you don't need to do anything
as the problem did not exist in the product release.

  Edson

-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Score curruption exception in drools-planner-5.4.0.CR1

2012-07-11 Thread Garf
Right, the root of the behavior is that TRACE enables assertWorkingScore(),
which tells me that the workingScore (reflecting the score after the move)
is not the same as the uncorruptedScore (reflecting prior to the change),
and specifically, that 4 ConstraintOccurrences are mismatched. For some
reason, new

I looked, along the lines of Christopher's earlier suggestion, that equals()
was the issue, but it was not.
It just appears that insertLogical() is not replacing the
ConstraintOccurences that were associated with the PlanningVariable's class.

Jon


--
View this message in context: 
http://drools.46999.n3.nabble.com/drools-planner-5-4-0-Final-java-lang-IllegalStateException-Score-corruption-the-workingScore-tp3981199p4018599.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools scalability (performance) in numbers.

2012-07-11 Thread Wolfgang Laun
On 11 July 2012 16:34, skatta1986 shivaprasad_...@yahoo.co.in wrote:

 Hi,

 Please can any one help me out in finding the Drools performance. I wanted
 to know its scalabilty.

 What is the Drools Maximum capacity (No. of Facts/second) in Complex Event
 Processing w.r.t any particular Hardware/OS.


Facts/second when doing what with a fact?
Insert? Against how many rules? Rules of what complexity? Including the
firing of rules?
With consequences taking how much time? With or without the insertion of
derived facts?
Both insert and retract? ...?

A simple benchmark according to your basic scenario and run on the system of
your choice is indicated. Anything else is rather pointless.

-W


 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Drools-scalability-performance-in-numbers-tp4018592.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] [Solved] Concurrency bug in 5.4.0.Final

2012-07-11 Thread Caillard, Quentin
Hi.
Thanks for the fix.

I have read in Mark Proctor's blog that the 5.5 will be released within the
next 4-5 months. Is there any release date for the next release in the
branch 5.4.x?

2012/7/11 Edson Tirelli ed.tire...@gmail.com


   Hi all,

   Just a heads up, in case you are using the community release 5.4.0.Final
 in a multi-threaded application, be aware that we found a quite serious
 racing condition bug:

 https://issues.jboss.org/browse/JBRULES-3573

   The bug is now fixed in 5.4.x branch, so I strongly recommend that you
 build from source and use that instead. The bug was also fixed in the
 up-stream branch and will be released in 5.5.0.

   IMPORTANT: if you are a Red Hat subscriber, you don't need to do
 anything as the problem did not exist in the product release.

   Edson

 --
   Edson Tirelli
   JBoss Drools Core Development
   JBoss by Red Hat @ www.jboss.com

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




-- 

Quentin CAILLARD

*Software Engineering*

quentin.caill...@ariadnext.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] [Solved] Concurrency bug in 5.4.0.Final

2012-07-11 Thread Edson Tirelli
   Unfortunately, we have limited resources to maintain older branches in
the community. While backporting fixes like this is usually quick (a few
minutes of work if the source code did no diverge too much), making a full
release involves usually more than a week of work by multiple members of
the team. We feel that it is much more productive to use that time towards
the new release putting it out sooner rather than later.

   In any case, users can always build from source themselves if they need
the fix sooner and this kind of bug is typically found during the
productization and does not usually affect the product. In the rare
instances that it does, customers receive patches created by the Red Hat
product team.

   The source is available in github:
https://github.com/droolsjbpmhttps://github.com/organizations/droolsjbpm
and
building it is just a few maven commands. You can check the documentation
for instructions.

   Edson

On Wed, Jul 11, 2012 at 2:13 PM, Caillard, Quentin 
quentin.caill...@ariadnext.com wrote:

 Hi.
 Thanks for the fix.

 I have read in Mark Proctor's blog that the 5.5 will be released within
 the next 4-5 months. Is there any release date for the next release in the
 branch 5.4.x?

 2012/7/11 Edson Tirelli ed.tire...@gmail.com


   Hi all,

   Just a heads up, in case you are using the community release
 5.4.0.Final in a multi-threaded application, be aware that we found a quite
 serious racing condition bug:

 https://issues.jboss.org/browse/JBRULES-3573

   The bug is now fixed in 5.4.x branch, so I strongly recommend that you
 build from source and use that instead. The bug was also fixed in the
 up-stream branch and will be released in 5.5.0.

   IMPORTANT: if you are a Red Hat subscriber, you don't need to do
 anything as the problem did not exist in the product release.

   Edson

 --
   Edson Tirelli
   JBoss Drools Core Development
   JBoss by Red Hat @ www.jboss.com

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




 --

 Quentin CAILLARD

 *Software Engineering*

 quentin.caill...@ariadnext.com


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




-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Issue

2012-07-11 Thread salt
I have two objects vehicles and transactions. I am fetching values of all
transactions from db and using an list and setting in the vehicles object.

for example let have three columns and four rows.. 
name  date price
A12/07   700
B 12/07   100
D13/07   100
C14/07   150

i will be looping like this drools spreadsheet.
$v1:vehicles() transaction() from$v1.transactionList

Now i need to check for C in names and if there is D above to that need to
set true.

SCENARIOS

A,B,C,D,B - for this false needs to be set

A,B,C,D,C - set true

how can we do this in drools spreadsheet

is this possibe.?

--
View this message in context: 
http://drools.46999.n3.nabble.com/Issue-tp4018604.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] Planner - Initialized solution local search

2012-07-11 Thread Garf
re: /Double check if you aren't calling afterEntityAdded() on the
non-initialized entities too.
Also check that the construction heurstics run before the localSearch solver
does (the order in which they are declared in the config xml matters)./

Checked both.
I'll file a JIRA bug, but I'm just searching the source some more -- I'm
trying to verify that DefaultGreedyFitSolverPhase.solve() doesn't exit the
loop before calling setSolutionInitialized().

Jon

--
View this message in context: 
http://drools.46999.n3.nabble.com/Planner-Initialized-solution-local-search-tp4018594p4018605.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] [Solved] Concurrency bug in 5.4.0.Final

2012-07-11 Thread Caillard, Quentin
No problem.
Thanks for the explanations about your roadmap.

Quentin CAILLARD

*Software Engineering*

quentin.caill...@ariadnext.com



2012/7/11 Edson Tirelli ed.tire...@gmail.com


Unfortunately, we have limited resources to maintain older branches in
 the community. While backporting fixes like this is usually quick (a few
 minutes of work if the source code did no diverge too much), making a full
 release involves usually more than a week of work by multiple members of
 the team. We feel that it is much more productive to use that time towards
 the new release putting it out sooner rather than later.

In any case, users can always build from source themselves if they need
 the fix sooner and this kind of bug is typically found during the
 productization and does not usually affect the product. In the rare
 instances that it does, customers receive patches created by the Red Hat
 product team.

The source is available in github: 
 https://github.com/droolsjbpmhttps://github.com/organizations/droolsjbpm and
 building it is just a few maven commands. You can check the documentation
 for instructions.

Edson

 On Wed, Jul 11, 2012 at 2:13 PM, Caillard, Quentin 
 quentin.caill...@ariadnext.com wrote:

 Hi.
 Thanks for the fix.

 I have read in Mark Proctor's blog that the 5.5 will be released within
 the next 4-5 months. Is there any release date for the next release in the
 branch 5.4.x?

 2012/7/11 Edson Tirelli ed.tire...@gmail.com


   Hi all,

   Just a heads up, in case you are using the community release
 5.4.0.Final in a multi-threaded application, be aware that we found a quite
 serious racing condition bug:

 https://issues.jboss.org/browse/JBRULES-3573

   The bug is now fixed in 5.4.x branch, so I strongly recommend that you
 build from source and use that instead. The bug was also fixed in the
 up-stream branch and will be released in 5.5.0.

   IMPORTANT: if you are a Red Hat subscriber, you don't need to do
 anything as the problem did not exist in the product release.

   Edson

 --
   Edson Tirelli
   JBoss Drools Core Development
   JBoss by Red Hat @ www.jboss.com

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




 --

 Quentin CAILLARD

 *Software Engineering*

 quentin.caill...@ariadnext.com


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




 --
   Edson Tirelli
   JBoss Drools Core Development
   JBoss by Red Hat @ www.jboss.com

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


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


[rules-users] Compiled rules differ KnowledgeAgent vs ResourceChangeScanner

2012-07-11 Thread lhorton
Version 5.2.0.Final.  I have a DRL file that is loaded into my server using a
change set and Spring configuration.  The file loads without error, and I am
able to read the compiled package and print the rule names to confirm they
did load; however, only one of the rules fires.  Then I copy (hot-deploy)
the same DRL file to its server-side directory, and the Resource change
Scanner picks it up and reloads it.  After reload, all the expected rules
execute.

My guess is that the Spring/KnowledgeAgent compilation is different than the
one done via the resource change scanner.  Has anyone else seen this
behavior?  Any suggestions for further trouble shooting?

I can attach the change set, spring config and drl file if needed.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Compiled-rules-differ-KnowledgeAgent-vs-ResourceChangeScanner-tp4018608.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] FireUntilHalt

2012-07-11 Thread crajor
I have a fairly complicated drools program and I want to introduce temporal
reasoning to it.  I spent a bit of time writing some proof-of-concept
programs to get the feel of fusion and then tried to slowly introduce things
into my original drools program.  When I changed my program from using
fireAllRules() to using fireUntilHalt() on a separate thread, I suddenly get
failures in my unit tests.  (My first thought was that there was a race
condition between my unit tests and the thread calling fireUntilHalt() so I
introduced a delay before my unit tests but no luck)  

Here are some of the behaviors I am seeing.

1) I occasionally get nullpointerexception from the thread running
fireUntilHalt()
2) My lock-on-active rules aren't firing

I have banged my head on this a while with no success.  (I even tried
putting fireAllRules() in a loop because of suggestions I saw but no luck
and same behavior).  My questions are, Is there a secret to using
fireUntilHalt() that I am not aware of?  Can anybody point me to where I can
educate myself on its proper use?

BTW no persistence and no spring in the code at this point.

Thanks, in advance, for any help you can provide.

Craig

--
View this message in context: 
http://drools.46999.n3.nabble.com/FireUntilHalt-tp4018610.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] FireUntilHalt

2012-07-11 Thread Edson Tirelli
   Which Drools version are you using?

   There are no secrets, but you have to be aware that in this mode rules
will fire right away if they can. Also, if you are using 5.4.0.Final,
please read another e-mail I sent to the list today, as there was a
concurrency bug that was fixed in the 5.4.x branch that could cause NPE.

   Edson

On Wed, Jul 11, 2012 at 10:16 PM, crajor crjo...@sandia.gov wrote:

 I have a fairly complicated drools program and I want to introduce temporal
 reasoning to it.  I spent a bit of time writing some proof-of-concept
 programs to get the feel of fusion and then tried to slowly introduce
 things
 into my original drools program.  When I changed my program from using
 fireAllRules() to using fireUntilHalt() on a separate thread, I suddenly
 get
 failures in my unit tests.  (My first thought was that there was a race
 condition between my unit tests and the thread calling fireUntilHalt() so I
 introduced a delay before my unit tests but no luck)

 Here are some of the behaviors I am seeing.

 1) I occasionally get nullpointerexception from the thread running
 fireUntilHalt()
 2) My lock-on-active rules aren't firing

 I have banged my head on this a while with no success.  (I even tried
 putting fireAllRules() in a loop because of suggestions I saw but no luck
 and same behavior).  My questions are, Is there a secret to using
 fireUntilHalt() that I am not aware of?  Can anybody point me to where I
 can
 educate myself on its proper use?

 BTW no persistence and no spring in the code at this point.

 Thanks, in advance, for any help you can provide.

 Craig

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/FireUntilHalt-tp4018610.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




-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users