尝试在 Java 中的 Apache Commons VFS 中设置 Amazon S3 文件系统

发布于 2024-08-02 22:34:29 字数 637 浏览 1 评论 0原文

我正在尝试使用 VFS S3 插件 Apache Commons VFS for 亚马逊 S3

我已经包含了该 jar,它可以识别 s3 架构。

但是,当我尝试打开一个文件(该文件是公共文件,我可以在网络浏览器上打开它)时,我收到此错误:

Could not create a file system manager of class "org.apache.commons.vfs.impl.StandardFileSystemManager".
>> org.apache.commons.vfs.VFS.createManager(VFS.java:93)
>> org.apache.commons.vfs.VFS.getManager(VFS.java:47)

我应该做什么?

I'm trying to use VFS S3 a plugin for the Apache Commons VFS for Amazon S3.

I've included the jar and it's recognising the s3 schema.

However when I try to open a file (which is public, I can open it on my web browser), I get this error:

Could not create a file system manager of class "org.apache.commons.vfs.impl.StandardFileSystemManager".
>> org.apache.commons.vfs.VFS.createManager(VFS.java:93)
>> org.apache.commons.vfs.VFS.getManager(VFS.java:47)

What should I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

狼性发作 2024-08-09 22:34:29

我自己用另一种方式解决了这个问题。事实证明,该库依赖于其他一些 java 库(例如来自 apache 的 log4j 和来自亚马逊的 jets3t)。它根本没有给出有用的错误消息。

I've fixed this myself another way. Turns out that library depends on some other java libraries (like log4j from apache and jets3t from amazon). It just wasn't giving a helpful error message at all.

飞烟轻若梦 2024-08-09 22:34:29

您应该自行调试并修复它,或者联系库的供应商。

我所说的“供应商”是指分发软件的个人/实体/组织,而不是必然“销售库的人”,呵呵。

You should debug it and fix it yourself, or contact the vendor of the library.

By "vendor", I mean the person/entity/organization who distributes the software, not necessarily "who is selling the library", heh.

帅气尐潴 2024-08-09 22:34:29

请查看新的 VFSLib Java 库。它完全支持 Amazon S3、Google Drive 和 Dropbox。直接从供应商处获得第一手信息的高级支持。

Please check out the new VFSLib Java library. It comes with support for Amazon S3, Google Drive, and Dropbox altogether. Get premium support for first-hand information directly from vendor.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文