ServiceMix
  1. ServiceMix
  2. SM-2277

activiti-camel thrown ActivitiException when put document in delivery folder

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.1, 5.1.0, 6.0.0.M1, 6.0.0
    • Component/s: examples
    • Labels:
      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]
      
      1. SM-2277.patch.txt
        0.9 kB
        filippo balicchia

        Activity

        Show
        Krzysztof Sobkowiak added a comment - fixed in 5.0.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commitdiff;h=170b370d6e3650a2efad691762ff181382a08975 fixed in 5.1.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commit;h=5e2210981bfc6beb49eeeebefaa0f1423a8ea74e fixed in 6.0.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commitdiff;h=48de4db57b0a495518ad86144da4bc739240aa92 Thanks to Filippo for the patch!
        Hide
        filippo balicchia added a comment -

        Please see the attach for the patch

        Show
        filippo balicchia added a comment - Please see the attach for the patch

          People

          • Assignee:
            Krzysztof Sobkowiak
            Reporter:
            filippo balicchia
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development