rackspace/java-cloudfiles — Issue #20: Login fails
Author: zvozin
Created: 2011-10-09 23:01:28+00:00
State: open

(new FilesClient("valid-username", "valid-api-key", "https://auth.api.rackspacecloud.com/v1.0", null, 500).login() result in:

DEBUG ThreadSafeClientConnManager - Get connection: HttpRoute[{s}->https://auth.api.rackspacecloud.com], timeout = 0
DEBUG ConnPoolByRoute - [HttpRoute[{s}->https://auth.api.rackspacecloud.com]] total kept alive: 0, total issued: 0, total allocated: 0 out of 20
DEBUG ConnPoolByRoute - No free connections [HttpRoute[{s}->https://auth.api.rackspacecloud.com]][null]
DEBUG ConnPoolByRoute - Available capacity: 2 out of 2 [HttpRoute[{s}->https://auth.api.rackspacecloud.com]][null]
DEBUG ConnPoolByRoute - Creating new connection [HttpRoute[{s}->https://auth.api.rackspacecloud.com]]
DEBUG DefaultClientConnectionOperator - Connecting to auth.api.rackspacecloud.com:443
DEBUG DefaultClientConnection - Connection closed
DEBUG DefaultClientConnection - Connection shut down
DEBUG ThreadSafeClientConnManager - Released connection is not reusable.
DEBUG ConnPoolByRoute - Releasing connection [HttpRoute[{s}->https://auth.api.rackspacecloud.com]][null]
DEBUG ConnPoolByRoute - Notifying no-one, there are no waiting threads
javax.net.ssl.SSLException: hostname in certificate didn't match: !=
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:228)
at org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:149)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:130)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:495)
at org.apache.http.conn.scheme.SchemeSocketFactoryAdaptor.connectSocket(SchemeSocketFactoryAdaptor.java:62)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
at com.rackspacecloud.client.cloudfiles.FilesClient.login(FilesClient.java:279)
at .(:13)
at .()
at .(:11)
at .()
at $export()
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 scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:592)
at scala.tools.nsc.interpreter.IMain$Request$$anonfun$10.apply(IMain.scala:828)
at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)
at scala.tools.nsc.io.package$$anon$2.run(package.scala:31)
at java.lang.Thread.run(Thread.java:680)