尝试在 Java 中的 Apache Commons VFS 中设置 Amazon S3 文件系统
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我自己用另一种方式解决了这个问题。事实证明,该库依赖于其他一些 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.
您应该自行调试并修复它,或者联系库的供应商。
我所说的“供应商”是指分发软件的个人/实体/组织,而不是必然“销售库的人”,呵呵。
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.
请查看新的 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.