java.io.IOException: Mount point not found at sun.nio.fs.LinuxFileStore.findMountEntry(java.base/LinuxFileStore.java:91) at sun.nio.fs.UnixFileStore.<init>(java.base/UnixFileStore.java:65) at sun.nio.fs.LinuxFileStore.<init>(java.base/LinuxFileStore.java:44) at sun.nio.fs.LinuxFileSystemProvider.getFileStore(java.base/LinuxFileSystemProvider.java:51) at sun.nio.fs.LinuxFileSystemProvider.getFileStore(java.base/LinuxFileSystemProvider.java:39) at sun.nio.fs.UnixFileSystemProvider.getFileStore(java.base/UnixFileSystemProvider.java:369) at java.nio.file.Files.getFileStore(java.base/Files.java:1464)

JDK Bug System | Brian Burkhalter | 3 months ago
  1. 0

    If the class GetFileStore included below is for example run in a chroot environment it will fail with an IOException whose message is "Mount point not found". import java.nio.file.Files; import java.nio.file.FileStore; import java.nio.file.Path; import java.nio.file.Paths; public class GetFileStore { public static void main(String[] args) throws Throwable { String userDir = System.getProperty("user.dir"); System.out.printf("Retrieving FileStore for %s%n", userDir); Path path = Paths.get(userDir); FileStore fileStore = Files.getFileStore(path); System.out.printf("%s is in FileStore %s of type %s%n", userDir, fileStore.name(), fileStore.type()); } } For example if /proc/mounts contains only none /proc proc rw,relatime 0 0 running the above class within /home behaves as follows: /home# java GetFileStore Retrieving FileStore for /home Exception in thread "main" java.io.IOException: Mount point not found at sun.nio.fs.LinuxFileStore.findMountEntry(java.base/LinuxFileStore.java:91) at sun.nio.fs.UnixFileStore.<init>(java.base/UnixFileStore.java:65) at sun.nio.fs.LinuxFileStore.<init>(java.base/LinuxFileStore.java:44) at sun.nio.fs.LinuxFileSystemProvider.getFileStore(java.base/LinuxFileSystemProvider.java:51) at sun.nio.fs.LinuxFileSystemProvider.getFileStore(java.base/LinuxFileSystemProvider.java:39) at sun.nio.fs.UnixFileSystemProvider.getFileStore(java.base/UnixFileSystemProvider.java:369) at java.nio.file.Files.getFileStore(java.base/Files.java:1464) at GetFileStore.main(GetFileStore.java:11)

    JDK Bug System | 3 months ago | Brian Burkhalter
    java.io.IOException: Mount point not found at sun.nio.fs.LinuxFileStore.findMountEntry(java.base/LinuxFileStore.java:91) at sun.nio.fs.UnixFileStore.<init>(java.base/UnixFileStore.java:65) at sun.nio.fs.LinuxFileStore.<init>(java.base/LinuxFileStore.java:44) at sun.nio.fs.LinuxFileSystemProvider.getFileStore(java.base/LinuxFileSystemProvider.java:51) at sun.nio.fs.LinuxFileSystemProvider.getFileStore(java.base/LinuxFileSystemProvider.java:39) at sun.nio.fs.UnixFileSystemProvider.getFileStore(java.base/UnixFileSystemProvider.java:369) at java.nio.file.Files.getFileStore(java.base/Files.java:1464)
  2. 0

    The following tests are failinmg for the jdlk9/hs. They do not fail on jdk9/dev They only fail on windows: FAILED: sun/tools/jstatd/TestJstatdDefaults.java FAILED: sun/tools/jstatd/TestJstatdExternalRegistry.java FAILED: sun/tools/jstatd/TestJstatdPort.java FAILED: sun/tools/jstatd/TestJstatdPortAndServer.java FAILED: sun/tools/jstatd/TestJstatdServer.java They need to be fixed/excluded in jdk9/dev. STDERR: java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(java.base@9-internal/BufferedInputStream.java:170) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:336) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107) at jdk.testlibrary.StreamPumper.run(StreamPumper.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-internal/Executors.java:514) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:264) at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:196) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) java.io.IOException: Stream Closed at java.io.FileInputStream.readBytes(java.base@9-internal/Native Method) at java.io.FileInputStream.read(java.base@9-internal/FileInputStream.java:255) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107) at jdk.testlibrary.StreamPumper.run(StreamPumper.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-internal/Executors.java:514) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:264) at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:196) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) java.lang.RuntimeException: No or invalid headline found, expected: [S0 S1 E O M CCS YGC YGCT FGC FGCT GCT]: expected true, was false at jdk.testlibrary.Asserts.fail(Asserts.java:540) at jdk.testlibrary.Asserts.assertTrue(Asserts.java:490) at JstatGCUtilParser.parse(JstatGCUtilParser.java:150) at JstatdTest.verifyJstatOutput(JstatdTest.java:206) at JstatdTest.runToolsAndVerify(JstatdTest.java:214) at JstatdTest.doTest(JstatdTest.java:325) at TestJstatdDefaults.main(TestJstatdDefaults.java:37) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:535) at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test

    JDK Bug System | 4 months ago | Alejandro Murillo
    java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(java.base@9-internal/BufferedInputStream.java:170) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:336) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107)
  3. 0

    The following tests are failinmg for the jdlk9/hs. They do not fail on jdk9/dev They only fail on windows: FAILED: sun/tools/jstatd/TestJstatdDefaults.java FAILED: sun/tools/jstatd/TestJstatdExternalRegistry.java FAILED: sun/tools/jstatd/TestJstatdPort.java FAILED: sun/tools/jstatd/TestJstatdPortAndServer.java FAILED: sun/tools/jstatd/TestJstatdServer.java They need to be fixed/excluded in jdk9/dev. STDERR: java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(java.base@9-internal/BufferedInputStream.java:170) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:336) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107) at jdk.testlibrary.StreamPumper.run(StreamPumper.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-internal/Executors.java:514) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:264) at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:196) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) java.io.IOException: Stream Closed at java.io.FileInputStream.readBytes(java.base@9-internal/Native Method) at java.io.FileInputStream.read(java.base@9-internal/FileInputStream.java:255) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107) at jdk.testlibrary.StreamPumper.run(StreamPumper.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-internal/Executors.java:514) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:264) at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:196) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) java.lang.RuntimeException: No or invalid headline found, expected: [S0 S1 E O M CCS YGC YGCT FGC FGCT GCT]: expected true, was false at jdk.testlibrary.Asserts.fail(Asserts.java:540) at jdk.testlibrary.Asserts.assertTrue(Asserts.java:490) at JstatGCUtilParser.parse(JstatGCUtilParser.java:150) at JstatdTest.verifyJstatOutput(JstatdTest.java:206) at JstatdTest.runToolsAndVerify(JstatdTest.java:214) at JstatdTest.doTest(JstatdTest.java:325) at TestJstatdDefaults.main(TestJstatdDefaults.java:37) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:535) at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test

    JDK Bug System | 4 months ago | Alejandro Murillo
    java.io.IOException: Stream Closed at java.io.FileInputStream.readBytes(java.base@9-internal/Native Method) at java.io.FileInputStream.read(java.base@9-internal/FileInputStream.java:255) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in thread "main" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(java.base@9-ea/HttpURLConnection.java:2077) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(java.base@9-ea/AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(java.base@9-ea/HttpURLConnection.java:1280) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(java.base@9-ea/HttpURLConnection.java:1255) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(java.base@9-ea/HttpsURLConnectionImpl.java:231) at PostThruProxyWithAuth.doClientSide(PostThruProxyWithAuth.java:172) at PostThruProxyWithAuth.main(PostThruProxyWithAuth.java:113)

    JDK Bug System | 6 months ago | John Jiang
    java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(java.base@9-ea/HttpURLConnection.java:2077) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(java.base@9-ea/AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(java.base@9-ea/HttpURLConnection.java:1280) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(java.base@9-ea/HttpURLConnection.java:1255) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(java.base@9-ea/HttpsURLConnectionImpl.java:231)
  6. 0

    This is intermittent. It has been observed once in 9 b133 same binaries run on Solaris X64. Test output: ----------System.out:(1/20)---------- Server port = 58559 ----------System.err:(30/2212)---------- java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(java.base@9-ea/Native Method) at sun.nio.ch.SocketDispatcher.read(java.base@9-ea/SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(java.base@9-ea/IOUtil.java:223) at sun.nio.ch.IOUtil.read(java.base@9-ea/IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(java.base@9-ea/SocketChannelImpl.java:382) at java.net.http.PlainHttpConnection.readImpl(java.httpclient@9-ea/PlainHttpConnection.java:222) at java.net.http.HttpConnection.read(java.httpclient@9-ea/HttpConnection.java:310) at java.net.http.HttpConnection.read(java.httpclient@9-ea/HttpConnection.java:286) at java.net.http.Http1Response.getBuffer(java.httpclient@9-ea/Http1Response.java:251) at java.net.http.Http1Response.readStatusLine(java.httpclient@9-ea/Http1Response.java:264) at java.net.http.Http1Response.readHeaders(java.httpclient@9-ea/Http1Response.java:69) at java.net.http.Http1Exchange.getResponse(java.httpclient@9-ea/Http1Exchange.java:144) at java.net.http.Exchange.responseImpl0(java.httpclient@9-ea/Exchange.java:149) at java.net.http.Exchange.responseImpl(java.httpclient@9-ea/Exchange.java:129) at java.net.http.Exchange.response(java.httpclient@9-ea/Exchange.java:86) at java.net.http.MultiExchange.response(java.httpclient@9-ea/MultiExchange.java:99) at java.net.http.HttpRequestImpl.response(java.httpclient@9-ea/HttpRequestImpl.java:214) at HeadersTest1.main(HeadersTest1.java:73) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

    JDK Bug System | 3 months ago | Felix Yang
    java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(java.base@9-ea/Native Method) at sun.nio.ch.SocketDispatcher.read(java.base@9-ea/SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(java.base@9-ea/IOUtil.java:223) at sun.nio.ch.IOUtil.read(java.base@9-ea/IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(java.base@9-ea/SocketChannelImpl.java:382) at java.net.http.PlainHttpConnection.readImpl(java.httpclient@9-ea/PlainHttpConnection.java:222) at java.net.http.HttpConnection.read(java.httpclient@9-ea/HttpConnection.java:310) at java.net.http.HttpConnection.read(java.httpclient@9-ea/HttpConnection.java:286) at java.net.http.Http1Response.getBuffer(java.httpclient@9-ea/Http1Response.java:251) at java.net.http.Http1Response.readStatusLine(java.httpclient@9-ea/Http1Response.java:264) at java.net.http.Http1Response.readHeaders(java.httpclient@9-ea/Http1Response.java:69) at java.net.http.Http1Exchange.getResponse(java.httpclient@9-ea/Http1Exchange.java:144) at java.net.http.Exchange.responseImpl0(java.httpclient@9-ea/Exchange.java:149) at java.net.http.Exchange.responseImpl(java.httpclient@9-ea/Exchange.java:129) at java.net.http.Exchange.response(java.httpclient@9-ea/Exchange.java:86) at java.net.http.MultiExchange.response(java.httpclient@9-ea/MultiExchange.java:99) at java.net.http.HttpRequestImpl.response(java.httpclient@9-ea/HttpRequestImpl.java:214)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Mount point not found at sun.nio.fs.LinuxFileStore.findMountEntry(java.base/LinuxFileStore.java:91) at sun.nio.fs.UnixFileStore.<init>(java.base/UnixFileStore.java:65) at sun.nio.fs.LinuxFileStore.<init>(java.base/LinuxFileStore.java:44) at sun.nio.fs.LinuxFileSystemProvider.getFileStore(java.base/LinuxFileSystemProvider.java:51) at sun.nio.fs.LinuxFileSystemProvider.getFileStore(java.base/LinuxFileSystemProvider.java:39) at sun.nio.fs.UnixFileSystemProvider.getFileStore(java.base/UnixFileSystemProvider.java:369) at java.nio.file.Files.getFileStore(java.base/Files.java:1464)

      at GetFileStore.main()
    2. Unknown
      GetFileStore.main
      1. GetFileStore.main(GetFileStore.java:11)
      1 frame