Sergey Zhemzhitsky created CAMEL-5493:
-----------------------------------------
Summary: GroovyLanguage should use applicationContextClassLoader
of the corresponding CamelContext instead of current thread's contextClassLoader
Key: CAMEL-5493
URL: https://issues.apache.org/jira/browse/CAMEL-5493
Project: Camel
Issue Type: Bug
Components: camel-groovy
Affects Versions: 2.10.0
Reporter: Sergey Zhemzhitsky
Attachments: camel-groovy-failure.zip
Stacktrace:
{code}
Caused by: java.lang.ClassCastException: script13444652627211505912543 cannot
be cast to groovy.lang.Script
at
org.apache.camel.language.groovy.GroovyExpression.evaluate(GroovyExpression.java:52)
at
org.apache.camel.component.language.LanguageProducer.process(LanguageProducer.java:80)
at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverte
rHelper.java:61)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:120)
at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:292)
at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:115)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira