Piotr Jedrychowski | 1 Feb 2011 08:29
Picon
Favicon

Re: Speed up inserting of rules into knowledge base

Hello.

Some time ago I wrote an e-mail with question how to parse and load a large group of rules in an efficient way. I've made a lot of tests and I have couple conclusions. Is there a possibility that someone could confirm (if I'm right) or deny (if I'm wrong) my conclusions, and explain why Drools behave in such a way.

1) Parse rules in groups.
Parsing of rules should be done in large groups. Send to knowledgeBuilder.add() method e.g. 100 rules at one time, instead of parsing one by one rule.

2) Parsing takes a lot of memory.
During parsing of group about 20000 rules my test application takes about 500MB memory.

3) Use only one package.
Loading rules into one package is extremely faster than loading every rule into separated package.

4) Call KnowledgeBase.add() method only once.
Prepared set of rules should be added by one call of KnowledgeBase.add() method instead of adding each rule by separated method call.

5) Method Session.fireAllRules() works extremely fast.
Despite fact that I load thousands of rules into KnowledgeBase, inserting a new fact and call Session.fireAllRules() works very efficient (it takes below 1ms).

Regards,
Piotr
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
OlliSee | 1 Feb 2011 09:35
Picon
Favicon

Drools Server 5.1.1 - can't run test.jsp


Hi there.

I was trying to setup the Drools Server. As I understand, this is not a
server per se, its just the usual Drools with some framework plumbing. But I
appreciate not having to do that myself. But I can't get it to work.

I imported the .war file into my Eclipse and tried to deploy it to a few
application servers, but it didn't work.
I tried Tomcat 6/7, JBoss AS 4.2.2/4.2.3/5.0.1/5.1.0 (I know, they are just
using Tomcat, but I gave it a shot anyway...).

The .war deploys right I guess. But as soon as I try to run the test.jsp, I
get a lot of errors.

The log below is from Tomcat 6,...

31.01.2011 10:51:00 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:\Programme\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Programme/Java/jre6/bin/client;C:/Programme/Java/jre6/bin;C:/Programme/Java/jre6/lib/i386;C:\Programme\ActiveState
Komodo Edit 6\;C:\Programme\Mendeley
Desktop\wordPlugin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;%JAVA_HOME%\bin;C:\Programme\QuickTime\QTSystem\;C:\derby\bin
31.01.2011 10:51:00 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:drools-5.1.1-server' did
not find a matching property.
31.01.2011 10:51:00 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
31.01.2011 10:51:00 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
31.01.2011 10:51:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 616 ms
31.01.2011 10:51:00 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
31.01.2011 10:51:00 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
31.01.2011 10:51:01 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:\Dokumente und Einstellungen\o.roess\Eigene
Dateien\Drools Server
Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\drools-5.1.1-server\WEB-INF\lib\servlet-api-2.3.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
31.01.2011 10:51:11 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger
(org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
31.01.2011 10:51:18 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /kservice/rest
31.01.2011 10:51:18 org.apache.cxf.transport.servlet.CXFServlet
updateContext
INFO: Load the bus with application context
31.01.2011 10:51:19 org.apache.cxf.transport.servlet.AbstractCXFServlet
replaceDestinationFactory
INFO: Servlet transport factory already registered
31.01.2011 10:51:19 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
31.01.2011 10:51:19 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
31.01.2011 10:51:19 org.apache.catalina.startup.Catalina start
INFO: Server startup in 18193 ms

Maybe there is already something wrong?
Ok then, this happens when I try to navigate to the test.jsp in my browser

31.01.2011 10:55:00 org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNUNG: Interceptor for
{http://localhost:8080/drools-server-app/kservice/rest}WebClient has thrown
exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
        at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
        at
org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:615)
        at
org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:596)
        at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:241)
        at
org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(CxfRsProducer.java:129)
        at
org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:71)
        at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)
        at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)
        at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
        at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
        at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:78)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
        at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
        at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
        at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:113)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)
        at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:99)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)
        at
org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
        at
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:333)
        at
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:304)
        at
org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:208)
        at
org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:303)
        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:171)
        at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:114)
        at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:118)
        at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:135)
        at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:283)
        at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:313)
        at org.drools.server.Test.execute(Test.java:68)
        at org.drools.server.Test.send(Test.java:60)
        at org.apache.jsp.test_jsp._jspService(test_jsp.java:77)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: IOException invoking
http://localhost:8080/drools-server-app/kservice/rest/execute: HTTP response
'404: Not Found'
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:2058)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2043)
        at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)
        at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        ... 79 more
Caused by: java.io.IOException: HTTP response '404: Not Found'
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2194)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)
        ... 82 more

Anyone got an idea?
Thanks!
Kind regards
Oliver
--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p2395863.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Esteban Aliverti | 1 Feb 2011 12:33
Picon
Gravatar

