Camel
  1. Camel
  2. CAMEL-1146

camel-mina adds two versions of slf4j on the classpath

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0, 2.0-M1
    • Component/s: camel-mina
    • Labels:
      None

      Description

      One version comes from camel-mina (version 1.5.5) and one from mina-core (version 1.4.3). This causes problems as seen when trying to use camel-mina at runtime or in my case deploying to ServiceMix. This is the error I get

      org.apache.xbean.kernel.ServiceRegistrationException: java.lang.NoSuchFieldError: name
      	at org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)
      	at org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
      	at org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
      	at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
      	at org.apache.servicemix.camel.CamelSpringDeployer.deploy(CamelSpringDeployer.java:83)
      	at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
      	at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
      	at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
      	at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingSAs(AutoDeploymentService.java:482)
      	at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingComponents(AutoDeploymentService.java:535)
      	at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateSharedLibrary(AutoDeploymentService.java:317)
      	at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:254)
      	at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
      	at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
      	at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
      	at java.util.TimerThread.mainLoop(Timer.java:512)
      	at java.util.TimerThread.run(Timer.java:462)
      Caused by: java.lang.NoSuchFieldError: name
      	at org.slf4j.impl.SimpleLogger.<init>(SimpleLogger.java:83)
      	at org.slf4j.impl.SimpleLoggerFactory.getLogger(SimpleLoggerFactory.java:67)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:103)
      	at org.apache.mina.util.NamePreservingRunnable.<init>(NamePreservingRunnable.java:32)
      	at org.apache.mina.transport.socket.nio.SocketAcceptor.startupWorker(SocketAcceptor.java:165)
      	at org.apache.mina.transport.socket.nio.SocketAcceptor.bind(SocketAcceptor.java:141)
      	at org.apache.camel.component.mina.MinaConsumer.doStart(MinaConsumer.java:60)
      	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:421)
      	at org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:659)
      	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:632)
      	at org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:167)
      	at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:162)
      	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
      	at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:97)
      	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:116)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
      	at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
      	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:617)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
      	at org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(SpringConfiguration.java:63)
      	at org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService(SpringConfigurationServiceFactory.java:106)
      	at org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:420)
      	at org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.java:200)
      	at org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(RegistryFutureTask.java:110)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      	at org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:409)
      

        Activity

          People

          • Assignee:
            Jonathan Anstey
            Reporter:
            Jonathan Anstey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development