camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Re: Camel / OSGI : java.lang.NoSuchFieldError: LOG at org.apache.camel.osgi.OsgiPackageScanClassResolver.find(OsgiPackageScanClassResolver.java:53)
Date Tue, 30 Jun 2009 15:08:14 GMT
Thx. I have also updated camel-osgi and everything is ok now

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com


On Tue, Jun 30, 2009 at 5:04 PM, Willem Jiang <willem.jiang@gmail.com>wrote:

> Hi Charles,
>
> I Just checked the code of OsgiPackageScanClassResolver and I think you get
> a wrong version of camel-core and camel-osgi.
> Since Claus did some work of CAMEL-1725 to improve the logging of osgi two
> week ago, you need to update the camel-core and camel-osgi at the same time.
>
> The LOG flied is used in a old version of OsgiPackageScanClassResolver and
> current version removed it.
>
> Willem
>
>
> Charles Moulliard wrote:
>
>> Hi,
>>
>> After refreshing camel-core in my Apache Karaf server and started a
>> camelcontext bundle, here is the error that is reported :
>>
>> 16:31:40,650 | ERROR | xtenderThread-16 | ContextLoaderListener
>>  |
>> BundleApplicationContextListener   50 | Application context refresh failed
>> (OsgiBundleXmlApplicationContext(bundle=com.xpectis.x3s.x3s-core,
>> config=osgibundle:/META-INF/spring/*.xml))
>> java.lang.NoSuchFieldError: LOG
>>    at
>>
>> org.apache.camel.osgi.OsgiPackageScanClassResolver.find(OsgiPackageScanClassResolver.java:53)
>>    at
>>
>> org.apache.camel.impl.DefaultPackageScanClassResolver.findAnnotated(DefaultPackageScanClassResolver.java:98)
>>    at
>>
>> org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:62)
>>    at
>>
>> org.apache.camel.impl.converter.DefaultTypeConverter.checkLoaded(DefaultTypeConverter.java:353)
>>    at
>>
>> org.apache.camel.impl.converter.DefaultTypeConverter.doConvertTo(DefaultTypeConverter.java:153)
>>    at
>>
>> org.apache.camel.impl.converter.DefaultTypeConverter.mandatoryConvertTo(DefaultTypeConverter.java:113)
>>    at
>>
>> org.apache.camel.impl.converter.DefaultTypeConverter.mandatoryConvertTo(DefaultTypeConverter.java:107)
>>    at
>>
>> org.apache.camel.util.IntrospectionSupport.convert(IntrospectionSupport.java:266)
>>    at
>>
>> org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:222)
>>    at
>>
>> org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:189)
>>    at
>>
>> org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:128)
>>    at
>>
>> org.apache.camel.impl.ScheduledPollEndpoint.configureConsumer(ScheduledPollEndpoint.java:64)
>>    at
>>
>> org.apache.camel.component.file.FileEndpoint.createConsumer(FileEndpoint.java:75)
>>    at
>>
>> org.apache.camel.component.file.FileEndpoint.createConsumer(FileEndpoint.java:29)
>>    at
>>
>> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:57)
>>    at
>>
>> org.apache.camel.impl.DefaultRoute.getServicesForRoute(DefaultRoute.java:81)
>>    at org.apache.camel.impl.RouteService.doStart(RouteService.java:77)
>>    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
>>    at
>>
>> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:870)
>>    at
>>
>> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:99)
>>    at
>>
>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:119)
>>    at
>>
>> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:465)
>>    at
>>
>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>>    at
>>
>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>>    at
>>
>> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>>    at
>>
>> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
>>    at
>>
>> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
>>    at
>>
>> org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
>>    at
>>
>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
>>    at
>>
>> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>>    at
>>
>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
>>    at
>>
>> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
>>    at java.lang.Thread.run(Thread.java:619)
>>
>> Remark : No LOG field, variable exist in the spring XML files
>>
>> Regards,
>>
>> Charles Moulliard
>> Senior Enterprise Architect
>> Apache Camel Committer
>>
>> *****************************
>> blog : http://cmoulliard.blogspot.com
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message