Re: Drools Server 5.1.1 - can't run test.jsp

Your log is pointing a possible problem:


INFO: validateJarFile(C:\Dokumente und Einstellungen\o.roess\Eigene
Dateien\Drools Server
Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\drools-5.1.1-server\WEB-INF\lib\servlet-api-2.3.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class

You should remove servlet-api-2.3.jar from your webapp.

Best Regards,




XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer <at> http://www.plugtree.com
- Blog <at> http://ilesteban.wordpress.com


On Tue, Feb 1, 2011 at 5:35 AM, OlliSee <o.roess <at> seeburger.de> wrote:

Hi there.

I was trying to setup the Drools Server. As I understand, this is not a
server per se, its just the usual Drools with some framework plumbing. But I
appreciate not having to do that myself. But I can't get it to work.

I imported the .war file into my Eclipse and tried to deploy it to a few
application servers, but it didn't work.
I tried Tomcat 6/7, JBoss AS 4.2.2/4.2.3/5.0.1/5.1.0 (I know, they are just
using Tomcat, but I gave it a shot anyway...).

The .war deploys right I guess. But as soon as I try to run the test.jsp, I
get a lot of errors.

The log below is from Tomcat 6,...


31.01.2011 10:51:00 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:\Programme\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Programme/Java/jre6/bin/client;C:/Programme/Java/jre6/bin;C:/Programme/Java/jre6/lib/i386;C:\Programme\ActiveState
Komodo Edit 6\;C:\Programme\Mendeley
Desktop\wordPlugin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;%JAVA_HOME%\bin;C:\Programme\QuickTime\QTSystem\;C:\derby\bin
31.01.2011 10:51:00 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:drools-5.1.1-server' did
not find a matching property.
31.01.2011 10:51:00 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
31.01.2011 10:51:00 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
31.01.2011 10:51:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 616 ms
31.01.2011 10:51:00 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
31.01.2011 10:51:00 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
31.01.2011 10:51:01 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:\Dokumente und Einstellungen\o.roess\Eigene
Dateien\Drools Server
Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\drools-5.1.1-server\WEB-INF\lib\servlet-api-2.3.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
31.01.2011 10:51:11 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger
(org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
31.01.2011 10:51:18 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /kservice/rest
31.01.2011 10:51:18 org.apache.cxf.transport.servlet.CXFServlet
updateContext
INFO: Load the bus with application context
31.01.2011 10:51:19 org.apache.cxf.transport.servlet.AbstractCXFServlet
replaceDestinationFactory
INFO: Servlet transport factory already registered
31.01.2011 10:51:19 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
31.01.2011 10:51:19 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
31.01.2011 10:51:19 org.apache.catalina.startup.Catalina start
INFO: Server startup in 18193 ms


Maybe there is already something wrong?
Ok then, this happens when I try to navigate to the test.jsp in my browser


31.01.2011 10:55:00 org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNUNG: Interceptor for
{http://localhost:8080/drools-server-app/kservice/rest}WebClient has thrown
exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
       at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
       at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
       at
org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:615)
       at
org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:596)
       at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:241)
       at
org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(CxfRsProducer.java:129)
       at
org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:71)
       at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)
       at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)
       at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
       at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
       at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
       at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
       at org.apache.camel.processor.Pipeline.process(Pipeline.java:78)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
       at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
       at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
       at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
       at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:113)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
       at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)
       at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:99)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)
       at
org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
       at
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:333)
       at
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:304)
       at
org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:208)
       at
org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:303)
       at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:171)
       at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:114)
       at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:118)
       at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:135)
       at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:283)
       at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:313)
       at org.drools.server.Test.execute(Test.java:68)
       at org.drools.server.Test.send(Test.java:60)
       at org.apache.jsp.test_jsp._jspService(test_jsp.java:77)
       at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
       at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
       at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
       at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
       at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
       at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
       at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
       at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
       at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)
       at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
       at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
       at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
       at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
       at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
       at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: IOException invoking
http://localhost:8080/drools-server-app/kservice/rest/execute: HTTP response
'404: Not Found'
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
       at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:2058)
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2043)
       at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
       at
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)
       at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
       ... 79 more
Caused by: java.io.IOException: HTTP response '404: Not Found'
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2194)
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)
       ... 82 more


Anyone got an idea?
Thanks!
Kind regards
Oliver
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p2395863.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
bob.breitling | 1 Feb 2011 16:31
Picon

Drools Guvnor and BPMN processes...


I have a package in the Guvnor that has several rules and one BPMN process. 
When I get the package in my app by accessing the Guvnor, I download the
ChangeSet.xml and I get all my rules but I never get the process. 

Here is a snipet of my code:

