Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Hello, I have similar problem while listing processes in gwt-console - 'Could not initialize stateful knowledge session'. I tried to go through manual to set up drools flow with humantasks. I basicly went through https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch14.html#d0e3588 . But I get this exception (listing human tasks works well): org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException at org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69) at org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77) at org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:36) at org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) at org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
OK, I found how to overcome it. You can apply patch for better session object creation (from attachment). 2009/12/23 Rafal Rusin rafal.ru...@gmail.com: Hello, I have similar problem while listing processes in gwt-console - 'Could not initialize stateful knowledge session'. I tried to go through manual to set up drools flow with humantasks. I basicly went through https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch14.html#d0e3588 . But I get this exception (listing human tasks works well): org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException at org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69) at org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77) at org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:36) at org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) at org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
thnx Mauricio 4 ur help bug fixed after using the latest hibernate-validator-4.0.2.GA.jar and hibernate3.jar -- View this message in context: http://old.nabble.com/Drools-flow-web-console-%285.1.M1%29-deployment-in-JBoss-tp25952512p26386137.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
As mentioned before, the exception you are seeing is caused by the fact that JPA cannot find the definition of the ProcessInstanceInfo element when trying to persist it. These elements are referenced in the persistence.xml configuration files. Could you check your gwt-console-server-drools-*.war and update the persistence.xml file in the /WEB-INF/classes/META-INF/ directory? Make sure the following classes are listed: classorg.drools.persistence.session.SessionInfo/class classorg.drools.persistence.processinstance.ProcessInstanceInfo/class classorg.drools.persistence.processinstance.variabletypes.JPAPersistedVariable/class classorg.drools.persistence.processinstance.variabletypes.VariableInstanceInfo/class classorg.drools.persistence.processinstance.variabletypes.SerializablePersistedVariable/class classorg.drools.persistence.processinstance.WorkItemInfo/class Could you also specify the OS and version of the application server you are using? Thx, Kris Quoting ramram8 ramram...@gmail.com: Please check the java code and the process that I am uploading: 1- Java code: package com.fp; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import org.drools.KnowledgeBase; import org.drools.KnowledgeBaseFactory; import org.drools.builder.KnowledgeBuilder; import org.drools.builder.KnowledgeBuilderError; import org.drools.builder.KnowledgeBuilderErrors; import org.drools.builder.KnowledgeBuilderFactory; import org.drools.builder.ResourceType; import org.drools.io.ResourceFactory; import org.drools.logger.KnowledgeRuntimeLogger; import org.drools.logger.KnowledgeRuntimeLoggerFactory; import org.drools.persistence.jpa.JPAKnowledgeService; import org.drools.process.instance.impl.demo.SystemOutWorkItemHandler; import org.drools.process.workitem.wsht.WSHumanTaskHandler; import org.drools.runtime.Environment; import org.drools.runtime.EnvironmentName; import org.drools.runtime.StatefulKnowledgeSession; public class TestDrools { public static final void main(String[] args) { try { System.out.println(\n\n\n i am here ); KnowledgeBase kbase = readKnowledgeBase(); // create the entity manager factory and register it in the environment EntityManagerFactory emf = Persistence.createEntityManagerFactory( org.drools.persistence.jpa ); Environment env = KnowledgeBaseFactory.newEnvironment(); env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf ); // create a new knowledge session that uses JPA to store the runtime state StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env ); int sessionId = ksession.getId(); KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, test); ksession.getWorkItemManager().registerWorkItemHandler(Human Task, new WSHumanTaskHandler()); ksession.getWorkItemManager().registerWorkItemHandler(Log, new SystemOutWorkItemHandler()); // start a new process instance ksession.startProcess(testDroolsFlow); ksession.dispose(); logger.close(); } catch (Throwable t) { t.printStackTrace(); } } private static KnowledgeBase readKnowledgeBase() throws Exception { KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add(ResourceFactory.newClassPathResource(testDroolsFlow.rf), ResourceType.DRF); KnowledgeBuilderErrors errors = kbuilder.getErrors(); if (errors.size() 0) { for (KnowledgeBuilderError error: errors) { System.err.println(error); } throw new IllegalArgumentException(Could not parse knowledge.); } KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addKnowledgePackages(kbuilder.getKnowledgePackages()); return kbase; } } 2- The process that I am using is a user task followed by a log process: ?xml version=1.0 encoding=UTF-8? process xmlns=http://drools.org/drools-5.0/process; xmlns:xs=http://www.w3.org/2001/XMLSchema-instance;
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Please check the java code and the process that I am uploading: 1- Java code: package com.fp; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import org.drools.KnowledgeBase; import org.drools.KnowledgeBaseFactory; import org.drools.builder.KnowledgeBuilder; import org.drools.builder.KnowledgeBuilderError; import org.drools.builder.KnowledgeBuilderErrors; import org.drools.builder.KnowledgeBuilderFactory; import org.drools.builder.ResourceType; import org.drools.io.ResourceFactory; import org.drools.logger.KnowledgeRuntimeLogger; import org.drools.logger.KnowledgeRuntimeLoggerFactory; import org.drools.persistence.jpa.JPAKnowledgeService; import org.drools.process.instance.impl.demo.SystemOutWorkItemHandler; import org.drools.process.workitem.wsht.WSHumanTaskHandler; import org.drools.runtime.Environment; import org.drools.runtime.EnvironmentName; import org.drools.runtime.StatefulKnowledgeSession; public class TestDrools { public static final void main(String[] args) { try { System.out.println(\n\n\n i am here ); KnowledgeBase kbase = readKnowledgeBase(); // create the entity manager factory and register it in the environment EntityManagerFactory emf = Persistence.createEntityManagerFactory( org.drools.persistence.jpa ); Environment env = KnowledgeBaseFactory.newEnvironment(); env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf ); // create a new knowledge session that uses JPA to store the runtime state StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env ); int sessionId = ksession.getId(); KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, test); ksession.getWorkItemManager().registerWorkItemHandler(Human Task, new WSHumanTaskHandler()); ksession.getWorkItemManager().registerWorkItemHandler(Log, new SystemOutWorkItemHandler()); // start a new process instance ksession.startProcess(testDroolsFlow); ksession.dispose(); logger.close(); } catch (Throwable t) { t.printStackTrace(); } } private static KnowledgeBase readKnowledgeBase() throws Exception { KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add(ResourceFactory.newClassPathResource(testDroolsFlow.rf), ResourceType.DRF); KnowledgeBuilderErrors errors = kbuilder.getErrors(); if (errors.size() 0) { for (KnowledgeBuilderError error: errors) { System.err.println(error); } throw new IllegalArgumentException(Could not parse knowledge.); } KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addKnowledgePackages(kbuilder.getKnowledgePackages()); return kbase; } } 2- The process that I am using is a user task followed by a log process: ?xml version=1.0 encoding=UTF-8? process xmlns=http://drools.org/drools-5.0/process; xmlns:xs=http://www.w3.org/2001/XMLSchema-instance; xs:schemaLocation=http://drools.org/drools-5.0/process drools-processes-5.0.xsd type=RuleFlow name=testDroolsFlow id=testDroolsFlow package-name=default header /header nodes start id=1 name=Start x=16 y=181 width=80 height=40 / end id=3 name=End x=468 y=183 width=80 height=40 / humanTask id=4 name=Task1 x=126 y=180 width=100 height=48 work name=Human Task parameter name=ActorId type name=org.drools.process.core.datatype.impl.type.StringDataType / valueadmin/value /parameter parameter name=Comment type name=org.drools.process.core.datatype.impl.type.StringDataType / valueCheck the ToDo in order to view Log/value /parameter parameter name=Content type name=org.drools.process.core.datatype.impl.type.StringDataType / valueCheck the ToDo in order to view Log/value /parameter parameter name=Priority type name=org.drools.process.core.datatype.impl.type.StringDataType / value1/value
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Yes as Mauricio stated that the persistence.xml inside the persistence-jpa contains the classes needed 1- Should I have another persistence.xml than that found inside the persistence-jpa.jar 2- Should the jar file uploaded inside the Guvonor contains a persistence.xml -- View this message in context: http://old.nabble.com/Drools-flow-web-console-%285.1.M1%29-deployment-in-JBoss-tp25952512p26350553.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Hi I am having problems to start a new process instance. Please can someone help in this topic or can someone post a link that could assist me to resolve the problem. Really i dont where to search to fix this issue Thanks in advance. 09:55:39,500 ERROR [STDERR] java.lang.IllegalArgumentException: Unknown entity: org.drools.persistence.processinstance.ProcessInstanceInfo 09:55:39,500 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:215) 09:55:39,500 ERROR [STDERR] at org.drools.persistence.processinstance.JPAProcessInstanceManager.addProcessInstance(JPAProcessInstanceManager.java:33) 09:55:39,500 ERROR [STDERR] at org.drools.process.instance.AbstractProcessInstanceFactory.createProcessInstance(AbstractProcessInstanceFactory.java:37) 09:55:39,500 ERROR [STDERR] at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1706) 09:55:39,500 ERROR [STDERR] at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1682) 09:55:39,500 ERROR [STDERR] at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:289) 09:55:39,515 ERROR [STDERR] at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:52) 09:55:39,515 ERROR [STDERR] at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:14) 09:55:39,515 ERROR [STDERR] at org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:254) 09:55:39,515 ERROR [STDERR] at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:163) 09:55:39,515 ERROR [STDERR] at org.drools.integration.console.DroolsFlowCommandDelegate.startProcess(DroolsFlowCommandDelegate.java:125) 09:55:39,515 ERROR [STDERR] at org.drools.integration.console.DroolsFlowProcessManagement.newInstance(DroolsFlowProcessManagement.java:64) 09:55:39,515 ERROR [STDERR] at org.drools.integration.console.DroolsFlowProcessManagement.newInstance(DroolsFlowProcessManagement.java:60) 09:55:39,515 ERROR [STDERR] at org.jboss.bpm.console.server.ProcessMgmtFacade.newInstance(ProcessMgmtFacade.java:189) 09:55:39,515 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 09:55:39,515 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 09:55:39,515 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 09:55:39,515 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) 09:55:39,515 ERROR [STDERR] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) 09:55:39,515 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 09:55:39,515 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 09:55:39,515 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 09:55:39,515 ERROR [STDERR] at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) 09:55:39,515 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 09:55:39,515 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 09:55:39,515 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) 09:55:39,515 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 09:55:39,515 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 09:55:39,515 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) 09:55:39,515 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
What I am trying to do is to upload a rule file process that is simply a user task that sends an email here is the steps that I have made: 1- I upload the jar file into the Guvonr 2- I upload the rule flow file also into Guvonr 3- I built the backage and restarted the JBOSS server 4- I started the task service then started the JBOSS server 5- The GWT Console opened correctly when I go to the Process TAB I could view the process 6- when I press start process I am having the following exception posted previously My question is: 1- I noticed that the problem in the persistence.xml but where I should have the persistence should I have a persistence.xml inside the jar file that is uploaded into the Guvonor or only inside the drools-persistence-jpa.jar I dont know why this error keeps on comming ?? if u need any more info plz to tell me. Thnx for your help and quick response guys. -- View this message in context: http://old.nabble.com/Drools-flow-web-console-%285.1.M1%29-deployment-in-JBoss-tp25952512p26342021.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Yes, I see this bug before, i don't know how to solve it right now but I will take a look on that during the weekend. Greetings On Fri, Nov 13, 2009 at 5:22 PM, ramram8 ramram...@gmail.com wrote: What I am trying to do is to upload a rule file process that is simply a user task that sends an email here is the steps that I have made: 1- I upload the jar file into the Guvonr 2- I upload the rule flow file also into Guvonr 3- I built the backage and restarted the JBOSS server 4- I started the task service then started the JBOSS server 5- The GWT Console opened correctly when I go to the Process TAB I could view the process 6- when I press start process I am having the following exception posted previously My question is: 1- I noticed that the problem in the persistence.xml but where I should have the persistence should I have a persistence.xml inside the jar file that is uploaded into the Guvonor or only inside the drools-persistence-jpa.jar I dont know why this error keeps on comming ?? if u need any more info plz to tell me. Thnx for your help and quick response guys. -- View this message in context: http://old.nabble.com/Drools-flow-web-console-%285.1.M1%29-deployment-in-JBoss-tp25952512p26342021.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Mauricio thnx again for the quick reply? and waiting your reply once you know the cause of the problem thnx in advance for your help -- View this message in context: http://old.nabble.com/Drools-flow-web-console-%285.1.M1%29-deployment-in-JBoss-tp25952512p26342361.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Thank you kris, Removing persistance-api.jar from the gwt-console-server-drools.war helped to remove the error. Now I'm able to view the process on web-console. However, when I'm clicking on Start under Process Instances, the following error occurs. Can you please suggest how can I solve this. I'm pasting the full stack-trace for the same: 17:13:18,469 ERROR [STDERR] java.lang.IllegalArgumentException: Unknown entity: org.drools.persistence.processinstance.ProcessInstanceInfo 17:13:18,469 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.p ersist(AbstractEntityManagerImpl.java:215) 17:13:18,469 ERROR [STDERR] at org.drools.persistence.processinstance.JPAPro cessInstanceManager.addProcessInstance(JPAProcessInstanceManager.java:33) 17:13:18,469 ERROR [STDERR] at org.drools.process.instance.AbstractProcessIn stanceFactory.createProcessInstance(AbstractProcessInstanceFactory.java:37) 17:13:18,469 ERROR [STDERR] at org.drools.common.AbstractWorkingMemory.start Process(AbstractWorkingMemory.java:1706) 17:13:18,469 ERROR [STDERR] at org.drools.common.AbstractWorkingMemory.start Process(AbstractWorkingMemory.java:1682) 17:13:18,469 ERROR [STDERR] at org.drools.impl.StatefulKnowledgeSessionImpl. startProcess(StatefulKnowledgeSessionImpl.java:289) 17:13:18,469 ERROR [STDERR] at org.drools.command.runtime.process.StartProce ssCommand.execute(StartProcessCommand.java:52) 17:13:18,469 ERROR [STDERR] at org.drools.command.runtime.process.StartProce ssCommand.execute(StartProcessCommand.java:14) 17:13:18,469 ERROR [STDERR] at org.drools.persistence.session.SingleSessionC ommandService.execute(SingleSessionCommandService.java:254) 17:13:18,469 ERROR [STDERR] at org.drools.command.impl.CommandBasedStatefulK nowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:163) 17:13:18,469 ERROR [STDERR] at org.drools.integration.console.DroolsFlowComm andDelegate.startProcess(DroolsFlowCommandDelegate.java:125) 17:13:18,469 ERROR [STDERR] at org.drools.integration.console.DroolsFlowProc essManagement.newInstance(DroolsFlowProcessManagement.java:64) 17:13:18,469 ERROR [STDERR] at org.drools.integration.console.DroolsFlowProc essManagement.newInstance(DroolsFlowProcessManagement.java:60) 17:13:18,469 ERROR [STDERR] at org.jboss.bpm.console.server.ProcessMgmtFacad e.newInstance(ProcessMgmtFacade.java:189) 17:13:18,469 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 17:13:18,469 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39) 17:13:18,469 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25) 17:13:18,469 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5 97) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.core.MethodInjectorImpl.in voke(MethodInjectorImpl.java:117) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.core.ResourceMethod.invoke OnTarget(ResourceMethod.java:260) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.core.ResourceMethod.invoke (ResourceMethod.java:232) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.core.ResourceMethod.invoke (ResourceMethod.java:166) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.core.DispatcherUtilities.g etJaxrsResponse(DispatcherUtilities.java:142) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.core.SynchronousDispatcher .invoke(SynchronousDispatcher.java:356) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.core.SynchronousDispatcher .invoke(SynchronousDispatcher.java:173) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.plugins.server.servlet.Htt pServletDispatcher.service(HttpServletDispatcher.java:93) 17:13:18,469 ERROR [STDERR] at org.jboss.resteasy.plugins.server.servlet.Htt pServletDispatcher.service(HttpServletDispatcher.java:68) 17:13:18,469 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe rvlet.java:803) 17:13:18,469 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:290) 17:13:18,469 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206) 17:13:18,469 ERROR [STDERR] at org.jboss.bpm.console.server.util.GWTJsonFilt er.doFilter(GWTJsonFilter.java:59) 17:13:18,469 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:235) 17:13:18,485 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206) 17:13:18,485 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte r.doFilter(ReplyHeaderFilter.java:96) 17:13:18,485 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:235) 17:13:18,485 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Thank you for the reply Kris and Satish. It really helped me to remove the errors from eclipse. However I still face the error when I click on process on web-console. ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider at org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69) at org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77) at org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:35) at org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) at org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) 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 org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) at
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
I'm guessing that you have multiple version of javax.persistence in your classpath (one in the server war and one on the server classpath), causing the cast to fail. Could you verify that this might be true? If so, simply remove the duplicate persistence-api.jar from the server war, that should fix this issue. Kris Quoting Alok Patnaik alok...@yahoo.com: Thank you for the reply Kris and Satish. It really helped me to remove the errors from eclipse. However I still face the error when I click on process on web-console. ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider at org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69) at org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77) at org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:35) at org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) at org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Hi Satish/Krisv, I’m new to Drools. I’m stuck on the same issue. Although I did every step you have mentioned. My jboss still starts with error. I’ve downloaded gwt-console-server from http://repository.jboss.com/maven2/org/drools/gwt-console-server-drools/5.1.0.M1/ Please let me know from where did you get the right version? While starting the drools-flow the first error comes as: ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Could not connect task client at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)... When I click on the process-the following error appears: ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) When I'm trying to run the same process on eclipse I can see the following error: java.lang.IllegalArgumentException: Could not connect task client at org.drools.process.workitem.wsht.WSHumanTaskHandler.connect(WSHumanTaskHandler.java:51) at org.drools.process.workitem.wsht.WSHumanTaskHandler.executeWorkItem(WSHumanTaskHandler.java:58) at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:55) at org.drools.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:95) at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112) at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:148) at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:135) at org.drools.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) at org.drools.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112) at org.drools.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:16) at org.drools.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:185) at org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:230) at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1689) at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:289) I'm not able to run any of the test consisting user task in 5.1.M1 version. I'd appreciate your comments and help on the same. Thanks Alok satjo wrote: You pointed out the exact issue. This was what happened. I was using defaultpackage of Guvnor, thinking it refers to the default. After I created the new package called default and uploaded the definition, it worked fine and it did not throw any exception. Kris Verlaenen wrote: When you uploaded your sample process to Guvnor, did you add it to the default package (notice that the name should really be default, and not defaultPackage, which is created in Guvnor by default)? And after adding the process to the package, did you build the package on Guvnor? The NPE seems to indicate that it cannot find the knowledge base for package default on Guvnor. Kris Quoting satjo jo_sat...@yahoo.com: Thanks for your response! It did fix the problem and I do not get the exception after I log in if I run org.drools.task.RunTaskService. I, however, get exception if I click on 'Process Definitions'-'Definition List'. Here is the stack trace. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
hi Alok, Here are steps you might want to check. 1.) Make sure you have started a user task. As Kris suggests 'To start a task service locally: the drools-process-task module contains a org.drools.task.RunTaskService class in the src/test/java source folder that can be used to start a task server. ' 2.) Make sure you have created a sample data source (e.g testDS1-ds.xml in default\deploy) as shown in https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch14.html#d0e3553 3.) Most important one: In Guvnor, create a new package default (not the defaultpackage that comes with Guvnor) and upload a sample workflow there. Save it and build the package. From your error, it looks like you have not started the user task (Step1) Alok Patnaik wrote: Hi Satish/Krisv, I’m new to Drools. I’m stuck on the same issue. Although I did every step you have mentioned. My jboss still starts with error. I’ve downloaded gwt-console-server from http://repository.jboss.com/maven2/org/drools/gwt-console-server-drools/5.1.0.M1/ Please let me know from where did you get the right version? While starting the drools-flow the first error comes as: ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Could not connect task client at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)... When I click on the process-the following error appears: ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) When I'm trying to run the same process on eclipse I can see the following error: java.lang.IllegalArgumentException: Could not connect task client at org.drools.process.workitem.wsht.WSHumanTaskHandler.connect(WSHumanTaskHandler.java:51) at org.drools.process.workitem.wsht.WSHumanTaskHandler.executeWorkItem(WSHumanTaskHandler.java:58) at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:55) at org.drools.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:95) at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112) at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:148) at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:135) at org.drools.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) at org.drools.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112) at org.drools.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:16) at org.drools.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:185) at org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:230) at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1689) at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:289) I'm not able to run any of the test consisting user task in 5.1.M1 version. I'd appreciate your comments and help on the same. Thanks Alok satjo wrote: You pointed out the exact issue. This was what happened. I was using defaultpackage of Guvnor, thinking it refers to the default. After I created the new package called default and uploaded the definition, it worked fine and it did not throw any exception. Kris Verlaenen wrote: When you uploaded your sample process to Guvnor, did you add it to the default package (notice that the name should really be default, and not defaultPackage, which is created in Guvnor by default)? And after adding the process to the package, did you build the package on Guvnor? The NPE seems to indicate that it cannot find the knowledge base for package default on Guvnor. Kris Quoting satjo jo_sat...@yahoo.com: Thanks for your response! It did fix the problem and I do not get the exception after I log in if I run org.drools.task.RunTaskService. I, however, get exception if I click on 'Process Definitions'-'Definition List'. Here is the stack trace. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action:
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
I just build from trunk usually, but the M1 version should be fine. The error Could not connect to task client is probably caused by the fact that you did not set up a task service (you need one if you want to use human tasks)? Check out https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch.Human_Tasks.html#d0e2117 Not sure about that second error, but let me know if that is still there if you have the task service running. Kris Quoting Alok Patnaik alok...@yahoo.com: Hi Satish/Krisv, Iâm new to Drools. Iâm stuck on the same issue. Although I did every step you have mentioned. My jboss still starts with error. Iâve downloaded gwt-console-server from http://repository.jboss.com/maven2/org/drools/gwt-console-server-drools/5.1.0.M1/ Please let me know from where did you get the right version? While starting the drools-flow the first error comes as: ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Could not connect task client at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)... When I click on the process-the following error appears: ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) When I'm trying to run the same process on eclipse I can see the following error: java.lang.IllegalArgumentException: Could not connect task client at org.drools.process.workitem.wsht.WSHumanTaskHandler.connect(WSHumanTaskHandler.java:51) at org.drools.process.workitem.wsht.WSHumanTaskHandler.executeWorkItem(WSHumanTaskHandler.java:58) at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:55) at org.drools.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:95) at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112) at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:148) at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:135) at org.drools.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) at org.drools.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112) at org.drools.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:16) at org.drools.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:185) at org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:230) at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1689) at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:289) I'm not able to run any of the test consisting user task in 5.1.M1 version. I'd appreciate your comments and help on the same. Thanks Alok satjo wrote: You pointed out the exact issue. This was what happened. I was using defaultpackage of Guvnor, thinking it refers to the default. After I created the new package called default and uploaded the definition, it worked fine and it did not throw any exception. Kris Verlaenen wrote: When you uploaded your sample process to Guvnor, did you add it to the default package (notice that the name should really be default, and not defaultPackage, which is created in Guvnor by default)? And after adding the process to the package, did you build the package on Guvnor? The NPE seems to indicate that it cannot find the knowledge base for package default on Guvnor. Kris Quoting satjo jo_sat...@yahoo.com: Thanks for your response! It did fix the problem and I do not get the exception after I log in if I run org.drools.task.RunTaskService. I, however, get exception if I click on 'Process Definitions'-'Definition List'. Here is the stack trace. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 -
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
You pointed out the exact issue. This was what happened. I was using defaultpackage of Guvnor, thinking it refers to the default. After I created the new package called default and uploaded the definition, it worked fine and it did not throw any exception. Kris Verlaenen wrote: When you uploaded your sample process to Guvnor, did you add it to the default package (notice that the name should really be default, and not defaultPackage, which is created in Guvnor by default)? And after adding the process to the package, did you build the package on Guvnor? The NPE seems to indicate that it cannot find the knowledge base for package default on Guvnor. Kris Quoting satjo jo_sat...@yahoo.com: Thanks for your response! It did fix the problem and I do not get the exception after I log in if I run org.drools.task.RunTaskService. I, however, get exception if I click on 'Process Definitions'-'Definition List'. Here is the stack trace. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:68) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:76) org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:35) org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.NullPointerException org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:427) org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:120)
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
When you uploaded your sample process to Guvnor, did you add it to the default package (notice that the name should really be default, and not defaultPackage, which is created in Guvnor by default)? And after adding the process to the package, did you build the package on Guvnor? The NPE seems to indicate that it cannot find the knowledge base for package default on Guvnor. Kris Quoting satjo jo_sat...@yahoo.com: Thanks for your response! It did fix the problem and I do not get the exception after I log in if I run org.drools.task.RunTaskService. I, however, get exception if I click on 'Process Definitions'-'Definition List'. Here is the stack trace. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:68) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:76) org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:35) org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.NullPointerException org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:427) org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:120) org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:109) org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:41) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:76)
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Thanks for your response! It did fix the problem and I do not get the exception after I log in if I run org.drools.task.RunTaskService. I, however, get exception if I click on 'Process Definitions'-'Definition List'. Here is the stack trace. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:68) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:76) org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:35) org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.NullPointerException org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:427) org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:120) org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:109) org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:41) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:76) org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:35) org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107)
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
I have built the war files using the code from SVN and following is the stack tarce. I also see a warning in server logs that says 'WARN [PluginMgr] Unable to load plugin: 'org.jboss.bpm.console.server.plugin.ProcessEnginePlugin'. Do I need to copy any jar file in JBoss's lib folder (jboss-4.2.3.GA\server\default\lib)? Again, here are steps I followed so far: 1.) Downloaded the Standalone Guvnor with JBoss AS. 2.) Copied gwt-console war files (gwt-console-server-drools-{version}.war and gwt-console-drools-{version}.war) in the Standalone download (jboss-4.2.3.GA\server\default\ldeploy) 3.) Uploaded a test rule flow in Guvnor's default package and rebuilt it. 4.) Created the data-source (that got deployed fine), did not anything for history or reports configuration to start with. JBoss started without any error. When I logged in, I get the following error. URL: 'http://localhost:8080/gwt-console-server/rs/tasks/admin' Action: 'org.jboss.bpm.console.client.task.LoadTasksAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Could not connect task client org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.IllegalArgumentException: Could not connect task client org.drools.integration.console.DroolsFlowTaskManagement.connect(DroolsFlowTaskManagement.java:48) org.drools.integration.console.DroolsFlowTaskManagement.getAssignedTasks(DroolsFlowTaskManagement.java:128) org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:99) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) -- Following is the Server log -- 12:31:44,189 WARN [PluginMgr] Unable to load plugin: 'org.jboss.bpm.console.ser ver.plugin.ProcessEnginePlugin' 12:31:46,001 ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exc eption org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: C ould not connect task client at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationExcept ion(SynchronousDispatcher.java:319) at org.jboss.resteasy.core.SynchronousDispatcher.handleException(Synchro nousDispatcher.java:230) at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException( SynchronousDispatcher.java:206) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa tcher.java:360) at
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
This exception is simply caused by the fact that you don't have a human task service installed. So when the console tries to show the tasks of the user, or execute a process, it will fail to connect. To start a task service locally: the drools-process-task module contains a org.drools.task.RunTaskService class in the src/test/java source folder that can be used to start a task server. I admit that this should be handled in a more user-friendly manner though, I'll see what I can do. Kris Quoting satjo jo_sat...@yahoo.com: I have built the war files using the code from SVN and following is the stack tarce. I also see a warning in server logs that says 'WARN [PluginMgr] Unable to load plugin: 'org.jboss.bpm.console.server.plugin.ProcessEnginePlugin'. Do I need to copy any jar file in JBoss's lib folder (jboss-4.2.3.GA\server\default\lib)? Again, here are steps I followed so far: 1.) Downloaded the Standalone Guvnor with JBoss AS. 2.) Copied gwt-console war files (gwt-console-server-drools-{version}.war and gwt-console-drools-{version}.war) in the Standalone download (jboss-4.2.3.GA\server\default\ldeploy) 3.) Uploaded a test rule flow in Guvnor's default package and rebuilt it. 4.) Created the data-source (that got deployed fine), did not anything for history or reports configuration to start with. JBoss started without any error. When I logged in, I get the following error. URL: 'http://localhost:8080/gwt-console-server/rs/tasks/admin' Action: 'org.jboss.bpm.console.client.task.LoadTasksAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Could not connect task client org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.IllegalArgumentException: Could not connect task client org.drools.integration.console.DroolsFlowTaskManagement.connect(DroolsFlowTaskManagement.java:48) org.drools.integration.console.DroolsFlowTaskManagement.getAssignedTasks(DroolsFlowTaskManagement.java:128) org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:99) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) -- Following is the Server log -- 12:31:44,189 WARN [PluginMgr] Unable to load plugin: 'org.jboss.bpm.console.ser ver.plugin.ProcessEnginePlugin' 12:31:46,001 ERROR [[Resteasy]] Servlet.service() for servlet
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
I have set the data source. Following is the stack trace. When I go to Settings-System-Overview, I see that org.jboss.bpm.console.server.plugin.ProcessEnginePlugin is not green. I must have missed something in the installation or copying a dependant jar file. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77) org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:35) org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) Kris Verlaenen wrote: Did you configure the data source correctly? https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch14.html#d0e3553 The full stack trace of the error that should be visible in the server console could help to identify the issue as well. Kris Quoting satjo jo_sat...@yahoo.com: Could some one share the experience in getting the Drools Flow 5.1 web console working in JBoss? I downloaded the âStandalone Guvnor with JBoss ASâ (Drools 5.1.0.M1 Guvnor Standalone) from the download site. As it did not have the gwt-console war files (gwt-console-server-drools-{version}.war and gwt-console-drools-{version}.war) in the Standalone download, I built them from source code and deployed in JBoss. I uploaded a test rule flow in Guvnorâs default package and rebuilt the package. After log into gwt-console, when I click on process definition, I see a HTTP 500 error âclass com.google.gwt.http.client.RequestException', â Could not initialize
Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Damn, the DroolsFlowCommandDelegate seems to be swallowing the exception, as the exception caught there is not added as the root of the thrown exception (line 68). There's no stack trace of a NullPointerException in the log (right) before this error? I also fixed this on trunk, so the caught NullPointerException is added as the root cause now, so the stack trace should now contain the trace of the NPE as well. If there's no NPE in the log, could you update your code from SVN, rebuild the wars, try again and send me the stack trace again? Kris Quoting satjo jo_sat...@yahoo.com: I have set the data source. Following is the stack trace. When I go to Settings-System-Overview, I see that org.jboss.bpm.console.server.plugin.ProcessEnginePlugin is not green. I must have missed something in the installation or copying a dependant jar file. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.RuntimeException: Could not initialize stateful knowledge session: null org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77) org.drools.integration.console.DroolsFlowCommandDelegate.init(DroolsFlowCommandDelegate.java:35) org.drools.integration.console.DroolsFlowProcessManagement.init(DroolsFlowProcessManagement.java:20) org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83) org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) Kris Verlaenen wrote: Did you configure the data source correctly? https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch14.html#d0e3553 The full stack trace of the error that should be visible in the server console could help to identify the issue as well. Kris Quoting satjo jo_sat...@yahoo.com:
[rules-users] Drools flow web console (5.1.M1) deployment in JBoss
Could some one share the experience in getting the Drools Flow 5.1 web console working in JBoss? I downloaded the “Standalone Guvnor with JBoss AS” (Drools 5.1.0.M1 Guvnor Standalone) from the download site. As it did not have the gwt-console war files (gwt-console-server-drools-{version}.war and gwt-console-drools-{version}.war) in the Standalone download, I built them from source code and deployed in JBoss. I uploaded a test rule flow in Guvnor’s default package and rebuilt the package. After log into gwt-console, when I click on process definition, I see a HTTP 500 error ‘class com.google.gwt.http.client.RequestException', ‘ Could not initialize stateful knowledge session: null’. Any comments on the required steps for viewing the process definitions are appreciated. satjo -- View this message in context: http://www.nabble.com/Drools-flow-web-console-%285.1.M1%29-deployment-in-JBoss-tp25952512p25952512.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users