← Back to team overview

openstack team mailing list archive

Re: Fwd: Question about cloudfiles API

 

On 5/29/2012 5:51 PM, Luis Gervaso wrote:
Good point,

I'll prepare a benchmark

Until RC3 you can build from source (2 steps)

I installed maven ... that required a huge number of dependencies. I was able to get the source for the openstack java sdk compiled using the openjdk on ubuntu. Taking that jarfile to my test client (sun java6 on centos 6), working my way through dependencies, I could not get it to actually work, so I must be doing something wrong. A sniffer trace at the proxy server shows nothing at all, and below is what it spits out, slightly redacted. What other information do you need?

May 30, 2012 10:57:49 AM org.glassfish.jersey.filter.LoggingFilter log
INFO: 1 * LoggingFilter - Request received on thread main
1 > POST http:/testb.REDACTED.com:8080/auth/v1.0/tokens
1 > Accept: application/json
1 > Content-Type: application/json
{"auth":{"passwordCredentials":{"username":"system:root","password":"testpass"},"credentials":{"username":"system:root","password":"testpass"}}}

InvocationException{message=null, response=null}
at org.glassfish.jersey.client.JerseyClient$1.failure(JerseyClient.java:251) at org.glassfish.jersey.process.internal.ResponseProcessor.notifyCallback(ResponseProcessor.java:334) at org.glassfish.jersey.process.internal.ResponseProcessor.setResult(ResponseProcessor.java:321) at org.glassfish.jersey.process.internal.ResponseProcessor.access$400(ResponseProcessor.java:86) at org.glassfish.jersey.process.internal.ResponseProcessor$1.run(ResponseProcessor.java:225) at org.glassfish.jersey.process.internal.ResponseProcessor.runInScope(ResponseProcessor.java:262) at org.glassfish.jersey.process.internal.ResponseProcessor.run(ResponseProcessor.java:198) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:105) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:155) at org.glassfish.jersey.process.internal.RequestInvoker$2.runInScope(RequestInvoker.java:215) at org.glassfish.jersey.process.internal.RequestInvoker$2.run(RequestInvoker.java:188) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:44) at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:41) at org.glassfish.jersey.process.internal.RequestInvoker.apply(RequestInvoker.java:221) at org.glassfish.jersey.client.JerseyClient.submit(JerseyClient.java:240) at org.glassfish.jersey.client.JerseyInvocation.submit(JerseyInvocation.java:589) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:544) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:335) at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:248) at org.openstack.api.identity.resources.TokensResource.post(TokensResource.java:21) at org.openstack.client.OpenStackClient.authenticate(OpenStackClient.java:76)
        at com.REDACTED.swiftest.Main.main(Main.java:58)
Caused by: java.lang.NullPointerException
        at sun.net.www.ParseUtil.toURI(ParseUtil.java:261)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:787) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:896) at org.glassfish.jersey.client.HttpUrlConnector$1$1.getOutputStream(HttpUrlConnector.java:140) at org.glassfish.jersey.internal.util.CommittingOutputStream.commitWrite(CommittingOutputStream.java:150) at org.glassfish.jersey.internal.util.CommittingOutputStream.write(CommittingOutputStream.java:120)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
        at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
        at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
        at java.io.BufferedWriter.flush(BufferedWriter.java:236)
at org.glassfish.jersey.message.internal.ReaderWriter.writeToAsString(ReaderWriter.java:189) at org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:129) at org.glassfish.jersey.message.internal.StringMessageProvider.writeTo(StringMessageProvider.java:90) at org.glassfish.jersey.message.internal.StringMessageProvider.writeTo(StringMessageProvider.java:56) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:216) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:153) at org.glassfish.jersey.message.internal.ExceptionWrapperInterceptor.aroundWriteTo(ExceptionWrapperInterceptor.java:77) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:153) at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:626) at org.glassfish.jersey.client.RequestWriter.writeRequestEntity(RequestWriter.java:262) at org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:115) at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:80) at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:66) at org.glassfish.jersey.process.internal.RequestInvoker$AcceptingInvoker$2.apply(RequestInvoker.java:277) at org.glassfish.jersey.process.internal.RequestInvoker$AcceptingInvoker$2.apply(RequestInvoker.java:273) at org.glassfish.jersey.process.internal.FilteringInflector.apply(FilteringInflector.java:111) at org.glassfish.jersey.process.internal.RequestInvoker$AcceptingInvoker.apply(RequestInvoker.java:291) at org.glassfish.jersey.process.internal.RequestInvoker$AcceptingInvoker.apply(RequestInvoker.java:237) at org.glassfish.jersey.process.internal.AsyncInflectorAdapter.apply(AsyncInflectorAdapter.java:121) at org.glassfish.jersey.process.internal.RequestInvoker$2.runInScope(RequestInvoker.java:213)
        ... 16 more



References