Petals SE Flowable

Error: FlowableException: Query return 14439 results instead of max 1

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1.2
  • Fix Version/s: 1.2.0
  • Component/s: Process service
  • Security Level: Public
  • Description:
    Hide

    On execution of a service operation based on an intermediate message catch event, sometimes I get the following error:

    org.flowable.engine.common.api.FlowableException: javax.jbi.messaging.MessagingException: org.flowable.engine.common.api.FlowableException: Query return 14439 results instead of max 1
        at org.flowable.engine.common.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:165)
        at org.flowable.engine.common.impl.AbstractQuery.execute(AbstractQuery.java:145)
        at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
        at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
        at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
        at org.flowable.engine.common.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
        at org.flowable.engine.common.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
        at org.flowable.engine.common.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
        at org.flowable.engine.common.impl.AbstractQuery.singleResult(AbstractQuery.java:104)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.investigateMissingExecution(IntermediateMessageCatchEventOperation.java:191)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.doExecute(IntermediateMessageCatchEventOperation.java:134)
        at org.ow2.petals.flowable.incoming.operation.FlowableOperation.execute(FlowableOperation.java:211)
        at org.ow2.petals.flowable.incoming.FlowableJBIListener.onJBIMessage(FlowableJBIListener.java:144)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.invokeJBIListener(MessageExchangeProcessor.java:525)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:493)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:283)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:181)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
        at org.flowable.engine.impl.webservice.CxfWebServiceClient.send(CxfWebServiceClient.java:84)
        at org.flowable.engine.impl.webservice.WSOperation.safeSend(WSOperation.java:72)
        at org.flowable.engine.impl.webservice.WSOperation.sendFor(WSOperation.java:61)
        at org.flowable.engine.impl.bpmn.webservice.Operation.sendMessage(Operation.java:54)
        at org.flowable.engine.impl.bpmn.behavior.WebServiceActivityBehavior.execute(WebServiceActivityBehavior.java:136)
        at org.flowable.engine.impl.agenda.ContinueProcessOperation.executeActivityBehavior(ContinueProcessOperation.java:256)
        at org.flowable.engine.impl.agenda.ContinueProcessOperation.executeSynchronous(ContinueProcessOperation.java:154)
        at org.flowable.engine.impl.agenda.ContinueProcessOperation.continueThroughFlowNode(ContinueProcessOperation.java:111)
        at org.flowable.engine.impl.agenda.ContinueProcessOperation.run(ContinueProcessOperation.java:75)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:88)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
        at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
        at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
        at org.flowable.engine.common.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
        at org.flowable.engine.common.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
        at org.flowable.engine.common.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
        at org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.executeJob(ExecuteAsyncRunnable.java:125)
        at org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.run(ExecuteAsyncRunnable.java:112)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.RuntimeException: javax.jbi.messaging.MessagingException: org.flowable.engine.common.api.FlowableException: Query return 14439 results instead of max 1
        at org.flowable.engine.common.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:165)
        at org.flowable.engine.common.impl.AbstractQuery.execute(AbstractQuery.java:145)
        at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
        at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
        at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
        at org.flowable.engine.common.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
        at org.flowable.engine.common.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
        at org.flowable.engine.common.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
        at org.flowable.engine.common.impl.AbstractQuery.singleResult(AbstractQuery.java:104)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.investigateMissingExecution(IntermediateMessageCatchEventOperation.java:191)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.doExecute(IntermediateMessageCatchEventOperation.java:134)
        at org.ow2.petals.flowable.incoming.operation.FlowableOperation.execute(FlowableOperation.java:211)
        at org.ow2.petals.flowable.incoming.FlowableJBIListener.onJBIMessage(FlowableJBIListener.java:144)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.invokeJBIListener(MessageExchangeProcessor.java:525)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:493)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:283)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:181)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
        at org.ow2.petals.flowable.outgoing.cxf.transport.NormalizedMessageOutputStream.close(NormalizedMessageOutputStream.java:216)
        at org.apache.cxf.io.AbstractWrappedOutputStream.close(AbstractWrappedOutputStream.java:77)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:297)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:283)
        at org.flowable.engine.impl.webservice.CxfWebServiceClient.send(CxfWebServiceClient.java:78)
        ... 22 more
    Caused by: javax.jbi.messaging.MessagingException: org.flowable.engine.common.api.FlowableException: Query return 14439 results instead of max 1
        at org.flowable.engine.common.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:165)
        at org.flowable.engine.common.impl.AbstractQuery.execute(AbstractQuery.java:145)
        at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
        at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
        at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
        at org.flowable.engine.common.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
        at org.flowable.engine.common.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
        at org.flowable.engine.common.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
        at org.flowable.engine.common.impl.AbstractQuery.singleResult(AbstractQuery.java:104)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.investigateMissingExecution(IntermediateMessageCatchEventOperation.java:191)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.doExecute(IntermediateMessageCatchEventOperation.java:134)
        at org.ow2.petals.flowable.incoming.operation.FlowableOperation.execute(FlowableOperation.java:211)
        at org.ow2.petals.flowable.incoming.FlowableJBIListener.onJBIMessage(FlowableJBIListener.java:144)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.invokeJBIListener(MessageExchangeProcessor.java:525)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:493)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:283)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:181)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
        at org.ow2.petals.component.framework.message.ExchangeImpl.setError(ExchangeImpl.java:592)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:190)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
    Show
    On execution of a service operation based on an intermediate message catch event, sometimes I get the following error:
    org.flowable.engine.common.api.FlowableException: javax.jbi.messaging.MessagingException: org.flowable.engine.common.api.FlowableException: Query return 14439 results instead of max 1
        at org.flowable.engine.common.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:165)
        at org.flowable.engine.common.impl.AbstractQuery.execute(AbstractQuery.java:145)
        at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
        at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
        at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
        at org.flowable.engine.common.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
        at org.flowable.engine.common.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
        at org.flowable.engine.common.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
        at org.flowable.engine.common.impl.AbstractQuery.singleResult(AbstractQuery.java:104)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.investigateMissingExecution(IntermediateMessageCatchEventOperation.java:191)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.doExecute(IntermediateMessageCatchEventOperation.java:134)
        at org.ow2.petals.flowable.incoming.operation.FlowableOperation.execute(FlowableOperation.java:211)
        at org.ow2.petals.flowable.incoming.FlowableJBIListener.onJBIMessage(FlowableJBIListener.java:144)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.invokeJBIListener(MessageExchangeProcessor.java:525)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:493)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:283)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:181)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
        at org.flowable.engine.impl.webservice.CxfWebServiceClient.send(CxfWebServiceClient.java:84)
        at org.flowable.engine.impl.webservice.WSOperation.safeSend(WSOperation.java:72)
        at org.flowable.engine.impl.webservice.WSOperation.sendFor(WSOperation.java:61)
        at org.flowable.engine.impl.bpmn.webservice.Operation.sendMessage(Operation.java:54)
        at org.flowable.engine.impl.bpmn.behavior.WebServiceActivityBehavior.execute(WebServiceActivityBehavior.java:136)
        at org.flowable.engine.impl.agenda.ContinueProcessOperation.executeActivityBehavior(ContinueProcessOperation.java:256)
        at org.flowable.engine.impl.agenda.ContinueProcessOperation.executeSynchronous(ContinueProcessOperation.java:154)
        at org.flowable.engine.impl.agenda.ContinueProcessOperation.continueThroughFlowNode(ContinueProcessOperation.java:111)
        at org.flowable.engine.impl.agenda.ContinueProcessOperation.run(ContinueProcessOperation.java:75)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:88)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
        at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
        at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
        at org.flowable.engine.common.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
        at org.flowable.engine.common.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
        at org.flowable.engine.common.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
        at org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.executeJob(ExecuteAsyncRunnable.java:125)
        at org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.run(ExecuteAsyncRunnable.java:112)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.RuntimeException: javax.jbi.messaging.MessagingException: org.flowable.engine.common.api.FlowableException: Query return 14439 results instead of max 1
        at org.flowable.engine.common.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:165)
        at org.flowable.engine.common.impl.AbstractQuery.execute(AbstractQuery.java:145)
        at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
        at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
        at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
        at org.flowable.engine.common.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
        at org.flowable.engine.common.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
        at org.flowable.engine.common.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
        at org.flowable.engine.common.impl.AbstractQuery.singleResult(AbstractQuery.java:104)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.investigateMissingExecution(IntermediateMessageCatchEventOperation.java:191)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.doExecute(IntermediateMessageCatchEventOperation.java:134)
        at org.ow2.petals.flowable.incoming.operation.FlowableOperation.execute(FlowableOperation.java:211)
        at org.ow2.petals.flowable.incoming.FlowableJBIListener.onJBIMessage(FlowableJBIListener.java:144)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.invokeJBIListener(MessageExchangeProcessor.java:525)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:493)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:283)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:181)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
        at org.ow2.petals.flowable.outgoing.cxf.transport.NormalizedMessageOutputStream.close(NormalizedMessageOutputStream.java:216)
        at org.apache.cxf.io.AbstractWrappedOutputStream.close(AbstractWrappedOutputStream.java:77)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:297)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:283)
        at org.flowable.engine.impl.webservice.CxfWebServiceClient.send(CxfWebServiceClient.java:78)
        ... 22 more
    Caused by: javax.jbi.messaging.MessagingException: org.flowable.engine.common.api.FlowableException: Query return 14439 results instead of max 1
        at org.flowable.engine.common.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:165)
        at org.flowable.engine.common.impl.AbstractQuery.execute(AbstractQuery.java:145)
        at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)
        at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
        at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
        at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
        at org.flowable.engine.common.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
        at org.flowable.engine.common.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
        at org.flowable.engine.common.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
        at org.flowable.engine.common.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
        at org.flowable.engine.common.impl.AbstractQuery.singleResult(AbstractQuery.java:104)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.investigateMissingExecution(IntermediateMessageCatchEventOperation.java:191)
        at org.ow2.petals.flowable.incoming.operation.IntermediateMessageCatchEventOperation.doExecute(IntermediateMessageCatchEventOperation.java:134)
        at org.ow2.petals.flowable.incoming.operation.FlowableOperation.execute(FlowableOperation.java:211)
        at org.ow2.petals.flowable.incoming.FlowableJBIListener.onJBIMessage(FlowableJBIListener.java:144)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.invokeJBIListener(MessageExchangeProcessor.java:525)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:493)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:283)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:181)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
        at org.ow2.petals.component.framework.message.ExchangeImpl.setError(ExchangeImpl.java:592)
        at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:190)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Wed, 26 Jun 2019 - 15:56:10 +0200