UrlResource resource = (UrlResource)
ResourceFactory.newUrlResource(myChangeSetURL);

KnowledgeAgent   kagent =
KnowledgeAgentFactory.newKnowledgeAgent("myAgent");
kagent.applyChangeSet(resource);
guvnorKnowledgeBase = kagent.getKnowledgeBase();

Is there something I'm missing to get my processes too?

TIA,

Bob
--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Guvnor-and-BPMN-processes-tp2397932p2397932.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Dean Whisnant | 1 Feb 2011 17:06

Re: Guvnor - Limitation for number of classes or fields?

I submitted this before, but perhaps I didn’t word my question well.

 

Does anyone else have issues with Guvnor throwing a “script is taking too long” when hitting the plus sign next to the THEN statement?  I’ve had the issue in both IE and Firefox, but Safari doesn’t give me any issues and is snappy.

 

I have 263 class files in my package with a total of 2600+ fields.

 

Is this a limitation of Guvnor? Could there be something in my object model (.jar file) that when it’s uploaded causes this?

 

Any help is appreciated,

 

Dean

 

From: rules-users-bounces <at> lists.jboss.org [mailto:rules-users-bounces <at> lists.jboss.org] On Behalf Of Dean Whisnant
Sent: Wednesday, January 05, 2011 12:48 PM
To: Rules Users List
Subject: [rules-users] Guvnor - Limitation for number of classes or fields?

 

My class model contains in the neighborhood of 2,400 fields which we have broken down into the imported classes below.  The breakdown is based upon repeatable loops within an EDI transaction.  This allows our users to first select the LOOP (or class from below) and then choose from a smaller number of fields when building their rules.

 

When creating a rule in Guvnor, the WHEN  class/field choosers work very quickly.  But then when you do the THEN side, a message pops up saying that A Script on the page is causing  the web browser to run slowly.  You have to answer NO to this question approximately 3 times before it then brings up the “add new action” dialog.  The field chooser then works fine, though you get the script message again when you go to add another action.

 

Is there a limitation to Guvnor for the number of classes or fields in the model?  Is there a memory setting that needs to be configured differently?

 

Thank you in advance!

 

Dean

 

 

import com.hipaa837p.Loop2420B_Segment_REF

import com.hipaa837p.Loop2420D_Segment_REF

import com.hipaa837p.Loop2330B_Segment_DTP

import com.hipaa837p.Loop2010CA_Segment_NM1

import com.hipaa837p.Loop2010BA_Segment_NM1

import com.hipaa837p.Loop2400_Segment_K3

import com.hipaa837p.Loop2300_Segment_SV5

import com.hipaa837p.Loop2330C_Segment_REF

import com.hipaa837p.Loop2400_Segment_HCP

import com.hipaa837p.Loop2300_Segment_SV1

import com.hipaa837p.Loop2400_Segment_SV1

import com.hipaa837p.Loop2400_Segment_DTP

import com.hipaa837p.Loop2000B_Segment_SBR

import com.hipaa837p.Loop2300_Segment_QTY

import com.hipaa837p.Loop2420H_Segment_N4

import com.hipaa837p.Loop2310E_Segment_NM1

import com.hipaa837p.Loop2010CA_Segment_REF

import com.hipaa837p.Loop2400_Segment_CR3

import com.hipaa837p.TransactionTrailer_Segment_SE

import com.hipaa837p.Loop2310A_Segment_NM1

import com.hipaa837p.Loop2420H_Segment_N3

import com.hipaa837p.Loop2400_Segment_CR1

import com.hipaa837p.Loop2400_Segment_PWK

import com.hipaa837p.Loop2300_Segment_CRC

import com.hipaa837p.Loop2420G_Segment_NM1

import com.hipaa837p.Loop2010BB_Segment_NM1

import com.hipaa837p.Loop2300_Segment_SBR

import com.hipaa837p.Loop2410_Segment_CTP

import com.hipaa837p.Loop2320_Segment_AMT

import com.hipaa837p.Loop2010AA_Segment_REF

import com.hipaa837p.Loop2420C_Segment_N3

import com.hipaa837p.Loop2310B_Segment_PRV

import com.hipaa837p.Loop2420E_Segment_PER

import com.hipaa837p.Loop2420C_Segment_N4

import com.hipaa837p.Loop2330F_Segment_REF

import com.hipaa837p.Loop2310C_Segment_PER

import com.hipaa837p.Loop2420F_Segment_NM1

import com.hipaa837p.Loop2330D_Segment_REF

import com.hipaa837p.Loop2300_Segment_PAT

import com.hipaa837p.Loop2300_Segment_AMT

import com.hipaa837p.Loop2010AC_Segment_N3

import com.hipaa837p.Loop2300_Segment_CUR

import com.hipaa837p.Loop2420G_Segment_N4

import com.hipaa837p.Loop2420G_Segment_N3

import com.hipaa837p.Loop2010AC_Segment_N4

import com.hipaa837p.Loop2320_Segment_MOA

import com.hipaa837p.Loop2310E_Segment_N3

import com.hipaa837p.Loop2300_Segment_FRM

import com.hipaa837p.Loop2300_Segment_CN1

import com.hipaa837p.Loop2310E_Segment_N4

import com.hipaa837p.Loop2330A_Segment_REF

import com.hipaa837p.Loop2010AC_Segment_NM1

import com.hipaa837p.Loop2420H_Segment_NM1

import com.hipaa837p.Loop2310D_Segment_NM1

import com.hipaa837p.Loop2300_Segment_PRV

import com.hipaa.CLM_PendInformation

import com.hipaa837p.Loop2400_Segment_CRC

import com.hipaa837p.Loop2010AA_Segment_PER

import com.hipaa837p.Loop2000A_Segment_CUR

import com.hipaa837p.Loop2310C_Segment_NM1

import com.hipaa837p.Loop2000A_Segment_PRV

import com.hipaa837p.Loop1000B_Segment_NM1

import com.hipaa837p.Loop2000B_Segment_HL

import com.hipaa837p.Loop2300_Segment_MEA

import com.hipaa837p.Loop2410_Segment_LIN

import com.hipaa837p.Loop2330F_Segment_NM1

import com.hipaa837p.Loop2300_Segment_DMG

import com.hipaa837p.Loop2330E_Segment_REF

import com.hipaa837p.Loop2300_Segment_CTP

import com.hipaa837p.Loop2300_Segment_DTP

import com.hipaa837p.Loop2010AA_Segment_N3

import com.hipaa837p.Loop2300_Segment_LIN

import com.hipaa837p.Loop2010AA_Segment_N4

import com.hipaa837p.Loop2300_Segment_PS1

import com.hipaa837p.Loop2330C_Segment_NM1

import com.hipaa837p.Loop2300_Segment_CLM

import com.hipaa837p.Loop2400_Segment_SV5

import com.hipaa837p.Loop2420D_Segment_NM1

import com.hipaa837p.Loop2400_Segment_REF

import com.hipaa837p.Loop2330E_Segment_NM1

import com.hipaa837p.Loop2320_Segment_OI

import com.hipaa837p.Loop2420C_Segment_NM1

import com.hipaa837p.Loop2010BA_Segment_REF

import com.hipaa837p.Loop2400_Segment_QTY

import com.hipaa837p.Loop2300_Segment_SE

import com.hipaa837p.Loop2420A_Segment_REF

import com.hipaa837p.Loop2010BA_Segment_DMG

import com.hipaa837p.Loop2300_Segment_LX

import com.hipaa837p.Loop2010AB_Segment_NM1

import com.hipaa837p.Loop2300_Segment_LQ

import com.hipaa837p.Loop2430_Segment_SVD

import com.hipaa837p.Loop2000C_Segment_HL

import com.hipaa837p.Loop2000C_Segment_PAT

import com.hipaa837p.Loop2330B_Segment_REF

import com.hipaa837p.TransactionHeader_Segment_BHT

import com.hipaa837p.Loop2400_Segment_PS1

import com.hipaa837p.Loop2410_Segment_REF

import com.hipaa837p.TransactionHeader_Segment_ST

import com.hipaa837p.Loop2310A_Segment_REF

import com.hipaa837p.Loop2330G_Segment_REF

import com.hipaa837p.Loop2310B_Segment_REF

import com.hipaa.HipaaDroolsObject

import com.hipaa837p.Loop2310D_Segment_REF

import com.hipaa837p.Loop2420A_Segment_NM1

import com.hipaa837p.Loop2300_Segment_K3

import com.hipaa837p.Loop2300_Segment_N4

import com.hipaa837p.Loop2320_Segment_CAS

import com.hipaa837p.Loop2300_Segment_N3

import com.hipaa837p.Loop2330D_Segment_NM1

import com.hipaa837p.Loop1000A_Segment_PER

import com.hipaa837p.Loop2400_Segment_CN1

import com.hipaa837p.Loop2330A_Segment_N3

import com.hipaa837p.Loop1000A_Segment_NM1

import com.hipaa837p.Loop2330A_Segment_N4

import com.hipaa837p.Loop2330A_Segment_NM1

import com.hipaa837p.Loop2400_Segment_MEA

import com.hipaa837p.Loop2010BB_Segment_REF

import com.hipaa837p.Loop2310C_Segment_N3

import com.hipaa837p.Loop2310C_Segment_N4

import com.hipaa837p.Loop2000B_Segment_PAT

import com.hipaa837p.Loop2330G_Segment_NM1

import com.hipaa837p.Loop2430_Segment_CAS

