Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 858 invoked from network); 5 Mar 2010 23:10:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Mar 2010 23:10:22 -0000 Received: (qmail 90748 invoked by uid 500); 5 Mar 2010 23:10:07 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 90723 invoked by uid 500); 5 Mar 2010 23:10:07 -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 90715 invoked by uid 500); 5 Mar 2010 23:10:07 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 90712 invoked by uid 99); 5 Mar 2010 23:10:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 23:10:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 23:10:05 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D1029234C4CE for ; Fri, 5 Mar 2010 23:09:44 +0000 (UTC) Message-ID: <949649443.7171267830584850.JavaMail.jira@brutus.apache.org> Date: Fri, 5 Mar 2010 23:09:44 +0000 (UTC) From: "Christian Schneider (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-2518) Test failures in camel-jetty SpringHttpsRouteTest and HttpRouteUsingUrlPostTest In-Reply-To: <824192774.3671267601865384.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-2518?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 58067#action_58067 ]=20 Christian Schneider commented on CAMEL-2518: -------------------------------------------- Currently only the SpringHttpsRouteTest is failing. Interestingly it only f= ails when run from maven together with the other tests. When I run the tests from Eclipse all is well. When I run maven with the co= mmand to run only this single test is also does not fail. At least I now managed to attach a the eclipse debugger and am able to see = the error in eclipse by using: mvnDebug -DforkMode=3Dnever test The problem is though that I don=C2=B4t have the sources for the code where= the error happens (inside some sun ssl class). I have pasted the full stack trace below. The message is: sun.security.validator.ValidatorException: PKIX path building failed: sun.s= ecurity.provider.certpath.SunCertPathBuilderException: unable to find valid= certification path to requested target I also checked the system property: System.getProperty("javax.net.ssl.trustStore") =09 (java.lang.String) /C:/java/camel/components/camel-jetty/target/test-cl= asses/jsse/localhost.ks Stacktrace: Thread [main] (Suspended (exception SSLHandshakeException))=09 =09SSLSocketImpl.fatal(byte, String, Throwable) line: 1627=09 =09ClientHandshaker(Handshaker).fatalSE(byte, String, Throwable) line: 187= =09 =09ClientHandshaker(Handshaker).fatalSE(byte, Throwable) line: 181=09 =09ClientHandshaker.serverCertificate(HandshakeMessage$CertificateMsg) line= : 1035=09 =09ClientHandshaker.processMessage(byte, int) line: 124=09 =09ClientHandshaker(Handshaker).processLoop() line: 516=09 =09ClientHandshaker(Handshaker).process_record(InputRecord, boolean) line: = 454=09 =09SSLSocketImpl.readRecord(InputRecord, boolean) line: 884=09 =09SSLSocketImpl.performInitialHandshake() line: 1112=09 =09SSLSocketImpl.startHandshake(boolean) line: 1139=09 =09SSLSocketImpl.getSession() line: 1878=09 =09BrowserCompatHostnameVerifier(AbstractVerifier).verify(String, SSLSocket= ) line: 91=09 =09SSLSocketFactory.connectSocket(Socket, String, int, InetAddress, int, Ht= tpParams) line: 339=09 =09DefaultClientConnectionOperator.openConnection(OperatedClientConnection,= HttpHost, InetAddress, HttpContext, HttpParams) line: 123=09 =09BasicPoolEntry(AbstractPoolEntry).open(HttpRoute, HttpContext, HttpParam= s) line: 147=09 =09BasicPooledConnAdapter(AbstractPooledConnAdapter).open(HttpRoute, HttpCo= ntext, HttpParams) line: 108=09 =09DefaultRequestDirector.execute(HttpHost, HttpRequest, HttpContext) line:= 415=09 =09DefaultHttpClient(AbstractHttpClient).execute(HttpHost, HttpRequest, Htt= pContext) line: 641=09 =09DefaultHttpClient(AbstractHttpClient).execute(HttpUriRequest, HttpContex= t) line: 576=09 =09DefaultHttpClient(AbstractHttpClient).execute(HttpUriRequest) line: 554= =09 =09HttpProducer.executeMethod(HttpUriRequest) line: 161=09 =09HttpProducer.process(Exchange) line: 83=09 =09ProducerCache$1.doInProducer(Producer, Exchange, ExchangePattern) line: = 214=09 =09ProducerCache$1.doInProducer(Producer, Exchange, ExchangePattern) line: = 193=09 =09ProducerCache.doInProducer(Endpoint, Exchange, ExchangePattern, Producer= Callback) line: 173=09 =09ProducerCache.sendExchange(Endpoint, ExchangePattern, Processor, Exchang= e) line: 192=09 =09ProducerCache.send(Endpoint, Processor) line: 118=09 =09DefaultProducerTemplate.send(Endpoint, Processor) line: 97=09 =09DefaultProducerTemplate.sendBodyAndHeader(Endpoint, Object, String, Obje= ct) line: 136=09 =09DefaultProducerTemplate.sendBodyAndHeader(String, Object, String, Object= ) line: 132=09 =09SpringHttpsRouteTest.testEndpoint() line: 90=09 =09NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not ava= ilable [native method]=09 =09NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39=09 =09DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25=09 =09Method.invoke(Object, Object...) line: 597=09 =09SpringTestMethod.invoke(Object) line: 160=09 =09SpringMethodRoadie.runTestMethod() line: 233=09 =09SpringMethodRoadie$RunBeforesThenTestThenAfters.run() line: 333=09 =09SpringMethodRoadie.runWithRepetitions(Runnable) line: 217=09 =09SpringMethodRoadie.runTest() line: 197=09 =09SpringMethodRoadie.run() line: 143=09 =09SpringJUnit4ClassRunner.invokeTestMethod(Method, RunNotifier) line: 160= =09 =09SpringJUnit4ClassRunner(JUnit4ClassRunner).runMethods(RunNotifier) line:= 51=09 =09JUnit4ClassRunner$1.run() line: 44=09 =09ClassRoadie.runUnprotected() line: 27=09 =09ClassRoadie.runProtected() line: 37=09 =09SpringJUnit4ClassRunner(JUnit4ClassRunner).run(RunNotifier) line: 42=09 =09SpringJUnit4ClassRunner.run(RunNotifier) line: 97=09 =09JUnit4TestSet.execute(ReporterManager, ClassLoader) line: 62=09 =09JUnit4DirectoryTestSuite(AbstractDirectoryTestSuite).executeTestSet(Sure= fireTestSet, ReporterManager, ClassLoader) line: 140=09 =09JUnit4DirectoryTestSuite(AbstractDirectoryTestSuite).execute(ReporterMan= ager, ClassLoader) line: 127=09 =09Surefire.run(List, List, ClassLoader, ClassLoader, Boolean) line: 177=09 =09NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not ava= ilable [native method]=09 =09NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39=09 =09DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25=09 =09Method.invoke(Object, Object...) line: 597=09 =09SurefireBooter.runSuitesInProcess() line: 345=09 =09SurefireBooter.run() line: 241=09 =09SurefirePlugin.execute() line: 537=09 =09DefaultPluginManager.executeMojo(MavenProject, MojoExecution, MavenSessi= on) line: 490=09 =09DefaultLifecycleExecutor.executeGoals(List, Stack, MavenSession, MavenPr= oject) line: 694=09 =09DefaultLifecycleExecutor.executeGoalWithLifecycle(String, Stack, MavenSe= ssion, Map, MavenProject, Lifecycle) line: 556=09 =09DefaultLifecycleExecutor.executeGoal(String, MavenSession, MavenProject)= line: 535=09 =09DefaultLifecycleExecutor.executeGoalAndHandleFailures(String, MavenSessi= on, MavenProject, EventDispatcher, String, ReactorManager, long, String) li= ne: 387=09 =09DefaultLifecycleExecutor.executeTaskSegments(List, ReactorManager, Maven= Session, MavenProject, EventDispatcher) line: 348=09 =09DefaultLifecycleExecutor.execute(MavenSession, ReactorManager, EventDisp= atcher) line: 180=09 =09DefaultMaven.doExecute(MavenExecutionRequest, EventDispatcher) line: 328= =09 =09DefaultMaven.execute(MavenExecutionRequest) line: 138=09 =09MavenCli.main(String[], ClassWorld) line: 362=09 =09CompatibleMain.main(String[], ClassWorld) line: 60=09 =09NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not ava= ilable [native method]=09 =09NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39=09 =09DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25=09 =09Method.invoke(Object, Object...) line: 597=09 =09Launcher.launchEnhanced(String[]) line: 315=09 =09Launcher.launch(String[]) line: 255=09 =09Launcher.mainWithExitCode(String[]) line: 430=09 =09Launcher.main(String[]) line: 375=09 > Test failures in camel-jetty SpringHttpsRouteTest and HttpRouteUsingUrlPo= stTest > -------------------------------------------------------------------------= ------ > > Key: CAMEL-2518 > URL: https://issues.apache.org/activemq/browse/CAMEL-2518 > Project: Apache Camel > Issue Type: Test > Components: camel-jetty > Affects Versions: 2.2.0 > Environment: Windows Vista JDK 1.6 Upadte 14 > Reporter: Christian Schneider > Fix For: 2.3.0 > > Attachments: surefire-report.html > > > The test results are added as an attachment > Running org.apache.camel.component.jetty.SpringHttpsRouteTest > 2010-03-03 08:30:48.092:INFO::jetty-6.1.22 > 2010-03-03 08:30:48.100:INFO::Started SslSocketConnector@localhost:9080 > 2010-03-03 08:30:48.183:WARN::EXCEPTION=20 > javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_un= known > =09at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174= ) > =09at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136= ) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.= java:1682) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl= .java:932) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(= SSLSocketImpl.java:1112) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocket= Impl.java:1139) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocket= Impl.java:1123) > =09at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(Ssl= SocketConnector.java:675) > =09at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool= .java:582) > 2010-03-03 08:30:49.404:INFO::jetty-6.1.22 > 2010-03-03 08:30:49.411:INFO::Started SslSocketConnector@localhost:9080 > 2010-03-03 08:30:49.438:WARN::EXCEPTION=20 > javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connectio= n? > =09at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputR= ecord.java:523) > =09at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl= .java:789) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(= SSLSocketImpl.java:1112) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocket= Impl.java:1139) > =09at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocket= Impl.java:1123) > =09at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(Ssl= SocketConnector.java:675) > =09at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool= .java:582) > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.556 sec= <<< FAILURE! > Running org.apache.camel.component.jetty.HttpRouteUsingUrlPostTest > 2010-03-03 08:31:27.291:INFO::jetty-6.1.22 > 2010-03-03 08:31:27.294:INFO::Started SelectChannelConnector@localhost:90= 80 > 2010-03-03 08:31:28.029:INFO::jetty-6.1.22 > 2010-03-03 08:31:28.032:INFO::Started SelectChannelConnector@localhost:90= 80 > 2010-03-03 08:31:28.637:INFO::jetty-6.1.22 > 2010-03-03 08:31:28.639:INFO::Started SelectChannelConnector@localhost:90= 80 > 2010-03-03 08:31:29.210:INFO::jetty-6.1.22 > 2010-03-03 08:31:29.213:INFO::Started SelectChannelConnector@localhost:90= 80 > 2010-03-03 08:31:29.773:INFO::jetty-6.1.22 > 2010-03-03 08:31:29.777:INFO::Started SelectChannelConnector@localhost:90= 80 > 2010-03-03 08:31:30.465:INFO::jetty-6.1.22 > 2010-03-03 08:31:30.467:INFO::Started SelectChannelConnector@localhost:90= 80 > 2010-03-03 08:31:31.154:INFO::jetty-6.1.22 > 2010-03-03 08:31:31.156:INFO::Started SelectChannelConnector@localhost:90= 80 > Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.648 sec= <<< FAILURE! --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.