Drools server deployment
by Sébastien Raickman
Hi all,
I am working with drools-server linked to Guvnor repository by a changeset
where my URL package/snapshot is defined.
Both of them are running on the same Jboss server instance
(drools-guvnor-5.1.1 and drools-server-5.1.1)
First, as the default deployment order is alphabetical, guvnor is deployed,
and that's what I need.
But when drools-server si deploying, I have the following error:
It seems that is caused by a timeout exception...
After Jboss has started, I touch web.xml on drools-server.war and everything
is deployed...
Any idea??
Thanks
Seb
2011-03-22 12:37:33,284 INFO [STDOUT] [2011:03:81 12:03:284:debug]
KnowledgeAgent rebuilding KnowledgeBase using ChangeSet
2011-03-22 12:37:43,292 INFO [STDOUT] [2011:03:81 12:03:292:exception]
2011-03-22 12:37:43,292 INFO [STDOUT] j*ava.lang.RuntimeException:
KnowledgeAgent exception while trying to deserialize
KnowledgeDefinitionsPackage*
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:664)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:889)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:704)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:584)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:185)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.container.spring.beans.KnowledgeAgentBeanFactory.afterPropertiesSet(KnowledgeAgentBeanFactory.java:91)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
2011-03-22 12:37:43,293 INFO [STDOUT] at
java.security.AccessController.doPrivileged(Native Method)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
2011-03-22 12:37:43,294 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
2011-03-22 12:37:43,294 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,294 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
2011-03-22 12:37:43,295 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
2011-03-22 12:37:43,295 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,295 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.WebModule.startModule(WebModule.java:83)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.WebModule.startService(WebModule.java:61)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
2011-03-22 12:37:43,295 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
2011-03-22 12:37:43,295 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,295 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
2011-03-22 12:37:43,296 INFO [STDOUT] at $Proxy0.start(Unknown Source)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.system.ServiceController.start(ServiceController.java:417)
2011-03-22 12:37:43,296 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
2011-03-22 12:37:43,296 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,296 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,296 INFO [STDOUT] at $Proxy206.start(Unknown Source)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
2011-03-22 12:37:43,296 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
2011-03-22 12:37:43,296 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,296 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,297 INFO [STDOUT] at $Proxy207.start(Unknown Source)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
2011-03-22 12:37:43,297 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
2011-03-22 12:37:43,297 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,297 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,298 INFO [STDOUT] at $Proxy10.deploy(Unknown Source)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
2011-03-22 12:37:43,298 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
2011-03-22 12:37:43,298 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,298 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
2011-03-22 12:37:43,299 INFO [STDOUT] at $Proxy0.start(Unknown Source)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.system.ServiceController.start(ServiceController.java:417)
2011-03-22 12:37:43,299 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
2011-03-22 12:37:43,299 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,299 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,299 INFO [STDOUT] at $Proxy4.start(Unknown Source)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
2011-03-22 12:37:43,299 INFO [STDOUT] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2011-03-22 12:37:43,300 INFO [STDOUT] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2011-03-22 12:37:43,300 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,300 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,300 INFO [STDOUT] at $Proxy5.deploy(Unknown Source)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.Main.boot(Main.java:200)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.Main$1.run(Main.java:508)
2011-03-22 12:37:43,300 INFO [STDOUT] at
java.lang.Thread.run(Thread.java:662)
2011-03-22 12:37:43,301 INFO [STDOUT] *Caused by:
java.net.SocketTimeoutException: Read timed out*
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.net.SocketInputStream.socketRead0(Native Method)
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.net.SocketInputStream.read(SocketInputStream.java:129)
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.io.BufferedInputStream.read(BufferedInputStream.java:317)
2011-03-22 12:37:43,301 INFO [STDOUT] at
sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
2011-03-22 12:37:43,301 INFO [STDOUT] at
sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
2011-03-22 12:37:43,301 INFO [STDOUT] at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1200)
2011-03-22 12:37:43,301 INFO [STDOUT] at
org.drools.io.impl.UrlResource.grabStream(UrlResource.java:210)
2011-03-22 12:37:43,301 INFO [STDOUT] at
org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:146)
2011-03-22 12:37:43,301 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:652)
13 years, 9 months
How to manage lists of data
by Alexander, Scott F
Hi,
Im pretty new to drools and have been going through the docs for the Expert and guvnor. I have some basic unit tests running with the rules I am trying to replicate from a legacy system. One of the rules my current system uses is to check a property in an Object against a list of values and fire if the property is present in the list ie list.contains(someValue);
I am trying to find out what the best practise is for setting up the lists which will be checked against. I don't want to have to include these lists in java classes and upload them as facts. I would much rather be able to manage them through guvnor so my non technical users can manage them themselves without the need to release a new jar file.
Thanks.
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.
13 years, 9 months
compare date in map in rule condition
by James Gu
Hi, I am trying to compare date in condition of rule. I set the date format
in system parameter.
System.setProperty("drools.dateformat", "dd/MM/yyyy");
When I get the date from the fact object directly, it works well.
when
$record: Record( startDate < "01/01/3000" )
In my application, I need to get a map from fact objet, then use a key to
get the target object, then get "dateValue" from the target object. This
condition doesn't work. "dateValue" is a java.util.Date object.
when
$record: Record( fieldMap["STARTDATE"].dateValue < "01/01/3000" )
Does anyone know how to make it works?
This is the error message.
org.drools.RuntimeDroolsException: Exception executing predicate
fieldMap["STARTDATE"].dateValue < "01/01/3000"
at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:279)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
at
org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:59)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:190)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:145)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1174)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1123)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:917)
at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:251)
at dti.drools.test.Test.oneRecordThousandTime(Test.java:81)
at dti.drools.test.Test.main(Test.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:110)
Caused by: [Error: uncomparable values <> and <<01/01/3000>>]
[Near : {... Unknown ....}]
^
[Line: 1, Column: 0]
at
org.mvel2.math.MathProcessor.doOperationNonNumeric(MathProcessor.java:230)
at org.mvel2.math.MathProcessor._doOperations(MathProcessor.java:175)
at org.mvel2.math.MathProcessor.doOperations(MathProcessor.java:79)
at
org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:111)
at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:104)
at org.mvel2.MVEL.executeExpression(MVEL.java:1001)
at
org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:91)
at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:272)
... 15 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Date
at java.util.Date.compareTo(Date.java:112)
at
org.mvel2.math.MathProcessor.doOperationNonNumeric(MathProcessor.java:227)
... 23 more
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/compare-date-in-map-i...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Parsing problems using a DSL
by drdaveg
I have run into a number of problems using a domain specific language (DSL)
on processing DSLR files. My biggest frustration - and one I am hoping
people can provide a work-around or guidance on - is that often the Eclipse
plug-in does not allow the DRL pane, showing the DRL file, to be clicked on
(and shown.) This sometimes happens when there are no compilation errors:
the DLR file is simply not being generated.
I have run into issues where an error like "parsing problem: contact the
support team" occurs or a null pointer exception occurs, but no error is
shown. My approach has been to make small changes in working DSL files
(i.e., describing the translations) at a time, to minimize impact. Can
anyone offer better approaches to building the DSL grammar?
On a related issue, many documents cite using DSL and regular expressions
for code-rewriting and - while I find documentation on antlr 3 masks for
doing some regular expressions - is the common re-writing task of using "or"
- as in
My object (Car|Bus|Buyer|Salesman)
supported in any way other than seperate lines for "object Car", "object
Bus", etc? Thanks!
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Parsing-problems-usin...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Limiting rule evaluation--not firing
by ljnelson
Hello; I am aware of the fundamental difference between inserting facts--and
evaluating them against all the rules in the rule base--and firing
rules--i.e., executing only certain rules' consequences.
I understand that ruleflow-group and agenda-group and activation-group can
all be employed to govern which rules' consequences are fired at
fireAllRules() time.
My question (which has been asked by many others in different ways, yet not
answered as far as I can tell on the mailing list to anyone's satisfaction)
is: is there any construct that can be used when it is known up front that
only certain rules will match? That is, is there any way to limit rule
evaluation?
For example, I have a series of surveys that all use the same KnowledgeBase
to govern the flow of the user through the survey. But once I've asked a
given question, then I know right then and there which rules have a chance
of taking effect.
I've already put them in their own agenda-group, and I already switch focus
to that agenda group prior to fact insertion, so that by the time I call
fireAllRules() I've made it so that--say--ten rules' consequences are the
only ones (out of hundreds) that could possibly fire in this given session.
But unless I'm radically misunderstanding something, each time I insert a
fact, it is evaluated against all the hundreds of rules, even when several
hundred of those rules don't have any chance of having their consequences
firing.
I even understand (I think) why this is. If I were, for example, to
subsequently pop the agenda group that I had set focus to, then "MAIN" would
be selected, and for those activations to fire the inserted fact would have
had to have been evaluated against all the rules, including those whose
agenda group is "MAIN".
But I guess what I'm wondering is: can I somehow turn this off? Can I, in
other words, partition the KnowledgeBase itself? Can I effectively tell
Drools, during this stateless session, don't even bother trying to match
facts against rules 1-10, just try rules 11-14?
Thanks,
Laird
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Limiting-rule-evaluat...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Drools 5.1.1 : Error reporting issue in PackageBuilder
by arjun dhar
Hi,
I was trying out the new stable version of Drools and on faulty DRL files I was getting:
Exception in thread "main" java.lang.ArrayStoreException
at java.lang.System.arraycopy(Native Method)
at java.util.ArrayList.toArray(ArrayList.java:306)
at org.drools.compiler.PackageBuilder.getErrors(PackageBuilder.java:1274)
at org.drools.builder.impl.KnowledgeBuilderImpl.getErrors(KnowledgeBuilderImpl.java:70)
at com.arjun.SetGame.main(SetGame.java:18)
The actual Error being:: (See Reference DRL at the end of this post)
[Unable to resolve ObjectType 'MockBoolean' : [Rule name='show_time']
, Incorrect number of arguments for interval timer 'int 5s 2m']
I'd assume it be better to have an Exception with the root cause, than a faulty Error trapping system, that is trapping a System generated Exception. Is this a bug in "PackageBuilder : Line 1274"?
Reference DRL:
package com.arjun
rule show_time
timer (int 5s 2m)
when
MockBoolean(value == true)
then
System.out.println("Hey");
end
13 years, 9 months
Migrate from JBRMS 4.0.7 to Guvnor 5.1
by smolnij
Hello all
I need to migrate from 4.0.7 drools to 5.1, could you please give some
advices and links?
We have drools JBRMS 4.0.7 app with lots of rules, persisted in Oracle. We
haven't any .drl files for these rules. I've tried to export these rules via
export feature from JBRMS 4 and then import the derived XML via import
feature in Guvnor 5, but I get the following error:
17:56:55,365 INFO [STDOUT] ERROR 16-03 17:56:55,361
(RulesRepository.java:importRulesRepositoryFromStream:1073) illegal
node name: {http://www.jcp.org/jcr/sv/1.0}node
javax.jcr.InvalidSerializedDataException: illegal node name:
{http://www.jcp.org/jcr/sv/1.0}node
at
org.apache.jackrabbit.core.xml.SysViewImportHandler.startElement(SysViewImportHandler.java:141)
at
org.apache.jackrabbit.core.xml.ImportHandler.startElement(ImportHandler.java:169)
at
org.apache.jackrabbit.commons.xml.DefaultContentHandler.startElement(DefaultContentHandler.java:161)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
Is there some way how we can transfer the rules from JBRMS to Guvnor? Does
the Guvnor has another rules format, so it can't import from JBRMS XML? Is
there some specs about differences, so I would be able to write the
converter? Or is there some already published converter?
Would it make sense to export the rules via JCR API from old JBRM JCR (1.3)
and then import it to new JCR repo created by Guvnor?
How we can upgrade the drools version without loosing our already created
rules?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Migrate-from-JBRMS-4-...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Question regarding drools example
by DECOUX Yannick
Hi,
I'm new to drools and i'm trying to learn through the drools examples.
Inside the file org.drools.examples.process.order.logging.drl I see this :
workItem: WorkItemImpl( state == WorkItemImpl.PENDING ) from workItemNodeInstance.getWorkItem()
The PENDING constant seems to be missing in the org.drools.process.instance.impl.WorkItemImpl class
Am I missing something ?
Thanks
Yannick
13 years, 9 months
Call for Paper: RuleML-2011@IJCAI Doctoral Consortium and Poster Session
by Adrian Paschke
=====================================================================
Open Calls
for
RuleML-2011 Doctoral Consortium
&
RuleML-2011 Posters
http://www.defeasible.org/ruleml2011/
Submission deadline: April 11, 2011
=====================================================================
RuleML 2011 Doctoral Consortium
-------------------------------
The RuleML 2011 doctoral consortium is a new initiative of the International
Symposium on Rules, RuleML, to attract and promote Ph.D. research in the
area of Rules and Markup Languages. The doctoral symposium offers to
students a close contact with leading experts on the field, as well as the
opportunity to present and discuss their ideas in a dynamic and friendly
setting. The accepted thesis descriptions will be presented to an interested
audience and subject to discussion with a panel of senior researchers, and
we expect submissions on any of this year's RuleML topics:
- Rules and Automated Reasoning
- Logic Programming and Non-monotonic Reasoning
- Rules, Agents and Norms
- Rule-Based Distributed/Multi-Agent Systems
- Rule-Based Policies, Reputation and Trust
- Rule-based Event Processing and Reaction Rules
- Fuzzy Rules and Uncertainty
- Rule Transformation and Extraction
- Vocabularies, Ontologies, and Business rules
Accepted submissions will be published in internal proceedings and later on
published in CEUR Workshop Proceedings volume of RuleML.
Submission
Students are invited to submit an original description of their work
addressing the following aspects:
A clear formulation of the research question.
An identification of the significant problems in the field of research.
An outline of the current knowledge of the problem domain, as well as the
state of existing solutions.
A presentation of any preliminary ideas, the proposed approach and the
results achieved so far.
A sketch of the applied research methodology.
A description of the Ph.D. project's contribution to the problem solution.
A discussion of how the suggested solution is different, new, or better as
compared to existing approaches to the problem.
Thesis descriptions are limited to 8 pages in English using LNCS format
(http://www.springer.de/comp/lncs/authors.html)
and submitted electronically in PDF format jointly with a maximum 5 page CV.
Please submit to:
http://www.easychair.org/conferences/?conf=ruleml2011consortium
Important Dates
- Paper submission: April 11, 2011 (11:59PM, UTC-12)
- Notification of acceptance/rejection: May 2, 2011
- Camera-ready copy due: May 20, 2011
Chairs
- Carlos Damásio, Universidade Nova de Lisboa
- Alun Preece, Cardiff University
- Umberto Straccia, ISTI-CNR
Program Committee
The program committee of RuleML 2011 doctoral consortium coincides with the
one of RuleML 2011 @ IJCAI to promote reviewing and feedback from the
leading experts on rules and semantic technology.
RuleML-2011 Posters
--------------------
We invite participants to submit a poster to the RuleML-2011@IJCAI
conference. Posters provide an opportunity to receive direct feedback from
the community. Poster papers limited to 15 pages in English and must be
formatted in LNCS format (http://www.springer.de/comp/lncs/authors.html).
Please submit to:
http://www.easychair.org/conferences/?conf=ruleml2011consortium
Accepted submissions will be published in CEUR Workshop Proceedings volume
of RuleML. Participants will be able to display their poster during the
poster session of the RuleML-2011 conference and give a short presentation
about their poster.
Important Dates
- Paper submission: April 11, 2011 (11:59PM, UTC-12)
- Notification of acceptance/rejection: May 2, 2011
- Camera-ready copy due: May 20, 2011
Chairs
- Jeff Pan, University of Aberdeen, UK
- Monica Palmirani, University of Bologna, Italy
Program Committee
The program committee of RuleML 2011 poster consortium coincides with the
one of RuleML 2011 @ IJCAI.
13 years, 9 months