import com.hipaa837p.Loop2010BA_Segment_PER

import com.hipaa837p.Loop2300_Segment_NM1

import com.hipaa837p.Loop2300_Segment_NTE

import com.hipaa837p.Loop2300_Segment_MOA

import com.hipaa837p.Loop2310C_Segment_REF

import com.hipaa837p.Loop2300_Segment_SVD

import com.hipaa837p.Loop2400_Segment_LX

import com.hipaa837p.Loop2420E_Segment_REF

import com.hipaa837p.Loop2310B_Segment_NM1

import com.hipaa837p.Loop2000A_Segment_HL

import com.hipaa837p.Loop2420C_Segment_REF

import com.hipaa837p.Loop2300_Segment_PWK

import com.hipaa.CLM_ClaimLineItem

import com.hipaa837p.Loop2300_Segment_CR1

import com.hipaa837p.Loop2420E_Segment_N4

import com.hipaa837p.Loop2420E_Segment_N3

import com.hipaa837p.Loop2010AB_Segment_N3

import com.hipaa837p.Loop2300_Segment_CR3

import com.hipaa837p.Loop2400_Segment_AMT

import com.hipaa837p.Loop2300_Segment_CR2

import com.hipaa837p.Loop2300_Segment_CAS

import com.hipaa837p.Loop2310F_Segment_N4

import com.hipaa837p.Loop2300_Segment_PER

import com.hipaa837p.Loop2010BA_Segment_N3

import com.hipaa837p.Loop2010BA_Segment_N4

import com.hipaa837p.Loop2310F_Segment_N3

import com.hipaa837p.Loop2010AB_Segment_N4

import com.hipaa837p.Loop2420B_Segment_NM1

import com.hipaa837p.Loop2330B_Segment_N3

import com.hipaa837p.Loop2330B_Segment_N4

import com.hipaa837p.Loop2010CA_Segment_N4

import com.hipaa837p.Loop2010CA_Segment_N3

import com.hipaa837p.Loop2320_Segment_SBR

import com.hipaa837p.Loop2010CA_Segment_PER

import com.hipaa837p.Loop2430_Segment_AMT

import com.hipaa837p.Loop2010BB_Segment_N4

import com.hipaa837p.Loop2420E_Segment_NM1

import com.hipaa837p.Loop2300_Segment_REF

import com.hipaa837p.Loop2420F_Segment_REF

import com.hipaa837p.Loop2010AC_Segment_REF

import com.hipaa837p.Loop2010BB_Segment_N3

import com.hipaa837p.Loop2330B_Segment_NM1

import com.hipaa837p.Loop2420A_Segment_PRV

import com.hipaa837p.Loop2430_Segment_DTP

import com.hipaa837p.Loop2010AA_Segment_NM1

import com.hipaa837p.Loop2010CA_Segment_DMG

import com.hipaa837p.Loop2300_Segment_HL

import com.hipaa837p.Loop2300_Segment_HI

import com.hipaa837p.Loop2400_Segment_NTE

import com.hipaa837p.Loop2300_Segment_OI

import com.hipaa837p.Loop2310F_Segment_NM1

import com.hipaa837p.Loop2300_Segment_HCP

 

 

 

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
cclark01 | 1 Feb 2011 17:08
Picon
Favicon

Who writes your rules? Dev vs. BA


My company is looking to use Guvnor in a new application we're writing.  Part
of the appeal is the idea that Business Analysts will be able to go and
write rules by themselves.  However, in doing a small proof-of-concept, it
appears that you need intimate knowledge of the object model in order to
write any meaningful rules.

I've read up on DSL and it looks like that might help things, but it also
sounds like DSL is the kind of thing that gets built up over time.

So... what's your experience?  Do BA's or Developers write the rules in your
applications?  Does the complexity of the object model play a role in who
can write rules, or is it just a matter of training?
If you've created a DSL, how easy/quick was it?  If not, any particular
reason why not?

I'm looking for some "real life" experiences so that we can have appropriate
expectations going into the project.

Thanks,
Chris
--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Who-writes-your-rules-Dev-vs-BA-tp2398166p2398166.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Mauricio Salatino | 1 Feb 2011 17:12
Picon
Gravatar

Re: Question on Drools upgrade from 2 to 5

Probably yes, the structures changes a lot from version 2 to 5.
But depends on your use case if the memory consumption will affect you or not..
Greetings.

PS: let me know if you need any help on that migration, I've never used Drools 2, but I would like to take a look at the migration process.


On Mon, Jan 31, 2011 at 4:26 PM, Steve Floridas <steve.floridas <at> gmail.com> wrote:
Thank you much. Mauricio. Thats right that there are lot of changes till
version 5.
How about my first question? Will the memory of the compiled rules have any
effect on it?

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
 - CTO <at> http://www.plugtree.com 
 - MyJourney <at> http://salaboy.wordpress.com
 - Co-Founder <at> http://www.jbug.com.ar
 
 - Salatino "Salaboy" Mauricio -
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
OlliSee | 1 Feb 2011 17:33
Picon
Favicon

Re: Drools Server 5.1.1 - can't run test.jsp


HI Esteban,

thanks for your hint.. But it didn't work out.. startup was fine again, now
only without that "INFO". But still impossible to run the test.jsp. There's
still this single warning ("WARNUNG") in the log. Does that happen to be a
problem?

Anyone got ideas?
--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p2398395.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

JeffMax | 1 Feb 2011 17:54
Picon
Gravatar

Re: Drools Server 5.1.1 - can't run test.jsp


I found when I was setting up the server that the default url for posting
required two consecutive "kservice/"'s because of the way the web.xml is
setup. 

It looks like the root of the stack trace is a 404, so I would try posting
to http://localhost:8080/drools-server-app/kservice/kservice/rest/execute,
or since that is probably being done by the test.jsp, you could try the
following:

 In camel-server.xml, change the line that says "address="/kservice/rest" to
just "address="/rest".

A while ago I wrote a post that might be of some help, it is not exactly
what you are trying to do, but I believe if you were to follow it, it might
help with understanding the drools-server.

http://drools-java-rules-engine.46999.n3.nabble.com/Sending-requests-to-the-Drools-Execution-Server-from-an-external-source-td1776466.html

Jeff

--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p2398620.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Michael Anstis | 1 Feb 2011 18:02
Picon
Gravatar

Re: Guvnor - Limitation for number of classes or fields?

Hi Dean,

This problem is usually caused by *any* client-side script triggering a synchronous server round-trip that takes a long time to return and the browser suspects the script has hung.

I suspect the implementation of "THEN" doesn't expect large models and the operation is taking a long time to return.

My advice would be to raise a JIRA recording the issue with, ideally, a test-case demonstrating the problem.

With kind regards,

Mike

2011/2/1 Dean Whisnant <dean <at> basys.com>

I submitted this before, but perhaps I didn’t word my question well.

 

Does anyone else have issues with Guvnor throwing a “script is taking too long” when hitting the plus sign next to the THEN statement?  I’ve had the issue in both IE and Firefox, but Safari doesn’t give me any issues and is snappy.

 

I have 263 class files in my package with a total of 2600+ fields.

 

Is this a limitation of Guvnor? Could there be something in my object model (.jar file) that when it’s uploaded causes this?

 

Any help is appreciated,

 

Dean

 

From: rules-users-bounces <at> lists.jboss.org [mailto:rules-users-bounces <at> lists.jboss.org] On Behalf Of Dean Whisnant
Sent: Wednesday, January 05, 2011 12:48 PM
To: Rules Users List
Subject: [rules-users] Guvnor - Limitation for number of classes or fields?

 

My class model contains in the neighborhood of 2,400 fields which we have broken down into the imported classes below.  The breakdown is based upon repeatable loops within an EDI transaction.  This allows our users to first select the LOOP (or class from below) and then choose from a smaller number of fields when building their rules.

 

When creating a rule in Guvnor, the WHEN  class/field choosers work very quickly.  But then when you do the THEN side, a message pops up saying that A Script on the page is causing  the web browser to run slowly.  You have to answer NO to this question approximately 3 times before it then brings up the “add new action” dialog.  The field chooser then works fine, though you get the script message again when you go to add another action.

 

Is there a limitation to Guvnor for the number of classes or fields in the model?  Is there a memory setting that needs to be configured differently?

 

Thank you in advance!

 

Dean

 

 

import com.hipaa837p.Loop2420B_Segment_REF

import com.hipaa837p.Loop2420D_Segment_REF

import com.hipaa837p.Loop2330B_Segment_DTP

import com.hipaa837p.Loop2010CA_Segment_NM1

import com.hipaa837p.Loop2010BA_Segment_NM1

import com.hipaa837p.Loop2400_Segment_K3

import com.hipaa837p.Loop2300_Segment_SV5

import com.hipaa837p.Loop2330C_Segment_REF

import com.hipaa837p.Loop2400_Segment_HCP

import com.hipaa837p.Loop2300_Segment_SV1

import com.hipaa837p.Loop2400_Segment_SV1

import com.hipaa837p.Loop2400_Segment_DTP

import com.hipaa837p.Loop2000B_Segment_SBR

import com.hipaa837p.Loop2300_Segment_QTY

import com.hipaa837p.Loop2420H_Segment_N4

import com.hipaa837p.Loop2310E_Segment_NM1

import com.hipaa837p.Loop2010CA_Segment_REF

import com.hipaa837p.Loop2400_Segment_CR3

