You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Zack Shoylev <za...@RACKSPACE.COM> on 2016/05/31 14:00:08 UTC

Re: Error when creating filesystem storage on Windows

Hi,

I remember fixing a few windows-related access-control issues somewhat recently. Can you try to reproduce using SNAPSHOT instead of 1.9.1?

________________________________________
From: Meyer, Carsten <ca...@zeiss.com>
Sent: Tuesday, April 26, 2016 1:53 AM
To: dev@jclouds.apache.org
Subject: Error when creating filesystem storage on Windows

Hi,

thanks for the great project!

We encountered a problem when setting up a simple blob store on the filesystem in Windows.
When running the sample code, we always run into the following error:

"Exception in thread "main" java.lang.RuntimeException: java.nio.file.AccessDeniedException: d:\blob-567\test-container\test
            at com.google.common.base.Throwables.propagate(Throwables.java:160)
            at org.jclouds.filesystem.strategy.internal.FilesystemStorageStrategyImpl.getBlob(FilesystemStorageStrategyImpl.java:373)
            at org.jclouds.blobstore.config.LocalBlobStore.loadBlob(LocalBlobStore.java:414)
            at org.jclouds.blobstore.config.LocalBlobStore.getBlob(LocalBlobStore.java:583)
            at org.jclouds.blobstore.config.LocalBlobStore.getBlob(LocalBlobStore.java:187)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
            at com.sun.proxy.$Proxy38.getBlob(Unknown Source)
            at de.zeiss.forum.eval.FilesystemStore.main(FilesystemStore.java:44)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.nio.file.AccessDeniedException: d:\blob-567\test-container\test
            at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
            at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
            at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
            at sun.nio.fs.WindowsUserDefinedFileAttributeView.listUsingStreamEnumeration(WindowsUserDefinedFileAttributeView.java:89)
            at sun.nio.fs.WindowsUserDefinedFileAttributeView.list(WindowsUserDefinedFileAttributeView.java:205)
            at org.jclouds.filesystem.strategy.internal.FilesystemStorageStrategyImpl.getBlob(FilesystemStorageStrategyImpl.java:333)
            ... 15 more
"

The problem seems to have been introduced in version 1.9.1 , version 1.9.0 still runs fine.

After digging around in the code, we found that the handling of file attributes was done in this release, especially
https://github.com/jclouds/jclouds/commit/deff8d8413a5080a5fb345d061925a55d6c45b0e
https://github.com/jclouds/jclouds/commit/fadbbad8acbcc18dcaa3c0cd25382006012e1f14

Can someone please confirm that this is a problem?
We have to run on Windows (Windows 7 64-bit).

Thanks,
Carsten