Hi Willem

Yeah that was a mistake, can you create a JIRA and commit your fix.


On Thu, Dec 3, 2009 at 4:58 PM, Willem Jiang <[email protected]> wrote:
> Hi
>
> I can reproduce the error after the whole build.
> After digging the code and check the change log, I found the Hadrain may
> copy past a wrong piece of code :(
>
> Here are my patch
> ### Eclipse Workspace Patch 1.0
> #P camel-juel
> Index: src/main/java/org/apache/camel/language/juel/JuelExpression.java
> ===================================================================
> --- src/main/java/org/apache/camel/language/juel/JuelExpression.java
> (revision 886647)
> +++ src/main/java/org/apache/camel/language/juel/JuelExpression.java
> (working copy)
> @@ -77,15 +77,15 @@
>     public ExpressionFactory getExpressionFactory(CamelContext context) {
>         if (expressionFactory == null && context != null) {
>             try {
> -                FactoryFinder finder =
> context.getFactoryFinder("META-INF/services/org/apache/camel/component/");
> -                Class<?> clazz = finder.findClass("juel", "impl.");
> +                FactoryFinder finder =
> context.getFactoryFinder("META-INF/services/org/apache/camel/language/");
> +                Class<?> clazz = finder.findClass("el", "impl.");
>                 if (clazz != null) {
>                     expressionFactory =
> (ExpressionFactory)clazz.newInstance();
>                 }
>             } catch (ClassNotFoundException e) {
>                 LOG.debug("'impl.class' not found", e);
>             } catch (IOException e) {
> -                LOG.debug("No impl class for juel ExpressionFactory defined
> in 'META-INF/services/org/apache/camel/component/el'", e);
> +                LOG.debug("No impl class for juel ExpressionFactory defined
> in 'META-INF/services/org/apache/camel/language/el'", e);
>             } catch (InstantiationException e) {
>                 LOG.debug("Failed to instantiate juel ExpressionFactory
> implementation class.", e);
>             } catch (IllegalAccessException e) {
>
> Willem
>
> Claus Ibsen wrote:
>>
>> On Thu, Dec 3, 2009 at 4:00 PM, Charles Moulliard <[email protected]>
>> wrote:
>>>
>>> not yet
>>>
>>
>> That is generally a good idea to when some issue occur. To do a svn up
>> and do a full rebuild and try again.
>>
>>
>>> Charles Moulliard
>>> Senior Enterprise Architect
>>> Apache Camel Committer
>>>
>>> *****************************
>>> blog : http://cmoulliard.blogspot.com
>>> twitter : http://twitter.com/cmoulliard
>>> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>>
>>> Apache Camel Group :
>>> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
>>>
>>>
>>> On Thu, Dec 3, 2009 at 3:57 PM, Claus Ibsen <[email protected]>
>>> wrote:
>>>
>>>> Hadrian did some changes to camel-juel.
>>>>
>>>> Have you rebuild all your code?
>>>>
>>>> On Thu, Dec 3, 2009 at 3:51 PM, Charles Moulliard <[email protected]>
>>>> wrote:
>>>>>
>>>>> That's ok.
>>>>>
>>>>> For info, this message is reported in debug mode
>>>>>
>>>>> [  Camel thread 0: JpaComponent] JuelExpression                 DEBUG
>>>>> No
>>>>> impl class for juel ExpressionFactory defined in
>>>>> 'META-INF/services/org/apach
>>>>> e/camel/component/el'
>>>>> org.apache.camel.NoFactoryAvailableException: Could not find factory
>>>>
>>>> class
>>>>>
>>>>> for resource: META-INF/services/org/apache/camel/component/juel
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.impl.DefaultFactoryFinder.doFindFactoryProperties(DefaultFactoryFinder.java:135)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.impl.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:77)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.language.juel.JuelExpression.getExpressionFactory(JuelExpression.java:81)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.language.juel.JuelExpression.evaluate(JuelExpression.java:70)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.builder.ProcessorBuilder$4.process(ProcessorBuilder.java:94)
>>>>>
>>>>>       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:93)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
>>>>>
>>>>>       at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
>>>>>
>>>>>       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.jpa.JpaConsumer.processBatch(JpaConsumer.java:133)
>>>>>
>>>>>       at
>>>>>
>>>>> org.apache.camel.component.jpa.JpaConsumer$1.doInJpa(JpaConsumer.java:86)
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.component.jpa.JpaTemplateTransactionStrategy$1$1.doInJpa(JpaTemplateTransactionStrategy.java:81)
>>>>>
>>>>>       at
>>>>> org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:184)
>>>>>       at
>>>>> org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:147)
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.component.jpa.JpaTemplateTransactionStrategy$1.doInTransaction(JpaTemplateTransactionStrategy.java:79)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.component.jpa.JpaTemplateTransactionStrategy.execute(JpaTemplateTransactionStrategy.java:77)
>>>>>
>>>>>       at
>>>>> org.apache.camel.component.jpa.JpaConsumer.poll(JpaConsumer.java:70)
>>>>>       at
>>>>>
>>>>
>>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:108)
>>>>>
>>>>>       at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>       at
>>>>>
>>>>
>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>>
>>>>>       at
>>>>
>>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>
>>>>>       at
>>>>>
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>
>>>>>       at java.lang.Thread.run(Thread.java:619)
>>>>> [  Camel thread 0: JpaComponent] DefaultManagementAgent         DEBUG
>>>>> Registered MBean with objectname:
>>>>> org.apache.camel:context=dell-charles/camel,ty
>>>>>
>>>>>
>>>>> Charles Moulliard
>>>>> Senior Enterprise Architect
>>>>> Apache Camel Committer
>>>>>
>>>>> *****************************
>>>>> blog : http://cmoulliard.blogspot.com
>>>>> twitter : http://twitter.com/cmoulliard
>>>>> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>>>>
>>>>> Apache Camel Group :
>>>>> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
>>>>>
>>>>>
>>>>> On Thu, Dec 3, 2009 at 3:43 PM, Charles Moulliard <[email protected]
>>>>> wrote:
>>>>>
>>>>>> I make a test
>>>>>>
>>>>>>
>>>>>> Charles Moulliard
>>>>>> Senior Enterprise Architect
>>>>>> Apache Camel Committer
>>>>>>
>>>>>> *****************************
>>>>>> blog : http://cmoulliard.blogspot.com
>>>>>> twitter : http://twitter.com/cmoulliard
>>>>>> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>>>>>
>>>>>> Apache Camel Group :
>>>>>> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
>>>>>>
>>>>>>
>>>>>> On Thu, Dec 3, 2009 at 3:30 PM, Willem Jiang <[email protected]
>>>>>
>>>>> wrote:
>>>>>>>
>>>>>>> Oh, you need to compile the example first, like mvn compile.
>>>>>>> Or using mvn install to install the jar.
>>>>>>> mvn camel:run will not build the src for you :(
>>>>>>>
>>>>>>> Willem
>>>>>>>
>>>>>>>
>>>>>>> Charles Moulliard wrote:
>>>>>>>
>>>>>>>> I test it locally using the command :
>>>>>>>>
>>>>>>>> mvn camel:run -Dtest=false
>>>>>>>>
>>>>>>>> Charles Moulliard
>>>>>>>> Senior Enterprise Architect
>>>>>>>> Apache Camel Committer
>>>>>>>>
>>>>>>>> *****************************
>>>>>>>> blog : http://cmoulliard.blogspot.com
>>>>>>>> twitter : http://twitter.com/cmoulliard
>>>>>>>> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>>>>>>>
>>>>>>>> Apache Camel Group :
>>>>>>>> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Dec 3, 2009 at 3:17 PM, Willem Jiang
>>>>>>>> <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>  Hi Charles,
>>>>>>>>>
>>>>>>>>> The example can run by using mvn camel:run.
>>>>>>>>> Did you run it with camel:run or deploy the bundle into OSGi
>>>>>>>>> environment?
>>>>>>>>>
>>>>>>>>> Willem
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Charles Moulliard wrote:
>>>>>>>>>
>>>>>>>>>  The example camel-example-etl does not work
>>>>>>>>>>
>>>>>>>>>> [ Camel thread 1: FileComponent] GenericFileOnCompletion
>>>>
>>>>  ERROR
>>>>>>>>>>
>>>>>>>>>> No
>>>>>>>>>> body available of type:
>>>>>>>>>> org.apache.camel.example.etl.CustomerEntity
>>>>
>>>> but
>>>>>>>>>>
>>>>>>>>>> has
>>>>>>>>>> v
>>>>>>>>>> alue: Person[user: james] of type:
>>>>>>>>>> org.apache.camel.example.etl.PersonDocument on: GenericFileMessage
>>>>
>>>> with
>>>>>>>>>>
>>>>>>>>>> body: Person[user: james] on the exchange:
>>>>>>>>>> Exchange[GenericFileMessage with body: Person[user: james]]
>>>>>>>>>> org.apache.camel.InvalidPayloadRuntimeException: No body available
>>>>
>>>> of
>>>>>>>>>>
>>>>>>>>>> type:
>>>>>>>>>> org.apache.camel.example.etl.CustomerEntity but has value:
>>>>
>>>> Person[user:
>>>>>>>>>>
>>>>>>>>>> ja
>>>>>>>>>> mes] of type: org.apache.camel.example.etl.PersonDocument on:
>>>>>>>>>> GenericFileMessage with body: Person[user: james] on the exchange:
>>>>>>>>>> Exchange[GenericFileM
>>>>>>>>>> essage with body: Person[user: james]]
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.component.jpa.JpaEndpoint$1.evaluate(JpaEndpoint.java:268)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.impl.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>> org.apache.camel.component.jpa.JpaProducer.process(JpaProducer.java:47)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:94)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>> org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)
>>>>>>>>>>
>>>>>>>>>>      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:93)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>
>>>> org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
>>>>>>>>>>
>>>>>>>>>>      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:201)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:122)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:95)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:108)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>>>>>>
>>>>>>>>>>      at
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>>>>>>
>>>>>>>>>>      at java.lang.Thread.run(Thread.java:619)
>>>>>>>>>>
>>>>>>>>>> Charles Moulliard
>>>>>>>>>> Senior Enterprise Architect
>>>>>>>>>> Apache Camel Committer
>>>>>>>>>>
>>>>>>>>>> *****************************
>>>>>>>>>> blog : http://cmoulliard.blogspot.com
>>>>>>>>>> twitter : http://twitter.com/cmoulliard
>>>>>>>>>> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>>>>>>>>>
>>>>>>>>>> Apache Camel Group :
>>>>>>>>>> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>>
>>>> --
>>>> Claus Ibsen
>>>> Apache Camel Committer
>>>>
>>>> Author of Camel in Action: http://www.manning.com/ibsen/
>>>> Open Source Integration: http://fusesource.com
>>>> Blog: http://davsclaus.blogspot.com/
>>>> Twitter: http://twitter.com/davsclaus
>>>>
>>
>>
>>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to