import com.hipaa837p.TransactionTrailer_Segment_SE

import com.hipaa837p.Loop2310A_Segment_NM1

import com.hipaa837p.Loop2420H_Segment_N3

import com.hipaa837p.Loop2400_Segment_CR1

import com.hipaa837p.Loop2400_Segment_PWK

import com.hipaa837p.Loop2300_Segment_CRC

import com.hipaa837p.Loop2420G_Segment_NM1

import com.hipaa837p.Loop2010BB_Segment_NM1

import com.hipaa837p.Loop2300_Segment_SBR

import com.hipaa837p.Loop2410_Segment_CTP

import com.hipaa837p.Loop2320_Segment_AMT

import com.hipaa837p.Loop2010AA_Segment_REF

import com.hipaa837p.Loop2420C_Segment_N3

import com.hipaa837p.Loop2310B_Segment_PRV

import com.hipaa837p.Loop2420E_Segment_PER

import com.hipaa837p.Loop2420C_Segment_N4

import com.hipaa837p.Loop2330F_Segment_REF

import com.hipaa837p.Loop2310C_Segment_PER

import com.hipaa837p.Loop2420F_Segment_NM1

import com.hipaa837p.Loop2330D_Segment_REF

import com.hipaa837p.Loop2300_Segment_PAT

import com.hipaa837p.Loop2300_Segment_AMT

import com.hipaa837p.Loop2010AC_Segment_N3

import com.hipaa837p.Loop2300_Segment_CUR

import com.hipaa837p.Loop2420G_Segment_N4

import com.hipaa837p.Loop2420G_Segment_N3

import com.hipaa837p.Loop2010AC_Segment_N4

import com.hipaa837p.Loop2320_Segment_MOA

import com.hipaa837p.Loop2310E_Segment_N3

import com.hipaa837p.Loop2300_Segment_FRM

import com.hipaa837p.Loop2300_Segment_CN1

import com.hipaa837p.Loop2310E_Segment_N4

import com.hipaa837p.Loop2330A_Segment_REF

import com.hipaa837p.Loop2010AC_Segment_NM1

import com.hipaa837p.Loop2420H_Segment_NM1

import com.hipaa837p.Loop2310D_Segment_NM1

import com.hipaa837p.Loop2300_Segment_PRV

import com.hipaa.CLM_PendInformation

import com.hipaa837p.Loop2400_Segment_CRC

import com.hipaa837p.Loop2010AA_Segment_PER

import com.hipaa837p.Loop2000A_Segment_CUR

import com.hipaa837p.Loop2310C_Segment_NM1

import com.hipaa837p.Loop2000A_Segment_PRV

import com.hipaa837p.Loop1000B_Segment_NM1

import com.hipaa837p.Loop2000B_Segment_HL

import com.hipaa837p.Loop2300_Segment_MEA

import com.hipaa837p.Loop2410_Segment_LIN

import com.hipaa837p.Loop2330F_Segment_NM1

import com.hipaa837p.Loop2300_Segment_DMG

import com.hipaa837p.Loop2330E_Segment_REF

import com.hipaa837p.Loop2300_Segment_CTP

import com.hipaa837p.Loop2300_Segment_DTP

import com.hipaa837p.Loop2010AA_Segment_N3

import com.hipaa837p.Loop2300_Segment_LIN

import com.hipaa837p.Loop2010AA_Segment_N4

import com.hipaa837p.Loop2300_Segment_PS1

import com.hipaa837p.Loop2330C_Segment_NM1

import com.hipaa837p.Loop2300_Segment_CLM

import com.hipaa837p.Loop2400_Segment_SV5

import com.hipaa837p.Loop2420D_Segment_NM1

import com.hipaa837p.Loop2400_Segment_REF

import com.hipaa837p.Loop2330E_Segment_NM1

import com.hipaa837p.Loop2320_Segment_OI

import com.hipaa837p.Loop2420C_Segment_NM1

import com.hipaa837p.Loop2010BA_Segment_REF

import com.hipaa837p.Loop2400_Segment_QTY

import com.hipaa837p.Loop2300_Segment_SE

import com.hipaa837p.Loop2420A_Segment_REF

import com.hipaa837p.Loop2010BA_Segment_DMG

import com.hipaa837p.Loop2300_Segment_LX

import com.hipaa837p.Loop2010AB_Segment_NM1

import com.hipaa837p.Loop2300_Segment_LQ

import com.hipaa837p.Loop2430_Segment_SVD

import com.hipaa837p.Loop2000C_Segment_HL

import com.hipaa837p.Loop2000C_Segment_PAT

import com.hipaa837p.Loop2330B_Segment_REF

import com.hipaa837p.TransactionHeader_Segment_BHT

import com.hipaa837p.Loop2400_Segment_PS1

