Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-2277

activiti-camel thrown ActivitiException when put document in delivery folder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.1, 5.1.0, 6.0.0.M1, 6.0.0
    • examples
    • None

    Description

      After updating activiti from 5.10 to 5.15.1 and use activiti-camel example
      example goes in error after insert document in delivery folder

      org.activiti.engine.ActivitiException: couldn't find a variable type that is able to serialize GenericFile[LICENSE.txt]
      	at org.activiti.engine.impl.variable.DefaultVariableTypes.findVariableType(DefaultVariableTypes.java:62)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.updateVariableInstance(VariableScopeImpl.java:350)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.persistence.entity.ExecutionEntity.updateVariableInstance(ExecutionEntity.java:1090)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariableLocal(VariableScopeImpl.java:270)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:245)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:240)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariables(VariableScopeImpl.java:183)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.cmd.SetExecutionVariablesCmd.execute(SetExecutionVariablesCmd.java:42)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.cmd.NeedsActiveExecutionCmd.execute(NeedsActiveExecutionCmd.java:55)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:64)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)[207:org.activiti.engine:5.15.1]
      	at org.activiti.engine.impl.RuntimeServiceImpl.setVariables(RuntimeServiceImpl.java:182)[207:org.activiti.engine:5.15.1]
      	at Proxy8f164f36_71f0_4734_a72a_41f2c44817b2.setVariables(Unknown Source)[:]
      	at org.activiti.camel.ActivitiProducer.signal(ActivitiProducer.java:94)[209:org.activiti.camel:5.15.1]
      	at org.activiti.camel.ActivitiProducer.process(ActivitiProducer.java:60)[209:org.activiti.camel:5.15.1]
      	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:401)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:201)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:165)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[110:org.apache.camel.camel-core:2.12.3]
      	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[110:org.apache.camel.camel-core:2.12.3]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_39]
      	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_39]
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_39]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_39]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_39]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_39]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_39]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_39]
      	at java.lang.Thread.run(Thread.java:662)[:1.6.0_39]
      

      Attachments

        1. SM-2277.patch.txt
          0.9 kB
          Filippo Balicchia

        Activity

          People

            sobkowiak Krzysztof Sobkowiak
            fbalicchia Filippo Balicchia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: