umakanta75 / caliper

Automatically exported from code.google.com/p/caliper
Apache License 2.0
0 stars 0 forks source link

Cannot upload results to web app due to certificate problems and SLL exceptions thrown. #279

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Close the repo and build it (done November 16, 2013)
2. Follow the video tutorial to develop and benchmark
3. Goto the web app (https://microbenchmarks.appspot.com/) and login and get a 
key and add to config files
4. Run the benchmark

What is the expected output? 
Runs should show up in my /runs path at the web app

What do you see instead?
All works fine in running benchmarks.
But no results are uploaded to web app. 
Suggests I try and upload results 

What version of the product are you using?
Head, built locally on November 16.
Also tried beta-1.

On what operating system?
Mac OS X 10.9 Mavericks

Please provide any additional information below.
If I can attach the log file I will
Log shows a problem with certificates and SSL upload to the webapp:

SEVERE: Could not upload trial b233811a-9ac6-4684-83f8-30e8a3d74e01. Consider 
uploading it manually.
com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: 
java.lang.RuntimeException: Unexpected error: java.secu
rity.InvalidAlgorithmParameterException: the trustAnchors parameter must be 
non-empty
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.voidHandle(WebResource.java:694)
        at com.sun.jersey.api.client.WebResource.access$400(WebResource.java:74)
        at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:548)
        at com.google.caliper.runner.ResultsUploader.processTrial(ResultsUploader.java:104)
        at com.google.caliper.runner.ExperimentingCaliperRun.run(ExperimentingCaliperRun.java:231)
        at com.google.caliper.runner.CaliperMain.exitlessMain(CaliperMain.java:135)
        at com.google.caliper.runner.CaliperMain.main(CaliperMain.java:78)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
        at java.lang.Thread.run(Thread.java:680)
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected 
error: java.security.InvalidAlgorithmParameterException
: the trustAnchors parameter must be non-empty
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1699)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1660)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1643)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1172)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler$1$1.getOutputStream(URLConnectionClientHandler.java:225)
        at com.sun.jersey.api.client.CommittingOutputStream.commitWrite(CommittingOutputStream.java:117)
        at com.sun.jersey.api.client.CommittingOutputStream.write(CommittingOutputStream.java:89)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
        at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:263)
        at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
        at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
        at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
        at java.io.BufferedWriter.write(BufferedWriter.java:212)
        at java.io.Writer.write(Writer.java:140)
        at com.sun.jersey.core.util.ReaderWriter.writeToAsString(ReaderWriter.java:190)
        at com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:
128)
        at com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:88)

Original issue reported on code.google.com by andrew@mackenzie-serres.net on 16 Nov 2013 at 1:31

Attachments: