camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-2518) Test failures in camel-jetty SpringHttpsRouteTest and HttpRouteUsingUrlPostTest
Date Fri, 05 Mar 2010 23:09:44 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-2518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58067#action_58067
] 

Christian Schneider commented on CAMEL-2518:
--------------------------------------------

Currently only the SpringHttpsRouteTest is failing. Interestingly it only fails 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 command 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=never test

The problem is though that I donĀ“t 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.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target

I also checked the system property:
System.getProperty("javax.net.ssl.trustStore")
	 (java.lang.String) /C:/java/camel/components/camel-jetty/target/test-classes/jsse/localhost.ks

Stacktrace:
Thread [main] (Suspended (exception SSLHandshakeException))	
	SSLSocketImpl.fatal(byte, String, Throwable) line: 1627	
	ClientHandshaker(Handshaker).fatalSE(byte, String, Throwable) line: 187	
	ClientHandshaker(Handshaker).fatalSE(byte, Throwable) line: 181	
	ClientHandshaker.serverCertificate(HandshakeMessage$CertificateMsg) line: 1035	
	ClientHandshaker.processMessage(byte, int) line: 124	
	ClientHandshaker(Handshaker).processLoop() line: 516	
	ClientHandshaker(Handshaker).process_record(InputRecord, boolean) line: 454	
	SSLSocketImpl.readRecord(InputRecord, boolean) line: 884	
	SSLSocketImpl.performInitialHandshake() line: 1112	
	SSLSocketImpl.startHandshake(boolean) line: 1139	
	SSLSocketImpl.getSession() line: 1878	
	BrowserCompatHostnameVerifier(AbstractVerifier).verify(String, SSLSocket) line: 91	
	SSLSocketFactory.connectSocket(Socket, String, int, InetAddress, int, HttpParams) line: 339

	DefaultClientConnectionOperator.openConnection(OperatedClientConnection, HttpHost, InetAddress,
HttpContext, HttpParams) line: 123	
	BasicPoolEntry(AbstractPoolEntry).open(HttpRoute, HttpContext, HttpParams) line: 147	
	BasicPooledConnAdapter(AbstractPooledConnAdapter).open(HttpRoute, HttpContext, HttpParams)
line: 108	
	DefaultRequestDirector.execute(HttpHost, HttpRequest, HttpContext) line: 415	
	DefaultHttpClient(AbstractHttpClient).execute(HttpHost, HttpRequest, HttpContext) line: 641

	DefaultHttpClient(AbstractHttpClient).execute(HttpUriRequest, HttpContext) line: 576	
	DefaultHttpClient(AbstractHttpClient).execute(HttpUriRequest) line: 554	
	HttpProducer.executeMethod(HttpUriRequest) line: 161	
	HttpProducer.process(Exchange) line: 83	
	ProducerCache$1.doInProducer(Producer, Exchange, ExchangePattern) line: 214	
	ProducerCache$1.doInProducer(Producer, Exchange, ExchangePattern) line: 193	
	ProducerCache.doInProducer(Endpoint, Exchange, ExchangePattern, ProducerCallback<T>)
line: 173	
	ProducerCache.sendExchange(Endpoint, ExchangePattern, Processor, Exchange) line: 192	
	ProducerCache.send(Endpoint, Processor) line: 118	
	DefaultProducerTemplate.send(Endpoint, Processor) line: 97	
	DefaultProducerTemplate.sendBodyAndHeader(Endpoint, Object, String, Object) line: 136	
	DefaultProducerTemplate.sendBodyAndHeader(String, Object, String, Object) line: 132	
	SpringHttpsRouteTest.testEndpoint() line: 90	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]

	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25	
	Method.invoke(Object, Object...) line: 597	
	SpringTestMethod.invoke(Object) line: 160	
	SpringMethodRoadie.runTestMethod() line: 233	
	SpringMethodRoadie$RunBeforesThenTestThenAfters.run() line: 333	
	SpringMethodRoadie.runWithRepetitions(Runnable) line: 217	
	SpringMethodRoadie.runTest() line: 197	
	SpringMethodRoadie.run() line: 143	
	SpringJUnit4ClassRunner.invokeTestMethod(Method, RunNotifier) line: 160	
	SpringJUnit4ClassRunner(JUnit4ClassRunner).runMethods(RunNotifier) line: 51	
	JUnit4ClassRunner$1.run() line: 44	
	ClassRoadie.runUnprotected() line: 27	
	ClassRoadie.runProtected() line: 37	
	SpringJUnit4ClassRunner(JUnit4ClassRunner).run(RunNotifier) line: 42	
	SpringJUnit4ClassRunner.run(RunNotifier) line: 97	
	JUnit4TestSet.execute(ReporterManager, ClassLoader) line: 62	
	JUnit4DirectoryTestSuite(AbstractDirectoryTestSuite).executeTestSet(SurefireTestSet, ReporterManager,
ClassLoader) line: 140	
	JUnit4DirectoryTestSuite(AbstractDirectoryTestSuite).execute(ReporterManager, ClassLoader)
