有没有人在Windows上看到过不一致的FileInputStream.open异常?
我有Oracle的连贯性(coherence-3.6.1-p6.jar)com.tangosol.run.xml.XmlHelper.loadXml方法在java.io.FileInputStream.open(Native)中获取异常(jdk1.6.0_29)不一致的给定文件:///路径。请参阅下面的已记录堆栈跟踪(以及失败后16秒的成功日志)。该文件及其之上/之上的所有目录在unix上都是可读的。
jvm断断续续地看到错误是使用jsl作为Windows服务(在本地系统帐户下)运行:
JSL Java Service Launcher by Michael Roeschter (Michael@Roeschter.com) Version 0.99n September, 12th 2011
堆栈跟踪错误,然后成功(?!):
2012-09-12 14:23:48.730 -0400 ERROR ... Caused by: (Wrapped: Failed to load cache configuration: file://///{unix nfs share}/{dir}/{file}.xml) (Wrapped) java.io.FileNotFoundException: \\{unix nfs share}\{dir}\{file}.xml (Access is denied) at com.tangosol.util.Base.ensureRuntimeException(Base.java:293) at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330) at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281) at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultConfigurableCacheFactory.java:396) at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultConfigurableCacheFactory.java:382) at com.tangosol.net.DefaultConfigurableCacheFactory.(DefaultConfigurableCacheFactory.java:148) ... 39 more Caused by: (Wrapped) java.io.FileNotFoundException: \\{unix nfs share}\{dir}\{file}.xml (Access is denied) at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:159) at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:320) ... 43 more Caused by: java.io.FileNotFoundException: \\{unix nfs share}\{dir}\{file}.xml (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:120) at java.io.FileInputStream.(FileInputStream.java:79) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) at java.net.URL.openStream(URL.java:1010) at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:155) ... 44 more ... 2012-09-12 14:24:04.839 -0400 INFO STDERR [Logger@11477911 3.6.1.6] cpratesdev: 2012-09-12 14:24:04.839/27.702 Oracle Coherence GE 3.6.1.6 (thread=app-main, member=n/a): Loaded cache configuration from "file://///{unix nfs share}/{dir}/{file}.xml"