import com.hipaa837p.Loop2410_Segment_REF

import com.hipaa837p.TransactionHeader_Segment_ST

import com.hipaa837p.Loop2310A_Segment_REF

import com.hipaa837p.Loop2330G_Segment_REF

import com.hipaa837p.Loop2310B_Segment_REF

import com.hipaa.HipaaDroolsObject

import com.hipaa837p.Loop2310D_Segment_REF

import com.hipaa837p.Loop2420A_Segment_NM1

import com.hipaa837p.Loop2300_Segment_K3

import com.hipaa837p.Loop2300_Segment_N4

import com.hipaa837p.Loop2320_Segment_CAS

import com.hipaa837p.Loop2300_Segment_N3

import com.hipaa837p.Loop2330D_Segment_NM1

import com.hipaa837p.Loop1000A_Segment_PER

import com.hipaa837p.Loop2400_Segment_CN1

import com.hipaa837p.Loop2330A_Segment_N3

import com.hipaa837p.Loop1000A_Segment_NM1

import com.hipaa837p.Loop2330A_Segment_N4

import com.hipaa837p.Loop2330A_Segment_NM1

import com.hipaa837p.Loop2400_Segment_MEA

import com.hipaa837p.Loop2010BB_Segment_REF

import com.hipaa837p.Loop2310C_Segment_N3

import com.hipaa837p.Loop2310C_Segment_N4

import com.hipaa837p.Loop2000B_Segment_PAT

import com.hipaa837p.Loop2330G_Segment_NM1

import com.hipaa837p.Loop2430_Segment_CAS

import com.hipaa837p.Loop2010BA_Segment_PER

import com.hipaa837p.Loop2300_Segment_NM1

import com.hipaa837p.Loop2300_Segment_NTE

import com.hipaa837p.Loop2300_Segment_MOA

import com.hipaa837p.Loop2310C_Segment_REF

import com.hipaa837p.Loop2300_Segment_SVD

import com.hipaa837p.Loop2400_Segment_LX

import com.hipaa837p.Loop2420E_Segment_REF

import com.hipaa837p.Loop2310B_Segment_NM1

import com.hipaa837p.Loop2000A_Segment_HL

import com.hipaa837p.Loop2420C_Segment_REF

import com.hipaa837p.Loop2300_Segment_PWK

import com.hipaa.CLM_ClaimLineItem

import com.hipaa837p.Loop2300_Segment_CR1

import com.hipaa837p.Loop2420E_Segment_N4

import com.hipaa837p.Loop2420E_Segment_N3

import com.hipaa837p.Loop2010AB_Segment_N3

import com.hipaa837p.Loop2300_Segment_CR3

import com.hipaa837p.Loop2400_Segment_AMT

import com.hipaa837p.Loop2300_Segment_CR2

import com.hipaa837p.Loop2300_Segment_CAS

import com.hipaa837p.Loop2310F_Segment_N4

import com.hipaa837p.Loop2300_Segment_PER

import com.hipaa837p.Loop2010BA_Segment_N3

import com.hipaa837p.Loop2010BA_Segment_N4

import com.hipaa837p.Loop2310F_Segment_N3

import com.hipaa837p.Loop2010AB_Segment_N4

import com.hipaa837p.Loop2420B_Segment_NM1

import com.hipaa837p.Loop2330B_Segment_N3

import com.hipaa837p.Loop2330B_Segment_N4

import com.hipaa837p.Loop2010CA_Segment_N4

import com.hipaa837p.Loop2010CA_Segment_N3

import com.hipaa837p.Loop2320_Segment_SBR

import com.hipaa837p.Loop2010CA_Segment_PER

import com.hipaa837p.Loop2430_Segment_AMT

import com.hipaa837p.Loop2010BB_Segment_N4

import com.hipaa837p.Loop2420E_Segment_NM1

import com.hipaa837p.Loop2300_Segment_REF

import com.hipaa837p.Loop2420F_Segment_REF

import com.hipaa837p.Loop2010AC_Segment_REF

import com.hipaa837p.Loop2010BB_Segment_N3

import com.hipaa837p.Loop2330B_Segment_NM1

import com.hipaa837p.Loop2420A_Segment_PRV

import com.hipaa837p.Loop2430_Segment_DTP

import com.hipaa837p.Loop2010AA_Segment_NM1

import com.hipaa837p.Loop2010CA_Segment_DMG

import com.hipaa837p.Loop2300_Segment_HL

import com.hipaa837p.Loop2300_Segment_HI

import com.hipaa837p.Loop2400_Segment_NTE

import com.hipaa837p.Loop2300_Segment_OI

import com.hipaa837p.Loop2310F_Segment_NM1

import com.hipaa837p.Loop2300_Segment_HCP

 

 

 


_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Gmane