line: 127	
	Surefire.run(List, List, ClassLoader, ClassLoader, Boolean) line: 177	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]

	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25	
	Method.invoke(Object, Object...) line: 597	
	SurefireBooter.runSuitesInProcess() line: 345	
	SurefireBooter.run() line: 241	
	SurefirePlugin.execute() line: 537	
	DefaultPluginManager.executeMojo(MavenProject, MojoExecution, MavenSession) line: 490	
	DefaultLifecycleExecutor.executeGoals(List, Stack, MavenSession, MavenProject) line: 694

	DefaultLifecycleExecutor.executeGoalWithLifecycle(String, Stack, MavenSession, Map, MavenProject,
Lifecycle) line: 556	
	DefaultLifecycleExecutor.executeGoal(String, MavenSession, MavenProject) line: 535	
	DefaultLifecycleExecutor.executeGoalAndHandleFailures(String, MavenSession, MavenProject,
EventDispatcher, String, ReactorManager, long, String) line: 387	
	DefaultLifecycleExecutor.executeTaskSegments(List, ReactorManager, MavenSession, MavenProject,
EventDispatcher) line: 348	
	DefaultLifecycleExecutor.execute(MavenSession, ReactorManager, EventDispatcher) line: 180

	DefaultMaven.doExecute(MavenExecutionRequest, EventDispatcher) line: 328	
	DefaultMaven.execute(MavenExecutionRequest) line: 138	
	MavenCli.main(String[], ClassWorld) line: 362	
	CompatibleMain.main(String[], ClassWorld) line: 60	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]

	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25	
	Method.invoke(Object, Object...) line: 597	
	Launcher.launchEnhanced(String[]) line: 315	
	Launcher.launch(String[]) line: 255	
	Launcher.mainWithExitCode(String[]) line: 430	
	Launcher.main(String[]) line: 375	




> Test failures in camel-jetty SpringHttpsRouteTest and HttpRouteUsingUrlPostTest
> -------------------------------------------------------------------------------
>
>                 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 
> javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
> 	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
> 	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1682)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:932)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
> 	at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:675)
> 	at 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 
> javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
> 	at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
> 	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139)
> 	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
> 	at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:675)
> 	at 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:9080
> 2010-03-03 08:31:28.029:INFO::jetty-6.1.22
> 2010-03-03 08:31:28.032:INFO::Started SelectChannelConnector@localhost:9080
> 2010-03-03 08:31:28.637:INFO::jetty-6.1.22
> 2010-03-03 08:31:28.639:INFO::Started SelectChannelConnector@localhost:9080
> 2010-03-03 08:31:29.210:INFO::jetty-6.1.22
> 2010-03-03 08:31:29.213:INFO::Started SelectChannelConnector@localhost:9080
> 2010-03-03 08:31:29.773:INFO::jetty-6.1.22
> 2010-03-03 08:31:29.777:INFO::Started SelectChannelConnector@localhost:9080
> 2010-03-03 08:31:30.465:INFO::jetty-6.1.22
> 2010-03-03 08:31:30.467:INFO::Started SelectChannelConnector@localhost:9080
> 2010-03-03 08:31:31.154:INFO::jetty-6.1.22
> 2010-03-03 08:31:31.156:INFO::Started SelectChannelConnector@localhost:9080
> Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.648 sec <<<
FAILURE!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message