Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D459C10EFB for ; Wed, 12 Jun 2013 19:28:56 +0000 (UTC) Received: (qmail 87122 invoked by uid 500); 12 Jun 2013 19:28:56 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 87085 invoked by uid 500); 12 Jun 2013 19:28:56 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 87056 invoked by uid 99); 12 Jun 2013 19:28:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 19:28:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cwolf.algo@gmail.com designates 209.85.212.42 as permitted sender) Received: from [209.85.212.42] (HELO mail-vb0-f42.google.com) (209.85.212.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 19:28:49 +0000 Received: by mail-vb0-f42.google.com with SMTP id i3so6083771vbh.1 for ; Wed, 12 Jun 2013 12:28:29 -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 :content-transfer-encoding; bh=kboEJy1GPnUPyaR06KAVA3iN31Od8D7o/ZsVlbdf6lQ=; b=ALneVsb1fCVK/TzPY34M/T7Nruft3jEZ7FXtaJx8RLNnlienGAMXMuoOaA+qKyGC3H hukkRf0yyYU3iuaWXQfBFy/5ovBBFidhN0228ejV83zxtuTtqp9gJNsQ5RQELDBygnMY UPl9L4FIUfovsi/IZRwREzQLU0AuDYxJMhTDtYmxyJGr61Csq6WDnzRy2UvDV6z7UrrD s6tKUKb+tnVgLocVlDAfQ3zf94IpSf2wj00DtVDPLAp3ohGdJg1v3r52NsiHyZ6BBhw5 MT/Us1C5b/2O4nbYRArIHWUeg/snsMypFEpSFYHEFcxFD/iv96j4+E5dnuT0qr8z+NQY 5+fA== MIME-Version: 1.0 X-Received: by 10.220.144.67 with SMTP id y3mr9098403vcu.17.1371065308967; Wed, 12 Jun 2013 12:28:28 -0700 (PDT) Received: by 10.58.207.52 with HTTP; Wed, 12 Jun 2013 12:28:28 -0700 (PDT) Date: Wed, 12 Jun 2013 15:28:28 -0400 Message-ID: Subject: Problem with DefaultCamelContext EndpointRegistry From: Chris Wolf To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I am trying to develop a new component, but it needs to be able to have it's endpoint be registered in the CamelContext endpoint registry. Whenever the runtime tries to call DefaultCamelContext.getEndpoint(String uri) it returns null, even though, in the debugger, I can expand DefaultCamelContext.endpoints.map ...and see that, for sure, the endpoint is in the registry, except the key now has "%3A2" appended, so of course, the EndpointKey, which looks like: dsftp://localhost:21000?binary=3Dtrue&directory=3Dtarget%2Fres%2Fhome&filte= r=3D%23cpmdFileFilter&idempotent=3Dtrue&localWorkDirectory=3Dtarget%2Fres%2= Ftmp%2Flocal&move=3Darchive%2F%24%7Bfile%3Aname%7D&password=3Dadpt5&separat= or=3DUNIX&username=3Dadpt5 ...won't match, so that explains why DefaultCamelContext.getEndpoint(String uri) returns null. DefaultCamelContext.endpoints.map: (other entries removed for clarity) {dsftp://localhost:21000binary=3Dtrue&directory=3Dtarget%2Fres%2Fhome&filte= r=3D%23cpmdFileFilter&idempotent=3Dtrue&localWorkDirectory=3Dtarget%2Fres%2= Ftmp%2Flocal&move=3Darchive%2F%24%7Bfile%3Aname%7D&password=3Dadpt5&separat= or=3DUNIX&username=3Dadpt5%3A2=3Djava.lang.ref.SoftReference@f7e5307} *** So why does the key in the endpoints.map have "%3A2" appended to it? *= ** Thanks, Chris