Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4F941042C for ; Sat, 2 Nov 2013 09:12:36 +0000 (UTC) Received: (qmail 65055 invoked by uid 500); 2 Nov 2013 09:12:35 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 64756 invoked by uid 500); 2 Nov 2013 09:12:33 -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 64740 invoked by uid 99); 2 Nov 2013 09:12:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Nov 2013 09:12:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cristiano.costantini@gmail.com designates 74.125.82.174 as permitted sender) Received: from [74.125.82.174] (HELO mail-we0-f174.google.com) (74.125.82.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Nov 2013 09:12:28 +0000 Received: by mail-we0-f174.google.com with SMTP id u56so394070wes.19 for ; Sat, 02 Nov 2013 02:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=7KvRy1y502vGsFt0U9SFKUylwtE7EDVMMOuZDiyttbQ=; b=OwL1NnevrlJ/FmMDlm0WDBrw/sH15NCSjOFAytht4hZqulsLQqujni5Fafrui0vvKB 19Nt0NRlvw7OdMzW4WySrhD/cgoNQHQfgThjSJlunE8IMORrw9vSZjpCI0JGF5H8PmqW Dg74NBQhe+kvMjGw7NCSzsL7gyy+Bqxy7/xybjaurmoYwJ4/wBz+QfmCPCiRxIooyl5J SHieh8Rb8hkPgTNbryqWVekxrKSspoveSFUYfVr0x6VTFk9Fsk8VNZnbwWVBJpOZgI2l g+o1D5HNrslWdwf2JRKbOZjW1UzhM0jqyB12ZEGJcgXLd9yRdvenqAHBV7E2XUVEDfGL lV2Q== MIME-Version: 1.0 X-Received: by 10.194.21.131 with SMTP id v3mr679378wje.44.1383383527121; Sat, 02 Nov 2013 02:12:07 -0700 (PDT) Received: by 10.217.52.4 with HTTP; Sat, 2 Nov 2013 02:12:07 -0700 (PDT) Date: Sat, 2 Nov 2013 10:12:07 +0100 Message-ID: Subject: Problem with camel-mina2 feature in servicemix 4.5.3 From: Cristiano Costantini To: dev@camel.apache.org, "dev@servicemix.apache.org" Content-Type: multipart/alternative; boundary=047d7b5d64f2b8f09704ea2e1371 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d64f2b8f09704ea2e1371 Content-Type: text/plain; charset=ISO-8859-1 Hi All, I have a route that start with a mina2 UDP endpoint: I installed the camel-mina2 feature and I deployed it to Servicemix (I'm using 4.5.3), but when starting the bundle with the mina2 route I got a NoSuchMethod exception (see at the end). The problem was that the camel-mina2 features uses bundle mvn:org.apache.mina/mina-core/2.0.7 but on Servicemix 4.5.3 the version 2.0.5 get installed due to feature .... mvn:org.apache.mina/mina-core/2.0.5 .... (from apache-servicemix-4.5.3/system/org/apache/karaf/assemblies/features/standard/2.2.11/standard-2.2.11-features.xml) I got it working by: 1. installing mvn:org.apache.mina/mina-core/2.0.7 2. stopping mvn:org.apache.mina/mina-core/2.0.5 3. updating mvn:org.apache.camel/camel-mina2/2.10.7 so to get it using last version 4. restarting my bundle with the mina2 route In the next version of camel or servicemix, is it possible to have the feature camel-mina2 to require explicitly mina >= 2.0.7 so that it is not required installing it manually? or should be karaf ssh's feature to upgrade to mina 2.0.7? (sorry I'm in a hurry now and can't open a JIRA ticket, also I don't know if put it in camel, servicemix or karaf) thank you. Cristiano PS: Here the exception's stack trace I got when camel-mina2 got resolved to mina 2.0.5 java.lang.NoSuchMethodError: org.apache.mina.core.service.IoAcceptor.bind(Ljava/net/SocketAddress;)V at org.apache.camel.component.mina2.Mina2Consumer.doStart(Mina2Consumer.java:91) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1788) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:2084) at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:2020) at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1948) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1727) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1608) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1475) at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1443) at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118) at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:285) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[73:org.springframework.context:3.0.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[73:org.springframework.context:3.0.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[73:org.springframework.context:3.0.7.RELEASE] at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[79:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[79:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[79:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[79:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[82:org.springframework.osgi.extender:1.2.1] at java.lang.Thread.run(Thread.java:724)[:1.7.0_40] --047d7b5d64f2b8f09704ea2e1371--