[jBPM] - HQL activity - parameters with EL evaluated values
by James Baker
James Baker [http://community.jboss.org/people/jimmyb82] created the discussion
"HQL activity - parameters with EL evaluated values"
To view the discussion, visit: http://community.jboss.org/message/561825#561825
--------------------------------------------------------------
Hi,
I've been searching around the documentation, tutorials and forums (for two days) to try to understand how I specify parameters to the HQL activity where the value is defined in the execution context.
I'm using jBPM 4.4 and JBoss EAP 5.0.
I've tried to specify my HQL node in various fashions bearing in mind there is a executionContext var called invoiceId and it is a Long: -
<hql name="Check invoice" g="258,162,117,52" var="invoice" unique="true">
<query>from Invoice i where i.invoiceId = :invoiceId</query>
<parameters>
<string name="invoiceId" value="#{invoiceId}" />
</parameters>
<transition name="Check paid" to="Paid?" g="-62,-4"/>
</hql>
This tries to pass the text as a String with the value "#{invoiceId}"
If i try to do this with a <long /> then it won't even deploy my process.
It seemed like i should use a reference as follows: -
<hql name="Check invoice" g="258,162,117,52" var="invoice" unique="true"> <query>from Invoice i where i.invoiceId = :invoiceId</query> <parameters>
<ref object="invoiceId" />
</parameters>
<transition name="Check paid" to="Paid?" g="-62,-4"/>
</hql>
but this fails because org.jbpm.jpdl.internal.activity.HQLActivity uses the set named parameter methods and there is no way to pass anonymous parameters. It is an anonymous parameter because the ReferenceDescriptor class returns null for getName() and there is no way to specify a name for <ref /> under the http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl namespace.
According to this feature request https://jira.jboss.org/browse/JBPM-2279 https://jira.jboss.org/browse/JBPM-2279 we should be able to use EL but there is no reference in the documentation as to how.
Can anyone help?
P.S sorry if this comes out badly formatted, it's my first post.
James
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/561825#561825]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[Beginner's Corner] - Deployments missing dependencies when publishing to JBoss
by G S
mrfrankblack [http://community.jboss.org/people/mrfrankblack] created the discussion
"Deployments missing dependencies when publishing to JBoss"
To view the discussion, visit: http://community.jboss.org/message/566330#566330
--------------------------------------------------------------
Hi, I'm trying to put an EAR file on the server (EJB+JPA) but it's giving me the following error. I put the MYSQL connector in the deploy folder, since it didn't seem to be recognising the datasource, but no luck...I'm using JBoss 5.1.0 and Eclipse Helios
{code}
17:42:05,537 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=ObligEAR.ear/ObligatorioJPA.jar#ObligatorioJPA' **")
Deployment "jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
Deployment "persistence.unit:unitName=ObligEAR.ear/ObligatorioJPA.jar#ObligatorioJPA" is missing the following dependencies:
Dependency "jboss.jca:name=mysqlds,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=mysqlds,service=DataSourceBinding' **")
DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=ObligEAR.ear/ObligatorioJPA.jar#ObligatorioJPA' **
Deployment "jboss.jca:name=mysqlds,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=mysqlds,service=DataSourceBinding' **
17:42:05,557 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
17:42:05,624 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
17:42:05,632 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 47s:910ms
17:42:41,244 WARN [SaxJBossXBParser] schema_reference.4: Failed to read schema document ' http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. @ vfszip:/C:/Users/George/Desktop/jboss-5.1.0.GA/server/default/deploy/ObligEAR.ear/ObligatorioJPA.jar/META-INF/persistence.xml[2,248]
17:42:41,284 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10738507{vfszip:/C:/Users/George/Desktop/jboss-5.1.0.GA/server/default/deploy/ObligEAR.ear/EJBObli.jar/}
17:42:41,284 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10738507{vfszip:/C:/Users/George/Desktop/jboss-5.1.0.GA/server/default/deploy/ObligEAR.ear/EJBObli.jar/}
17:42:41,301 INFO [JBossASKernel] Created KernelDeployment for: EJBObli.jar
17:42:41,301 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3
17:42:41,301 INFO [JBossASKernel] with dependencies:
17:42:41,302 INFO [JBossASKernel] and demands:
17:42:41,302 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
17:42:41,302 INFO [JBossASKernel] persistence.unit:unitName=ObligEAR.ear/ObligatorioJPA.jar#ObligatorioJPA
17:42:41,302 INFO [JBossASKernel] and supplies:
17:42:41,302 INFO [JBossASKernel] Class:ejb.ListaContactosRemote
17:42:41,302 INFO [JBossASKernel] jndi:ObligEAR/ListaContactos/remote-ejb.ListaContactosRemote
17:42:41,302 INFO [JBossASKernel] jndi:ObligEAR/ListaContactos/remote
17:42:41,302 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3) to KernelDeployment of: EJBObli.jar
17:42:41,305 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@10efa29{name=jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
17:42:41,411 WARN [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=ObligEAR.ear/ObligatorioJPA.jar#ObligatorioJPA' **")
Deployment "jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
Deployment "persistence.unit:unitName=ObligEAR.ear/ObligatorioJPA.jar#ObligatorioJPA" is missing the following dependencies:
Dependency "jboss.jca:name=mysqlds,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=mysqlds,service=DataSourceBinding' **")
DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN jboss.j2ee:ear=ObligEAR.ear,jar=EJBObli.jar,name=ListaContactos,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=ObligEAR.ear/ObligatorioJPA.jar#ObligatorioJPA' **
Deployment "jboss.jca:name=mysqlds,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=mysqlds,service=DataSourceBinding' **
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
{code}
and here's the Persistence.xml
{xml}
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="ObligatorioJPA" transaction-type="JTA">
<jta-data-source>java:mysqlds</jta-data-source>
<class>bean.Contacto</class>
<class>bean.Empleado</class>
<class>bean.Direccion</class>
<properties>
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.use_sql_comments" value="false" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
<property name="hibernate.hbm2ddl.auto" value="update" />
</properties>
</persistence-unit>
</persistence>
{xml}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566330#566330]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[jBPM] - The process instance Couldn't completed
by echelon
echelon [http://community.jboss.org/people/echelon] created the discussion
"The process instance Couldn't completed"
To view the discussion, visit: http://community.jboss.org/message/588231#588231
--------------------------------------------------------------
Hi!
I found a progrem that there was is a exception when the end node executed.
And it's also exists when I click the terminate button to terminate process instance.
Have somebody got it? Or tell me the reason!
Thanks!
2011-02-18 06:06:38,239 INFO [STDOUT] (NioProcessor-1) 06:06:38,239 ERROR [SingleSessionCommandService] Could not commit session
java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent
at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:108)
at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35)
at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40)
at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:263)
at org.jbpm.workflow.instance.node.EndNodeInstance.internalTrigger(EndNodeInstance.java:57)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)
at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:206)
at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:268)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:244)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:119)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:295)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:146)
at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTaskHandler.java:277)
at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)
at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
2011-02-18 06:06:38,275 INFO [STDOUT] (NioProcessor-1) [2011:02:49 06:02:275:exception] Uncaught exception on client
2011-02-18 06:06:38,275 INFO [STDOUT] (NioProcessor-1) java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent
2011-02-18 06:06:38,275 INFO [STDOUT] (NioProcessor-1) at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:108)
2011-02-18 06:06:38,275 INFO [STDOUT] (NioProcessor-1) at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35)
2011-02-18 06:06:38,275 INFO [STDOUT] (NioProcessor-1) at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40)
2011-02-18 06:06:38,374 INFO [STDOUT] (NioProcessor-1) at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23)
2011-02-18 06:06:38,374 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:263)
2011-02-18 06:06:38,375 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.EndNodeInstance.internalTrigger(EndNodeInstance.java:57)
2011-02-18 06:06:38,375 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
2011-02-18 06:06:38,375 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
2011-02-18 06:06:38,474 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
2011-02-18 06:06:38,474 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)
2011-02-18 06:06:38,474 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)
2011-02-18 06:06:38,475 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
2011-02-18 06:06:38,475 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
2011-02-18 06:06:38,587 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
2011-02-18 06:06:38,587 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
2011-02-18 06:06:38,587 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
2011-02-18 06:06:38,588 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
2011-02-18 06:06:38,686 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:206)
2011-02-18 06:06:38,686 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
2011-02-18 06:06:38,686 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:268)
2011-02-18 06:06:38,686 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:244)
2011-02-18 06:06:38,786 INFO [STDOUT] (NioProcessor-1) at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)
2011-02-18 06:06:38,786 INFO [STDOUT] (NioProcessor-1) at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:119)
2011-02-18 06:06:38,786 INFO [STDOUT] (NioProcessor-1) at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
2011-02-18 06:06:38,786 INFO [STDOUT] (NioProcessor-1) at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
2011-02-18 06:06:38,886 INFO [STDOUT] (NioProcessor-1) at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:295)
2011-02-18 06:06:38,886 INFO [STDOUT] (NioProcessor-1) at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:146)
2011-02-18 06:06:38,886 INFO [STDOUT] (NioProcessor-1) at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTaskHandler.java:277)
2011-02-18 06:06:38,886 INFO [STDOUT] (NioProcessor-1) at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)
2011-02-18 06:06:38,986 INFO [STDOUT] (NioProcessor-1) at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47)
2011-02-18 06:06:38,986 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
2011-02-18 06:06:38,986 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
2011-02-18 06:06:38,986 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
2011-02-18 06:06:39,086 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
2011-02-18 06:06:39,086 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
2011-02-18 06:06:39,087 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
2011-02-18 06:06:39,087 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
2011-02-18 06:06:39,186 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
2011-02-18 06:06:39,187 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
2011-02-18 06:06:39,187 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
2011-02-18 06:06:39,187 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
2011-02-18 06:06:39,286 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
2011-02-18 06:06:39,286 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
2011-02-18 06:06:39,286 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
2011-02-18 06:06:39,287 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
2011-02-18 06:06:39,387 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
2011-02-18 06:06:39,388 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
2011-02-18 06:06:39,388 INFO [STDOUT] (NioProcessor-1) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
2011-02-18 06:06:39,388 INFO [STDOUT] (NioProcessor-1) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
2011-02-18 06:06:39,389 INFO [STDOUT] (NioProcessor-1) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
2011-02-18 06:06:39,487 INFO [STDOUT] (NioProcessor-1) at java.lang.Thread.run(Thread.java:595)
2011-02-18 06:06:39,488 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user admin:
2011-02-18 06:06:39,488 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) admin
2011-02-18 06:06:39,488 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) manager
2011-02-18 06:06:39,488 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) user
2011-02-18 06:06:39,489 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user krisv:
2011-02-18 06:06:39,489 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) admin
2011-02-18 06:06:39,489 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) manager
2011-02-18 06:06:39,489 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) user
2011-02-18 06:06:39,490 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user john:
2011-02-18 06:06:39,490 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) admin
2011-02-18 06:06:39,490 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) manager
2011-02-18 06:06:39,490 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) user
2011-02-18 06:06:39,587 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user mary:
2011-02-18 06:06:39,587 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) admin
2011-02-18 06:06:39,587 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) manager
2011-02-18 06:06:39,587 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) user
2011-02-18 06:06:39,618 INFO [STDOUT] (NioProcessor-4) [2011:02:49 06:02:618:debug] Message receieved on client : QueryTaskSummaryResponse
2011-02-18 06:06:39,619 INFO [STDOUT] (NioProcessor-4) [2011:02:49 06:02:619:debug] Arguments : [[org.jbpm.task.query.TaskSummary@42f58ed6]]
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/588231#588231]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[JBoss Messaging] - Queue stops working under load without error
by Michal Glowacki
Michal Glowacki [http://community.jboss.org/people/mglowacki] created the discussion
"Queue stops working under load without error"
To view the discussion, visit: http://community.jboss.org/message/587645#587645
--------------------------------------------------------------
hi,
I created queue to put incoming requests into LinkedList, so I can process them one by one. It works perfect, until for example 10 requests come exactly same time. Then my queue just freezes. Any new request is not processed, I can't see any errors in the logs. I have to redeploy my MDB jar file in order to get it working again. However all messages are lost. I checked via JMX console state of the queue when it's broken, everything looks fine, DLQ is empty. Do you know where I could look for an error?
here's jms-destination-service.xml
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=ProcessingQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<attribute name="RedeliveryDelay">3000</attribute> <!-- those 2 I added later, but also did not help -->
<attribute name="MaxDeliveryAttempts">3</attribute>
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
and beginning of my MDB class:
@MessageDriven(activationConfig = {
@ActivationConfigProperty(
propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(
propertyName = "destination", propertyValue = "/queue/ProcessingQueue"),
@ActivationConfigProperty(
propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
})
@org.jboss.ejb3.annotation.Depends("org.hornetq:module=JMS,name=\"ProcessingQueue\",type=Queue")
Thanks,
Michal
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/587645#587645]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months