Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 40285 invoked from network); 30 Jun 2009 15:08:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jun 2009 15:08:34 -0000 Received: (qmail 47529 invoked by uid 500); 30 Jun 2009 15:08:45 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 47507 invoked by uid 500); 30 Jun 2009 15:08:45 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 47497 invoked by uid 99); 30 Jun 2009 15:08:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 15:08:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cmoulliard@gmail.com designates 209.85.218.214 as permitted sender) Received: from [209.85.218.214] (HELO mail-bw0-f214.google.com) (209.85.218.214) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 15:08:35 +0000 Received: by bwz10 with SMTP id 10so194278bwz.20 for ; Tue, 30 Jun 2009 08:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Pnq+zpP5VECYMrr1KIXUceJqh9AjZfHpvHCcjZU2fOk=; b=mSsPL7QorjLXESoWr06xGesGABNjp2lQiy9WvZGA4X3vFVsL9LNinuGKFlcdP7LDEO hlj4ATec+/AXIq+NiXrfj4IvVyQUf4R4EAtMtRWmZ4fllZRwH0SQCrPWxNSLZkLctA7U w7x1zprSwlh+b4m5CBJiFS2Xgh9T+V16bTKSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Wnj4j6djUhg4JrBjzGNVbr3NgtpGU4ZGIQ2+8SUDzogxoRSwTuKWzVRfOzJmVJ8jec QgbYV0QRCAgbLoX+a0Nj4XQFkIKK7PxDkI8tRi0ot1okInMHFDZ7GNdoxIHegK+VyLnS d1I6Ne4IE1HtzAi/9ow1UPomrDJcgKI73NOr4= MIME-Version: 1.0 Received: by 10.103.226.10 with SMTP id d10mr4853544mur.105.1246374494950; Tue, 30 Jun 2009 08:08:14 -0700 (PDT) In-Reply-To: <4A4A2990.2000604@gmail.com> References: <4A4A2990.2000604@gmail.com> Date: Tue, 30 Jun 2009 17:08:14 +0200 Message-ID: Subject: Re: Camel / OSGI : java.lang.NoSuchFieldError: LOG at org.apache.camel.osgi.OsgiPackageScanClassResolver.find(OsgiPackageScanClassResolver.java:53) From: Charles Moulliard To: dev@camel.apache.org Content-Type: multipart/alternative; boundary=0016e6dd96a0075a44046d922d4b X-Virus-Checked: Checked by ClamAV on apache.org --0016e6dd96a0075a44046d922d4b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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 >> >> > --0016e6dd96a0075a44046d922d4b--