Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2675

camel-example-guicy-jms GuiceTest failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None

    Description

      Here is the stack trace

      [//target/routeOutput?noop=true] GenericFileOnCompletion        ERROR Caused by: [org.apache.camel.CamelExecutionException - Exception occurred during execution on the exchange: Exchange[GenericFileMessage with file: GenericFile[message2.xml]]]
      org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[GenericFileMessage with file: GenericFile[message2.xml]]
      	at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1107)
      	at org.apache.camel.builder.ExpressionBuilder$25.evaluate(ExpressionBuilder.java:625)
      	at org.apache.camel.impl.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)
      	at org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:264)
      	at org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:131)
      	at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:167)
      	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:127)
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
      	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
      	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
      	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:97)
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
      	at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)
      	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
      	at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
      	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)
      	at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:70)
      	at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
      	at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:269)
      	at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:137)
      	at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
      	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:98)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:146)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:170)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      	at java.lang.Thread.run(Thread.java:613)
      Caused by: org.apache.camel.InvalidPayloadException: No body available of type: java.lang.String but has value: GenericFile[message2.xml] of type: org.apache.camel.component.file.GenericFile on: GenericFileMessage with file: GenericFile[message2.xml]. Caused by: No type converter available to convert from type: org.apache.camel.component.file.GenericFile to the required type: java.lang.String with value GenericFile[message2.xml]. Exchange[GenericFileMessage with file: GenericFile[message2.xml]]. Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: org.apache.camel.component.file.GenericFile to the required type: java.lang.String with value GenericFile[message2.xml]]
      	at org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:103)
      	at org.apache.camel.builder.ExpressionBuilder$25.evaluate(ExpressionBuilder.java:623)
      	... 31 more
      Caused by: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.camel.component.file.GenericFile to the required type: java.lang.String with value GenericFile[message2.xml]
      	at org.apache.camel.impl.converter.DefaultTypeConverter.mandatoryConvertTo(DefaultTypeConverter.java:124)
      	at org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:101)
      	... 32 more
      

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: