KnowledgeAgent exception while migrating from 5.4 CR1 to 5.4 final
by sumatheja
Hi,
I've a drools application running on drools 5.4 cr1. It was working fine
until I migrated to 5.4 final. Now When I try to get the
StatefulKnowledgeSession from the Guvnor(5.4 final) I get the following
exception
17:04:55,763 ERROR [stderr] (http--127.0.0.1-8380-2)
java.lang.RuntimeException: KnowledgeAgent exception while trying to
deserialize KnowledgeDefinitionsPackage
17:04:55,767 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:776)
17:04:55,771 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.agent.impl.KnowledgeAgentImpl.incrementalBuildResources(KnowledgeAgentImpl.java:955)
17:04:55,774 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:675)
17:04:55,778 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:203)
17:04:55,781 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:182)
17:04:55,784 ERROR [stderr] (http--127.0.0.1-8380-2) at
mattelli.re.ComplianceEngine.readKnowledgeBase(ComplianceEngine.java:2393)
17:04:55,787 ERROR [stderr] (http--127.0.0.1-8380-2) at
mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:133)
17:04:55,790 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:04:55,792 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
17:04:55,795 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:04:55,798 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.lang.reflect.Method.invoke(Method.java:597)
17:04:55,801 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)
17:04:55,805 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)
17:04:55,808 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)
17:04:55,811 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
17:04:55,815 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
17:04:55,818 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
17:04:55,821 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.util.concurrent.FutureTask.run(FutureTask.java:138)
17:04:55,823 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
17:04:55,826 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
17:04:55,830 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
17:04:55,833 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
17:04:55,836 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
17:04:55,839 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)
17:04:55,842 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
17:04:55,845 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
17:04:55,848 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)
17:04:55,851 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)
17:04:55,855 ERROR [stderr] (http--127.0.0.1-8380-2) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
17:04:55,857 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
17:04:55,860 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)
17:04:55,862 ERROR [stderr] (http--127.0.0.1-8380-2) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
17:04:55,865 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
17:04:55,868 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:04:55,871 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
17:04:55,874 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
17:04:55,877 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
17:04:55,880 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
17:04:55,883 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:04:55,887 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:04:55,890 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
17:04:55,893 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
17:04:55,895 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
17:04:55,899 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
17:04:55,901 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.lang.Thread.run(Thread.java:662)
17:04:55,904 ERROR [stderr] (http--127.0.0.1-8380-2) Caused by:
java.io.EOFException
17:04:55,906 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream$BlockDataInputStream.readBoolean(ObjectInputStream.java:2713)
17:04:55,909 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readBoolean(ObjectInputStream.java:883)
17:04:55,911 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.base.mvel.MVELCompilationUnit.readExternal(MVELCompilationUnit.java:199)
17:04:55,914 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)
17:04:55,917 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
17:04:55,919 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:55,922 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:55,924 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.rule.constraint.MvelConstraint.readExternal(MvelConstraint.java:398)
17:04:55,927 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)
17:04:55,931 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
17:04:55,933 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:55,936 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:55,938 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.util.ArrayList.readObject(ArrayList.java:593)
17:04:55,940 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
17:04:55,943 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:04:55,945 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.lang.reflect.Method.invoke(Method.java:597)
17:04:55,947 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
17:04:55,950 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
17:04:55,953 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
17:04:55,956 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:55,959 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:55,962 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.rule.Pattern.readExternal(Pattern.java:111)
17:04:55,964 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)
17:04:55,968 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
17:04:55,971 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:55,973 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:55,976 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.util.ArrayList.readObject(ArrayList.java:593)
17:04:55,978 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
17:04:55,980 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:04:55,983 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.lang.reflect.Method.invoke(Method.java:597)
17:04:55,986 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
17:04:55,989 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
17:04:55,992 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
17:04:55,994 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:55,997 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:55,999 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.rule.GroupElement.readExternal(GroupElement.java:63)
17:04:56,002 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)
17:04:56,004 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
17:04:56,007 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:56,010 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:56,012 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.rule.Rule.readExternal(Rule.java:181)
17:04:56,014 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)
17:04:56,017 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
17:04:56,020 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:56,023 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:56,026 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.util.IdentityHashMap.readObject(IdentityHashMap.java:1188)
17:04:56,029 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
17:04:56,031 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:04:56,035 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.lang.reflect.Method.invoke(Method.java:597)
17:04:56,038 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
17:04:56,042 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
17:04:56,045 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
17:04:56,050 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:56,052 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:56,054 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.rule.MVELDialectRuntimeData.readExternal(MVELDialectRuntimeData.java:88)
17:04:56,058 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)
17:04:56,061 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
17:04:56,065 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:56,068 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:56,070 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.util.HashMap.readObject(HashMap.java:1030)
17:04:56,073 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
17:04:56,076 ERROR [stderr] (http--127.0.0.1-8380-2) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:04:56,081 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.lang.reflect.Method.invoke(Method.java:597)
17:04:56,084 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
17:04:56,088 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
17:04:56,091 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
17:04:56,094 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:56,097 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:56,102 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.rule.DialectRuntimeRegistry.readExternal(DialectRuntimeRegistry.java:59)
17:04:56,105 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)
17:04:56,109 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
17:04:56,113 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:56,118 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:56,122 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.rule.Package.readExternal(Package.java:208)
17:04:56,125 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)
17:04:56,128 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
17:04:56,131 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
17:04:56,134 ERROR [stderr] (http--127.0.0.1-8380-2) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
17:04:56,137 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.core.util.DroolsStreamUtils.streamIn(DroolsStreamUtils.java:205)
17:04:56,141 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.core.util.DroolsStreamUtils.streamIn(DroolsStreamUtils.java:174)
17:04:56,145 ERROR [stderr] (http--127.0.0.1-8380-2) at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:749)
17:04:56,149 ERROR [stderr] (http--127.0.0.1-8380-2) ... 44 more
17:04:56,152 ERROR
[org.drools.guvnor.server.files.PackageDeploymentServlet]
(http--127.0.0.1-8380-3) null: ClientAbortException:
java.net.SocketException: Software caused connection abort: socket write
error
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:403)
[jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:354)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:426)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:415)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)
[jbossweb-7.0.13.Final.jar:]
at
org.drools.guvnor.server.files.PackageDeploymentServlet$1.execute(PackageDeploymentServlet.java:272)
[guvnor-webapp-core-5.4.0.Final.jar:5.4.0.Final]
at
org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(RepositoryServlet.java:58)
[guvnor-webapp-core-5.4.0.Final.jar:5.4.0.Final]
at
org.drools.guvnor.server.files.PackageDeploymentServlet.doGet(PackageDeploymentServlet.java:139)
[guvnor-webapp-core-5.4.0.Final.jar:5.4.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.13.Final.jar:]
at
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
[weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.13.Final.jar:]
at
org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
[solder-impl-3.1.1.Final.jar:3.1.1.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.13.Final.jar:]
at
org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)
[solder-impl-3.1.1.Final.jar:3.1.1.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.13.Final.jar:]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
[jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Caused by: java.net.SocketException: Software caused connection abort:
socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
[rt.jar:1.6.0_31]
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
[rt.jar:1.6.0_31]
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
[rt.jar:1.6.0_31]
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:724)
[jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:449)
[jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:748)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:559)
[jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.Response.doWrite(Response.java:594)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:398)
[jbossweb-7.0.13.Final.jar:]
... 32 more
However, when I replace the drools-core-5.4 final jar with
drools-core-5.4-CR1 jar (just the one jar, leaving the remaining jars as it
is) everything works fine again. Any idea If I'm missing something here?
I'm using
1> Drools-guvnor 5.4 final
2> Drools Expert 5.4 Final
3> jbpm 5.3 final
Any help is much appreciated.Thanks in Advance.
--
cheers
Sumatheja Dasararaju
13 years, 9 months
Jbpm documentation source project ?
by Cristiano Gavião
Hi,
Could someone point me to the source project that contains the
documentation of JBPM ?
and how can I build it?
thanks.
Cristiano
13 years, 9 months
Accumulate function
by Matteo Cusmai
Hi all,
i am going to use a custom accumulate function like that:
rule "CrowdInAreaEvent-event"
no-loop
when
$RFIDReader : SensorFixed(type == Sensor.SENSOR_TYPE_RFID,
$coverageArea : areaOfInterest )
not CrowdInAreaEvent( sensor == $RFIDReader, this meets[ 5s ] $obs )
$count : Integer( intValue > 10 )
from accumulate( $obs : RFIDObservation( $tagid : tagid, sensor
== $RFIDReader )
over window:time( 60s ) from entry-point lowLevelSensorStream,
countDistinct( $tagid ) );
then
insert( SituationManager.createCrowdInAreaEvent( "Crowd, number
people: " + $count, Event.THREAT_LOW, $coverageArea, $RFIDReader, $count,
60, 10 ) );
end
I need to refer $obs object in order to compare timing of new observation
with last event. Is it possible to do that?
Thanks a lot,
Matteo.
13 years, 9 months
[Planner]Sudoku solver
by Qchevalier
Hi everybody,
In order to understand better Planner, I did a sudoku solver. I was inspired
by Queens example.
I need 3 minutes to solve a sudoku with localSearch .
*I have 2 issues :*
1- Construction Heuristic doesn't work at all : I don't understand why.
2- I use FROM_PLANNING_ENTITY_PROPERTY for my @PlanningVariable. The
@ValueRange is a collection of Value : [value1, value2, value3, value4,
value5, value6, value7, value8, value9]. => But this range isn't used in the
localSearch. Instead I think localSearch uses the value list
FROM_SOLUTION_PROPERTY.
I share my code on GitHub : git@github.com:qchevalier/Sudoku-solver.git
*[To understand my code]*
Firstly I use the API configuration : you will have to change the path of
the drl file in App.java(line 36), and put away the xml configuration file.
A sudoku is composed by 81 digits : each digit has 1 value, 1 column, 1 row
and 1 block.
1 value has a value between [1-9] (Value can be initialized; in this case
they can't be changed during solving. 0 is undefined value and has to be
changed).
1 column has an index with a value between [0-8].
1 row has an index with a value between [0-8].
1 block has an index with a value between [0-8].
http://drools.46999.n3.nabble.com/file/n4005002/sudoku_how_to.png
In order to initialize the sudoku I use methods initTab* from
NDigitsGenerator.java .
After get it on github (git@github.com:qchevalier/Sudoku-solver.git ):
In order to run the application : import it in eclipse, modify the path of
the DRL file, and then run as java application "App.java".
*A sample of the execution can be as this : *
2012-05-21 11:19:08,332 [main] INFO Solving started: time spend (218),
score (-508), new best score (-508), random seed (0).
/2012-05-21 11:19:08,332 [main] INFO Phase constructionHeuristic ended:
step total (0), time spend (234), best score (-508)./
2012-05-21 11:19:10,910 [main] DEBUG Step index (0), time spend (2812),
score (-485), new best score (-485), accepted move size (1948) for picked
step (col8@row2@block6@value0 => value1)
...
2012-05-21 11:21:55,909 [main] DEBUG Step index (88), time spend
(167811), score (-3), best score (-2), accepted move size (1797) for
picked step (col0@row7@block2@value3 => value6).
2012-05-21 11:21:57,643 [main] DEBUG Step index (89), time spend
(169545), score (-2), best score (-2), accepted move size (1795) for
picked step (col0@row7@block2@value3 => value6).
2012-05-21 11:22:09,815 [main] DEBUG Step index (96), time spend
(181717), score (-3), best score (-2), accepted move size (1797) for
picked step (col0@row3@block1@value6 => value3).
2012-05-21 11:22:11,534 [main] DEBUG Step index (97), time spend
(183436), score (0), new best score (0), accepted move size (1796) for
picked step (col2@row3@block1@value3 => value6).
2012-05-21 11:22:11,534 [main] INFO Phase localSearch ended: step total
(98), time spend (183436), best score (0).
2012-05-21 11:22:11,534 [main] INFO Solving ended: time spend (183436),
best score (0), average calculate count per second (984).
Solved sudoku:
I-------------I-------------I-------------I
I | 9 | 4 | 2 | I | 3 | 1 | 5 | I | 6 | 8 | 7 |I
I | 8 | 3 | 1 | I | 2 | 7 | 6 | I | 4 | 5 | 9 |I
I | 7 | 6 | 5 | I | 8 | 4 | 9 | I | 2 | 3 | 1 |I
I-------------I-------------I-------------I
I | 3 | 5 | 6 | I | 9 | 2 | 7 | I | 8 | 1 | 4 |I
I | 4 | 7 | 9 | I | 1 | 5 | 8 | I | 3 | 2 | 6 |I
I | 2 | 1 | 8 | I | 4 | 6 | 3 | I | 9 | 7 | 5 |I
I-------------I-------------I-------------I
I | 1 | 9 | 7 | I | 6 | 8 | 2 | I | 5 | 4 | 3 |I
I | 6 | 2 | 4 | I | 5 | 3 | 1 | I | 7 | 9 | 8 |I
I | 5 | 8 | 3 | I | 7 | 9 | 4 | I | 1 | 6 | 2 |I
I-------------I-------------I-------------I
--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Planner-Sudoku-solver-tp400...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 9 months
custom lib in guvnor
by Olle Martensson
How can I use a custom lib/jar in guvnor.
What I want to do is to call some framework specific methods from the action part of the rules.
Thanks! // Olle
13 years, 9 months
Guvnor - support for custom file extensions
by anchi
Hi!
I need to extend Guvnor to support custom file extensions for BPMN
processes. So instead of using "/.bpmn/" or "/.bpmn2/" we need to use our
own file extensions. At the moment Guvnor just assumes them the to be /Other
assets/ and ignores them when building a package.
I plan to change Guvnor source to achieve this. I would appreciate if I get
some guidelines from dev-team, what classes do I have to change. Since you
have recently been adding support for "/.bpmn2/" extension, I guess you
could give me some hints.
I found out that I have to add my extensions to
/org.drools.guvnor.client.common.AssetFormats/, change
/org.drools.guvnor.server.builder.AssetItemValidator/ and
/org.drools.guvnor.server.verification.AssetVerifier/ . Is there something
else?
Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-support-for-custom-file-extensio...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 9 months
2nd CFP - 6th Int. Workshop on Event-Driven Business Process Management (edBPM12)
by Adrian Paschke
[ our apologies should you receive this message more than one time ]
6th Int. Workshop on Event-Driven Business Process Management (edBPM12)
collocated with BPM 2012
Tallinn, Estonia, 3-7 September 2012
http://icep-edbpm12.fzi.de/
++++ SUBMISSION DEADLINE - JUNE 1st +++++
Workshop Themes
--------------------------
Authors are invited to submit novel contributions in the prior described
problem domain.
* Event-driven BPM: Concepts
o Role of event processing in BPM
o Business Events: types and representation
o Event stream processing in business processes
o Data- and event-driven business processes
o Evaluation/ROI of event-driven BPM
o Event-driven SOA
o EDA and BPM
o Real/time awareness in BPM
o Context in BPM
* Design-time CEP and BPM
o Modelling languages, notations and methods for event-driven BPM
o Event Patterns: Definition / Creation / Representation /
Learning
o BPMN and event processing
o Modelling unknown/similar events in business processes
o Modelling events in human-oriented tasks
o Semantics/Ontologies for event-driven BPM
o Publish/subscription mechanism and process modelling
* Run-time CEP and BPM
o Event pattern detection
o BPEL and event processing
o Reasoning about unknown/similar events
o Distributed event processing
o Dynamic workflows
o Ad-hoc workflows
* Applications/Use cases for event-driven BPM
o Event-driven monitoring/BAM
o Event-driven SLA monitoring
o Domains: Logistics, Automotive, .
o Event processing and Internet of Services
Important Dates
--------------------------
Deadline paper submissions: 1 June 2012
Notification of acceptance: 2 July 2012
Camera-ready papers: 30 July 2012
Workshops: 3 September 2012
Submission
--------------------------
The following types of submission are solicited:
- Long paper submissions, describing substantial contributions of novel
ongoing work. Long papers should be at most 12 pages long.
- Short paper submissions, describing work in progress. These papers should
be at most 6 pages long.
- Use case submission, describing results from an edBPM use case. These
papers should be at most 4 pages long.
Papers should be submitted in the new LNBIP format
(http://www.springer.com/computer/lncs?SGWID=0-164-6-791344-0). Papers have
to present original research contributions not concurrently submitted
elsewhere. The title page must contain a short abstract, a classification of
the topics covered, preferably using the list of topics above, and an
indication of the submission category (Long Paper/ Short Paper). Accepted
paper will be published in the joint workshops proceeding (Springer).
For submission, please visit
http://www.easychair.org/conferences/?conf=edbpm12.
Organizing Committee
--------------------------
Nenad Stojanovic
FZI - Research Center for Information Technologies at the University of
Karlsruhe, Germany.
nstojano (at) fzi dot de
Opher Etzion
IBM Research Lab in Haifa
OPHER (at) il dot ibm dot com
Adrian Paschke
Corporate Semantic Web, Free University Berlin, Germany and RuleML Inc.,
Canada
paschke (at) inf dot fu-berlin dot de
Christian Janiesch
Karlsruhe Institute of Technology (KIT)
Christian.Janiesch (at) kit dot edu
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
13 years, 9 months
Object activiates same rule many times
by Christina Lau
Hi all,
I find an odd pattern in the audit log. When an Object is inserted to the
working memory, activation is created many times on same rule. The more
objects are inserted, the duplicated activations are growing exponentially
which degrade the performance a lot.
Here attached part of the audit log:
http://drools.46999.n3.nabble.com/file/n4000630/rule-DOCSEP-1337325521971...
rule-DOCSEP-1337325521971.log
In the log,
- when object (130) is inserted, rule "C020 - Gate charge (Out M)-B" is
activiated 129 times.
- when object (131) is inserted, rule "C020 - Gate charge (Out M)-B" is
activiated 130 times.
Here is the rule of "C020 - Gate charge (Out M)-B",
The "insert" in RHS only add ChargeDetailRefSeqEntity to working memory that
I don't think it causes the recursive activation.
And I'd already set no-loop to true. Does anyone offer some help here?
Thank you very much,
Christina
--
View this message in context: http://drools.46999.n3.nabble.com/Object-activiates-same-rule-many-times-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 9 months
Drools verifier - redundancy detection
by bitter
I would like to use drools-verifier to detect redundancy in my drl files. But
drools-verifier can not detect redundancy even in simple drl. Maybe I do
something wrong ;/.
*Simple drl file:*
rule "rule 1"
when
$person: Person(age==16, name=="Anna")
then
retract($person);
end
rule "rule 4"
when
$person: Person(age==16, name=="Anna")
then
retract($person);
end
*And my test:*
@Test
public void verifyRules() {
//given
VerifierBuilder vbuilder = VerifierBuilderFactory.newVerifierBuilder();
Verifier verifier = vbuilder.newVerifier();
verifier.addResourcesToVerify(new
ClassPathResource("qualityVerification.drl", getClass()), ResourceType.DRL);
if (verifier.hasErrors()) {
for(VerifierError ve : verifier.getErrors()) {
System.out.println(ve.getMessage());
}
throw new RuntimeException("ERRORS ");
}
//when
verifier.fireAnalysis();
//then
VerifierReport report = verifier.getResult();
System.out.println(">>>>>>>>> ERRORS: ");
for(VerifierMessageBase vmb : report.getBySeverity(Severity.ERROR)) {
System.out.println(vmb + ". Type: " + vmb.getMessageType());
}
System.out.println(">>>>>>>>> WARNINGS: ");
for(VerifierMessageBase vmb : report.getBySeverity(Severity.WARNING)) {
System.out.println(vmb + ". Type: " + vmb.getMessageType());
}
System.out.println(">>>>>>>>> NOTES: ");
for(VerifierMessageBase vmb : report.getBySeverity(Severity.NOTE)) {
System.out.println(vmb + ". Type: " + vmb.getMessageType());
}
System.out.println(">>>>>>>>> MISSING RANGE: ");
for(MissingRange mr : report.getRangeCheckCauses()) {
System.out.println(mr);
}
}
*OUTPUT:*
>>>>>>>>> ERRORS:
>>>>>>>>> WARNINGS:
Warning id = 0:
faulty : LiteralRestriction from rule [rule 4] value '== Anna'
Rule base covers == Anna, but it is missing != Anna
Cause trace:
. Type: MISSING_EQUALITY
Warning id = 1:
faulty : LiteralRestriction from rule [rule 4] value '== 16'
Rule base covers == 16, but it is missing != 16
Cause trace:
. Type: MISSING_EQUALITY
Warning id = 2:
faulty : LiteralRestriction from rule [rule 1] value '== Anna'
Rule base covers == Anna, but it is missing != Anna
Cause trace:
. Type: MISSING_EQUALITY
Warning id = 3:
faulty : LiteralRestriction from rule [rule 1] value '== 16'
Rule base covers == 16, but it is missing != 16
Cause trace:
. Type: MISSING_EQUALITY
>>>>>>>>> NOTES:
>>>>>>>>> MISSING RANGE:
Gap: (Field 'age' from object type 'Person') Operator = '<' 16 from rule:
[rule 4]
Gap: (Field 'age' from object type 'Person') Operator = '>' 16 from rule:
[rule 4]
Gap: (Field 'age' from object type 'Person') Operator = '<' 16 from rule:
[rule 1]
Gap: (Field 'age' from object type 'Person') Operator = '>' 16 from rule:
[rule 1]
Is it a bug or I do something wrong?
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-verifier-redundancy-detection-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 9 months