java - Files.getFileAttributeView() blocking? -
i have peculiar problem java.nio
file system api. application running on windows 8, java version 1.8. attach alternate data stream files application scenarios.
below code:
log.info("path file id retrieved: " + fullpath); userdefinedfileattributeview fileattributeview = files.getfileattributeview(fullpath, userdefinedfileattributeview.class); //line 2 list<string> userattributes = fileattributeview.list(); if (userattributes.contains("objectid")) { byte[] b = (byte[]) files.getattribute(fullpath, "user:objectid"); //line 5 string objectid = new string(b, "utf-8"); log.info("file id retrieved successfully: " + objectid); //line 7 return objectid; } log.info("user attributes not contain objectid ,null file id returned."); //line 10 return null;
above code getting file attribute view user defined attributes.
my custom attribute called objectid
. 1 of users neither log of (line 7) recorded nor log of line 10. , application gets blocked. think it's getting blocked somewhere between line 2 , line 3 2 file api calls made. because in scenario code execution should not line 5.
question: there scenario files.getfileattributeview()
or userdefinefileattributeview.list()
calls can blocked? can specific file system or other thing may missing? have proper exception handling in code above.
since production system not able debug , thread dump not show anything. happening 1 user making case interesting.
Comments
Post a Comment