I am currently trying to break my way around a caliper with several documents available in the google project wiki. After you have completed several tests, I would like to publish the results on the Internet so that I can read them a little more clearly than on the command line.
I followed the instructions on the wiki, went to microbenchmarks.appspot.com, and copied the API key into my ".caliperrc" file. As an additional note on this web page, I am informed that the file โ.caliperrcโ must be โon Windows: C: \. Caliperrcโ, but in fact, the caliper searches in% HOME% \. Caliperrc, which is on windows (at least for seven): c: \ users \% login% \. caliperrc.
At the same time, Caliper really tries to download the results ... but this fails with the message "Sending to http://microbenchmarks.appspot.com:80/run/ failed: Internal Server Error". When I modify the code of the Runner.run method so that it also prints a trace of the RuntimeException stack, it appears as shown below (% APIKey% in String for "APIKey" in my .caliperrc file):
java.lang.RuntimeException: Posting to http://microbenchmarks.appspot.com:80/run/ failed.
at com.google.caliper.Runner.postResults(Runner.java:206)
at com.google.caliper.Runner.run(Runner.java:96)
at com.google.caliper.Runner.main(Runner.java:405)
at com.google.caliper.Runner.main(Runner.java:417)
at collections.ArrayListBenchmark.main(ArrayListBenchmark.java:119)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://microbenchmarks.appspot.com:80/run/%APIKey%/collections.ArrayListBenchmark
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.google.caliper.Runner.postResults(Runner.java:200)
... 4 more
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://microbenchmarks.appspot.com:80/run/%APIKey%/collections.ArrayListBenchmark
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at com.google.caliper.Runner.postResults(Runner.java:188)
... 4 more
Have I really missed the step that should have been followed? If that matters, I am in windows of seven 64 bits running Caliper source code directly from svn using the following version of Java:
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
source
share