Merged in master branch

Show
Christophe DENEUX added a comment - Wed, 26 Jun 2019 - 15:56:10 +0200 Merged in master branch
Hide
Christophe DENEUX added a comment - Wed, 26 Jun 2019 - 15:17:55 +0200

Reopen to be merged in master

Show
Christophe DENEUX added a comment - Wed, 26 Jun 2019 - 15:17:55 +0200 Reopen to be merged in master
Hide
Christophe DENEUX added a comment - Wed, 26 Jun 2019 - 15:17:41 +0200

Fix in branch petals-se-flowable-1.1.x

Show
Christophe DENEUX added a comment - Wed, 26 Jun 2019 - 15:17:41 +0200 Fix in branch petals-se-flowable-1.1.x
Hide
Christophe DENEUX added a comment - Tue, 25 Jun 2019 - 15:17:31 +0200

When investigatiung why no execution was found for the intermediate message catch event, a query is done to retrieve execution in history. But the process instance identifier is not used as filter, that's why a result can be returned per process instances.

Please add the filter on process instance identifier into the historic query !

Show
Christophe DENEUX added a comment - Tue, 25 Jun 2019 - 15:17:31 +0200 When investigatiung why no execution was found for the intermediate message catch event, a query is done to retrieve execution in history. But the process instance identifier is not used as filter, that's why a result can be returned per process instances. Please add the filter on process instance identifier into the historic query !

People

Dates

  • Created:
    Tue, 25 Jun 2019 - 15:15:08 +0200
    Updated:
    Wed, 26 Jun 2019 - 15:56:10 +0200
    Resolved:
    Wed, 26 Jun 2019 - 15:56:10 +0200