jclouds newbie- getting error when i try to upload a file to Rackspace cloudfiles

79 views
Skip to first unread message

Arvind

unread,
Dec 17, 2012, 3:07:58 PM12/17/12
to jcl...@googlegroups.com
Hello

I am trying to upload an XML file to Cloudfiles (US) using jclouds.

The code seems to be all right, however this is the error I am getting--

main CloudFileProcessor starts processing... 2012-12-18 01:19:04,381 ERROR (  Ba
seProcessor.java:134) -  Processor= CloudFileProcessor and Error stack trace=org
.jclouds.http.HttpResponseException: request: HEAD https://storage101.ord1.cloud
/1.1 failed with response: HTTP/1.1 400 Bad Request
        at org.jclouds.openstack.swift.handlers.ParseSwiftErrorFromHttpResponse.
handleError(ParseSwiftErrorFromHttpResponse.java:53)
        at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(Delegati
ngErrorHandler.java:69)
        at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponse
Callable.shouldContinue(BaseHttpCommandExecutorService.java:191)
        at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponse
Callable.call(BaseHttpCommandExecutorService.java:161)
        at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponse
Callable.call(BaseHttpCommandExecutorService.java:130)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at org.jclouds.concurrent.config.ExecutorServiceModule$DescribingExecuto
rService.submit(ExecutorServiceModule.java:184)
        at org.jclouds.http.internal.BaseHttpCommandExecutorService.submit(BaseH
ttpCommandExecutorService.java:127)
        at org.jclouds.http.TransformingHttpCommandExecutorServiceImpl.submit(Tr
ansformingHttpCommandExecutorServiceImpl.java:54)
        at org.jclouds.http.TransformingHttpCommandImpl.execute(TransformingHttp
CommandImpl.java:73)
        at org.jclouds.rest.internal.AsyncRestClientProxy.createListenableFuture
ForHttpRequestMappedToMethodAndArgs(AsyncRestClientProxy.java:198)
        at org.jclouds.rest.internal.AsyncRestClientProxy.invoke(AsyncRestClient
Proxy.java:134)
        at $Proxy73.containerExists(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jclouds.concurrent.internal.SyncProxy.invoke(SyncProxy.java:137)
        at $Proxy74.containerExists(Unknown Source)
        at org.jclouds.openstack.swift.blobstore.SwiftBlobStore.containerExists(
SwiftBlobStore.java:115)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.inject.internal.DelegatingInvocationHandler.invoke(Delegat
ingInvocationHandler.java:37)
        at $Proxy64.containerExists(Unknown Source)
        at org.webharvest.runtime.processors.CloudFileProcessor.createContainerI
fNeeded(CloudFileProcessor.java:98)
--some more classes from my code---

What am I doing wrong here?

Thanks,
Arvind.



Everett Toews

unread,
Dec 17, 2012, 6:43:06 PM12/17/12
to jcl...@googlegroups.com, Arvind
Hi Arvind,

You're not doing anything wrong. There was a change in Cloud Files causing this. I've updated jclouds to handle it and the fix will be released in 1.5.5, which should be before the end of this year.

In the meantime, if you need a fix before then or you just want to test it out, you can try a snapshot (nightly) build. See section "Using the jclouds Snapshot Builds" of


HTH,
Everett

--
You received this message because you are subscribed to the Google Groups "jclouds" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jclouds/-/6qqk1O4fDaAJ.
To post to this group, send email to jcl...@googlegroups.com.
To unsubscribe from this group, send email to jclouds+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jclouds?hl=en.

Chris Strand

unread,
Dec 21, 2012, 5:22:45 AM12/21/12
to jcl...@googlegroups.com
Hi Everett,

Thanks for updating jclouds to fix this, I ran into the same problem and updating to 1.5.5-SNAPSHOT fixed it right away. Out of curiosity - what caused the problem?

A more general question: What is the best way of keeping up to date with potential issues to Rackspace Cloud? The Rackstatus Twitter isn't used any more - is https://status.rackspace.com/ the only way?

All the best,

Chris

Everett Toews

unread,
Dec 21, 2012, 5:56:20 PM12/21/12
to jcl...@googlegroups.com
Hi Chris,

Actually it appears the problem wasn't in Cloud Files. There seems to be something up in the jclouds BaseHttpCommandExecutorService and its implementation JavaUrlHttpCommandExecutorService.


A similar issue was discovered a while ago.


However, I'm not sure why this started causing problems with Cloud Files only recently.

This sort of issue wouldn't have surfaced at status.rackspace.com. If it had been an API issue, you could have been notified about it by subscribing to the API release notes. I went a bit overboard and wrote a whole post about it here.


Regards,
Everett

Dmitry Buzdin

unread,
Jan 3, 2013, 3:32:28 AM1/3/13
to jcl...@googlegroups.com
Hi,

When do you plan to release 1.5.5 with Rackspace fix? 

Thanks,
Dmitry

суббота, 22 декабря 2012 г., 0:56:20 UTC+2 пользователь Everett Toews написал:

Adrian Cole

unread,
Jan 3, 2013, 9:24:37 AM1/3/13
to jcl...@googlegroups.com

We can do 1.5.5 this weekend alongside a preview release of 1.6.0

-A

To view this discussion on the web visit https://groups.google.com/d/msg/jclouds/-/JEo74heJA48J.

Dmitry Buzdin

unread,
Jan 7, 2013, 3:06:03 AM1/7/13
to jcl...@googlegroups.com
Yes, would be great ;)

Waiting for 1.5.5 and monitoring Maven repo for updates.

Dmitry

четверг, 3 января 2013 г., 16:24:37 UTC+2 пользователь Adrian Cole написал:

Adrian Cole

unread,
Jan 7, 2013, 3:41:23 AM1/7/13
to jcl...@googlegroups.com

It hasn't been cut, yet.  We are cutting early draft of 1.6 at the same time, and this is dependent on guava 14-rc2 planned for Monday.  Should get a release of that and 1.5.5 by mid-week.

-A

To view this discussion on the web visit https://groups.google.com/d/msg/jclouds/-/IAspU_IKtT0J.

Adrian Cole

unread,
Jan 13, 2013, 11:43:00 PM1/13/13
to jcl...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages