- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我有一个需要将文件上传到 Rackspace Cloud Files 的 Spring MVC 4.0.1 Web 应用程序。我正在使用 Apache jClouds 来执行此操作。尝试使用以下代码创建 BlobStore 时:
BlobStoreContext context = ContextBuilder.newBuilder("cloudfiles-us").credentials("username","password").buildView(BlobStoreContext.class);
我得到以下异常:
com.google.inject.CreationException: Guice creation errors:
1) No implementation for com.google.common.base.Supplier<java.lang.String> annotated with @org.jclouds.openstack.swift.TemporaryUrlKey() was bound.
while locating com.google.common.base.Supplier<java.lang.String> annotated with @org.jclouds.openstack.swift.TemporaryUrlKey()
for parameter 4 at org.jclouds.openstack.swift.blobstore.SwiftBlobSigner.<init>(SwiftBlobSigner.java:88)
at org.jclouds.cloudfiles.CloudFilesApiMetadata$CloudFilesTemporaryUrlExtensionModule.bindRequestSigner(CloudFilesApiMetadata.java:101)
2) No implementation for org.jclouds.openstack.swift.CommonSwiftClient was bound.
while locating org.jclouds.openstack.swift.CommonSwiftClient
for parameter 4 at org.jclouds.cloudfiles.blobstore.CloudFilesBlobStore.<init>(CloudFilesBlobStore.java:63)
at org.jclouds.cloudfiles.blobstore.config.CloudFilesBlobStoreContextModule.configure(CloudFilesBlobStoreContextModule.java:64)
3) No implementation for org.jclouds.openstack.swift.CommonSwiftClient was bound.
while locating org.jclouds.openstack.swift.CommonSwiftClient
for parameter 0 at org.jclouds.openstack.swift.blobstore.strategy.internal.SequentialMultipartUploadStrategy.<init>(SequentialMultipartUploadStrategy.java:51)
while locating com.google.inject.Provider<org.jclouds.openstack.swift.blobstore.strategy.internal.MultipartUploadStrategy>
for parameter 14 at org.jclouds.cloudfiles.blobstore.CloudFilesBlobStore.<init>(CloudFilesBlobStore.java:63)
at org.jclouds.cloudfiles.blobstore.config.CloudFilesBlobStoreContextModule.configure(CloudFilesBlobStoreContextModule.java:64)
4) org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.openstack.keystone.v1_1.AuthenticationClient, A> cannot be used as a key; It is not fully specified.
5) org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.rest.HttpClient, A> cannot be used as a key; It is not fully specified.
6) org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.cloudfiles.CloudFilesClient, A> cannot be used as a key; It is not fully specified.
7) org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.openstack.swift.extensions.TemporaryUrlKeyApi, A> cannot be used as a key; It is not fully specified.
8) org.jclouds.rest.RestContext<org.jclouds.cloudfiles.CloudFilesClient, A> cannot be used as a key; It is not fully specified.
9) No implementation for org.jclouds.location.suppliers.RegionIdToURISupplier$Factory was bound.
at org.jclouds.cloudfiles.config.CloudFilesRestClientModule$StorageAndCDNManagementEndpointModule.provideCDNUrl(CloudFilesRestClientModule.java:67)
10) No implementation for org.jclouds.openstack.keystone.v1_1.suppliers.V1DefaultRegionIdSupplier$Factory was bound.
at org.jclouds.cloudfiles.config.CloudFilesRestClientModule$StorageAndCDNManagementEndpointModule.provideCDNUrl(CloudFilesRestClientModule.java:67)
11) No implementation for org.jclouds.location.suppliers.RegionIdToURISupplier$Factory was bound.
at org.jclouds.cloudfiles.config.CloudFilesRestClientModule$StorageAndCDNManagementEndpointModule.provideStorageUrl(CloudFilesRestClientModule.java:76)
12) No implementation for org.jclouds.openstack.keystone.v1_1.suppliers.V1DefaultRegionIdSupplier$Factory was bound.
at org.jclouds.cloudfiles.config.CloudFilesRestClientModule$StorageAndCDNManagementEndpointModule.provideStorageUrl(CloudFilesRestClientModule.java:76)
13) No implementation for org.jclouds.openstack.keystone.v1_1.AuthenticationClient was bound.
at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106)
14) No implementation for org.jclouds.rest.HttpClient was bound.
at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106)
15) No implementation for org.jclouds.cloudfiles.CloudFilesClient was bound.
at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106)
16) No implementation for org.jclouds.openstack.swift.extensions.TemporaryUrlKeyApi was bound.
at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106)
16 errors
我想不通,因为此时它几乎是示例代码的第一行...
最佳答案
您使用 Java 7u51 运行 jclouds 1.6.x 还是 1.7.0?如果是这样,你可能遇到过https://issues.apache.org/jira/browse/JCLOUDS-427 .您可以通过降级到 Java 7u45 或升级到 jclouds 1.7.1 来解决这个问题。
关于java - 在 Spring MVC 应用程序中使用 jclouds 创建 BlobContext 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21536498/
我有一些连接到 JClouds swift 存储容器的代码,它在自己的测试区运行良好,但是一旦我集成到我的项目中,我就会收到一个错误: Exception in thread "main" java.
我正在尝试测试这个示例 http://jclouds.apache.org/guides/filesystem/但我收到此错误: BlobStoreContext context = ContextB
在一个java应用程序中,我启动了一组具有特定组名称的虚拟机。 现在,我希望唯一地标识该组中的每个虚拟机。识别虚拟机(属于该组机器的一部分)的代码将直接在该机器本身内运行。我使用什么参数/属性来唯一标
本文整理了Java中org.jclouds.xml.XMLParser类的一些代码示例,展示了XMLParser类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven
本文整理了Java中org.jclouds.location.Zone类的一些代码示例,展示了Zone类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是
我希望利用 RackSpace 的 CloudFiles 平台进行大型对象存储(文字文档、图像等)。按照他们的一些指南,我发现了一个有用的代码片段,看起来应该可以工作,但在我的情况下却不行。
我在尝试使用 swift 放置对象时遇到异常: org.jclouds.http.HttpResponseException: Incomplete output stream connecting
我正在尝试获取以下内容JClouds-Chef代码 (v1.7.3) 在全新的 Linux VM 上引导 Chef 客户端,然后执行运行列表以使用应用程序堆栈实际配置该 VM (典型_app): pu
我正在使用优秀的JClouds-Chef用于使用 Chef 引导和配置虚拟机的库。 我需要考虑在虚拟机上执行 JClouds-Chef 之后出现问题的用例,这允许我基本上回滚并卸载它。这里的目标是,如
我使用了来自 JClouds (http://www.jclouds.org/documentation/quickstart/rackspace/) 的 Rackspace 示例代码,如果我使用我的
本文整理了Java中org.jclouds.concurrent.config.WithSubmissionTrace类的一些代码示例,展示了WithSubmissionTrace类的具体用法。这些代
本文整理了Java中org.jclouds.googlecomputeengine.features.ZoneApi类的一些代码示例,展示了ZoneApi类的具体用法。这些代码示例主要来源于Githu
本文整理了Java中org.jclouds.location.suppliers.all.ZoneToRegionToProviderOrJustProvider类的一些代码示例,展示了ZoneToR
本文整理了Java中org.jclouds.cloudstack.domain.Zone类的一些代码示例,展示了Zone类的具体用法。这些代码示例主要来源于Github/Stackoverflow/M
本文整理了Java中org.jclouds.byon.config.YamlNodeStoreModule类的一些代码示例,展示了YamlNodeStoreModule类的具体用法。这些代码示例主要来
本文整理了Java中org.jclouds.byon.domain.YamlNode类的一些代码示例,展示了YamlNode类的具体用法。这些代码示例主要来源于Github/Stackoverflow
本文整理了Java中org.jclouds.location.functions.ZoneToEndpoint类的一些代码示例,展示了ZoneToEndpoint类的具体用法。这些代码示例主要来源于G
本文整理了Java中org.jclouds.cloudstack.features.ZoneClient类的一些代码示例,展示了ZoneClient类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.jclouds.cloudstack.predicates.ZonePredicates类的一些代码示例,展示了ZonePredicates类的具体用法。这些代码示例主要来
本文整理了Java中org.jclouds.googlecomputeengine.domain.Zone类的一些代码示例,展示了Zone类的具体用法。这些代码示例主要来源于Github/Stacko
我是一名优秀的程序员,十分优秀!