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 3D33A187AC for ; Tue, 5 Jan 2016 16:08:53 +0000 (UTC) Received: (qmail 12315 invoked by uid 500); 5 Jan 2016 16:08:52 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 12272 invoked by uid 500); 5 Jan 2016 16:08:52 -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 12260 invoked by uid 99); 5 Jan 2016 16:08:52 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2016 16:08:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EF07E18022F for ; Tue, 5 Jan 2016 16:08:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.098 X-Spam-Level: X-Spam-Status: No, score=-0.098 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id WN9sowPoPXMQ for ; Tue, 5 Jan 2016 16:08:37 +0000 (UTC) Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 4F7C442ADC for ; Tue, 5 Jan 2016 16:08:37 +0000 (UTC) Received: by mail-ig0-f169.google.com with SMTP id ph11so17717064igc.1 for ; Tue, 05 Jan 2016 08:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=HxZ5yDGlP3TE7shC6YDmDAL+k9m9Wzw3Ah9ivbDSvQc=; b=aW9ZC9yqTvj/wB/1tuvK1T49QkWwlXRkLKvci4RPnPeaCeq8BGLCiXcZxN801D20VB fzOwI3qqssvABES/9GlN0pwT+7qFK5kLdrMUQzq/Juy0LLX4oFAX0ae503shxBAuNLUT zPL8DSU5jeITnXGT53K4ywICK3QDskiKTNf8xw+33FVRiymhxkJyvzsEWtb2vGyFBOYn lsdibQT1xXqPW3X1xDJ0+OVVkBDRF7l3IXVeSEjKBB55RgS6njdmfhJAlwzStBNuVctL H4jzkEBYQikIApYYKosbx8V41UfLo8WmQgnuCRu0aRrNztBbWU8hfutHubsXXfdIho1w w+tg== X-Received: by 10.50.70.102 with SMTP id l6mr4409038igu.62.1452010116894; Tue, 05 Jan 2016 08:08:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.0.149 with HTTP; Tue, 5 Jan 2016 08:08:17 -0800 (PST) In-Reply-To: References: From: Claus Ibsen Date: Tue, 5 Jan 2016 17:08:17 +0100 Message-ID: Subject: Re: Camel Twitter WebSocket Blueprint example - cert issue in DDF 2.8.1 To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 You need to use your own twitter account, not the one from the source code, its only for fun and demo. See the box on this page http://camel.apache.org/twitter-websocket-example.html On Tue, Jan 5, 2016 at 4:55 PM, Mark wrote: > I was trying to deploy the camel-example-twitter-websocket-blueprint > example in DDF 2.8.1 (uses Karaf version 2.4.3) and I get the exception > shown below. I'm not sure if anyone has experienced this and may know how > to get this bundle working inside OSGi with the proper Twitter certificate > information. > > > 10:39:22,429 | INFO | 00 milliseconds] | twitter4j.CommonsLoggingLogger > 63 | ix.bundles.twitter4j | Establishing connection. > 10:39:22,495 | INFO | hing connection] | twitter4j.CommonsLoggingLogger > 63 | ix.bundles.twitter4j | > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target > 10:39:22,495 | INFO | hing connection] | twitter4j.CommonsLoggingLogger > 63 | ix.bundles.twitter4j | Waiting for 16000 milliseconds > 10:39:23,039 | WARN | twitter://search | org.apache.camel.util.CamelLogger > 224 | che.camel.camel-core | Consumer > Consumer[twitter://search?accessToken=] failed polling endpoint: > Endpoint[twitter://search?accessToken=]. Will try again at next > poll. Caused by: [twitter4j.TwitterException - > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target] > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target > Relevant discussions can be found on the Internet at: > http://www.google.co.jp/search?q=506c3b98 or > http://www.google.co.jp/search?q=105d1087 > TwitterException{exceptionCode=[506c3b98-105d1087 63e3f388-fb44fc20 > 63e3f388-fb44fc20 63e3f388-fb44fc20], statusCode=-1, message=null, code=-1, > retryAfter=-1, rateLimitStatus=null, version=4.0.2} > at > twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:178)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.HttpClientBase.request(HttpClientBase.java:53)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.HttpClientBase.get(HttpClientBase.java:71)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.TwitterImpl.get(TwitterImpl.java:1556)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.TwitterImpl.search(TwitterImpl.java:247)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > org.apache.camel.component.twitter.consumer.search.SearchConsumer.search(SearchConsumer.java:84)[407:org.apache.camel.camel-twitter:2.14.2] > at > org.apache.camel.component.twitter.consumer.search.SearchConsumer.pollConsume(SearchConsumer.java:52)[407:org.apache.camel.camel-twitter:2.14.2] > at > org.apache.camel.component.twitter.consumer.TwitterConsumerPolling.poll(TwitterConsumerPolling.java:65)[407:org.apache.camel.camel-twitter:2.14.2] > at > org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[186:org.apache.camel.camel-core:2.14.2] > at > org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[186:org.apache.camel.camel-core:2.14.2] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_51] > at > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_51] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_51] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_51] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_51] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_51] > at java.lang.Thread.run(Thread.java:745)[:1.8.0_51] > Caused by: javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid c > ertification path to requested target > at > sun.security.ssl.Alerts.getSSLException(Alerts.java:192)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)[:1.8.0_51] > at > sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)[:1.8.0_51] > at > sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)[:1.8.0_51] > at > sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1497)[:1.8.0_51] > at > sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:212)[:1.8.0_51] > at > sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)[:1.8.0_51] > at > sun.security.ssl.Handshaker.process_record(Handshaker.java:914)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)[:1.8.0_51] > at > sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)[:1.8.0_51] > at > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)[:1.8.0_51] > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512)[:1.8.0_51] > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)[:1.8.0_51] > at > java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)[:1.8.0_51] > at > sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)[:1.8.0_51] > at > twitter4j.HttpResponseImpl.(HttpResponseImpl.java:35)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:142)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > ... 16 more > Caused by: sun.security.validator.ValidatorException: PKIX path building > failed: sun.security.provider.certpath.SunCertPathBuilderException: unable > to find valid certification path to requested target > > at > sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)[:1.8.0_51] > at > sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)[:1.8.0_51] > at > sun.security.validator.Validator.validate(Validator.java:260)[:1.8.0_51] > at > sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)[:1.8.0_51] > at > sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)[:1.8.0_51] > at > sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)[:1.8.0_51] > at > sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1479)[:1.8.0_51] > ... 31 more > Caused by: sun.security.provider.certpath.SunCertPathBuilderException: > unable to find valid certification path to requested target > at > sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:145)[:1.8.0_51] > at > sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)[:1.8.0_51] > at > java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)[:1.8.0_51] > at > sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)[:1.8.0_51] > ... 37 more > 10:39:28,108 | WARN | twitter://search | org.apache.camel.util.CamelLogger > 224 | che.camel.camel-core | Consumer > Consumer[twitter://search?accessToken=] failed polling endpoint: > Endpoint[twitter://search?accessToken=]. Will try again at next > poll. Caused by: [twitter4j.TwitterException - > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target] > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target > Relevant discussions can be found on the Internet at: > http://www.google.co.jp/search?q=506c3b98 or > http://www.google.co.jp/search?q=105d1087 > TwitterException{exceptionCode=[506c3b98-105d1087 63e3f388-fb44fc20 > 63e3f388-fb44fc20 63e3f388-fb44fc20], statusCode=-1, message=null, code=-1, > retryAfter=-1, rateLimitStatus=null, version=4.0.2} > at > twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:178)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.HttpClientBase.request(HttpClientBase.java:53)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.HttpClientBase.get(HttpClientBase.java:71)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.TwitterImpl.get(TwitterImpl.java:1556)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.TwitterImpl.search(TwitterImpl.java:247)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > org.apache.camel.component.twitter.consumer.search.SearchConsumer.search(SearchConsumer.java:84)[407:org.apache.camel.camel-twitter:2.14.2] > at > org.apache.camel.component.twitter.consumer.search.SearchConsumer.pollConsume(SearchConsumer.java:52)[407:org.apache.camel.camel-twitter:2.14.2] > at > org.apache.camel.component.twitter.consumer.TwitterConsumerPolling.poll(TwitterConsumerPolling.java:65)[407:org.apache.camel.camel-twitter:2.14.2] > at > org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[186:org.apache.camel.camel-core:2.14.2] > at > org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[186:org.apache.camel.camel-core:2.14.2] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_51] > at > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_51] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_51] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_51] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_51] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_51] > at java.lang.Thread.run(Thread.java:745)[:1.8.0_51] > Caused by: javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target > at > sun.security.ssl.Alerts.getSSLException(Alerts.java:192)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)[:1.8.0_51] > at > sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)[:1.8.0_51] > at > sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)[:1.8.0_51] > at > sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1497)[:1.8.0_51] > at > sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:212)[:1.8.0_51] > at > sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)[:1.8.0_51] > at > sun.security.ssl.Handshaker.process_record(Handshaker.java:914)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)[:1.8.0_51] > at > sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)[:1.8.0_51] > at > sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)[:1.8.0_51] > at > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)[:1.8.0_51] > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512)[:1.8.0_51] > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)[:1.8.0_51] > at > java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)[:1.8.0_51] > at > sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)[:1.8.0_51] > at > twitter4j.HttpResponseImpl.(HttpResponseImpl.java:35)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > at > twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:142)[406:org.apache.servicemix.bundles.twitter4j:4.0.2.1] > ... 16 more > Caused by: sun.security.validator.ValidatorException: PKIX path building > failed: sun.security.provider.certpath.SunCertPathBuilderException: unable > to find valid certification path to requested target > > at > sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)[:1.8.0_51] > at > sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)[:1.8.0_51] > at > sun.security.validator.Validator.validate(Validator.java:260)[:1.8.0_51] > at > sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)[:1.8.0_51] > at > sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)[:1.8.0_51] > at > sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)[:1.8.0_51] > at > sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1479)[:1.8.0_51] > ... 31 more > Caused by: sun.security.provider.certpath.SunCertPathBuilderException: > unable to find valid certification path to requested target > at > sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:145)[:1.8.0_51] > at > sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)[:1.8.0_51] > at > java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)[:1.8.0_51] > at > sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)[:1.8.0_51] > ... 37 more -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2