Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12832

The Server Loader gets AccessDeniedException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.0.2.Final, 12.1.0.Final
    • None
    • None
    • None

      in case an unreadable directory/file is present in the server lib directory an AccessDeniedException is thrown

      Exception in thread "main" java.io.UncheckedIOException: java.nio.file.AccessDeniedException: /opt/infinispan/server/lib/custom-libraries/lost+found
          at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:87)
          at java.base/java.nio.file.FileTreeIterator.hasNext(FileTreeIterator.java:103)
          at java.base/java.util.Iterator.forEachRemaining(Iterator.java:132)
          at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
          at org.infinispan.server.loader.Loader.classLoaderFromPath(Loader.java:116)
          at org.infinispan.server.loader.Loader.run(Loader.java:95)
          at org.infinispan.server.loader.Loader.main(Loader.java:48)
      Caused by: java.nio.file.AccessDeniedException: /opt/infinispan/server/lib/custom-libraries/lost+found
          at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
          at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
          at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
          at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:432)
          at java.base/java.nio.file.Files.newDirectoryStream(Files.java:472)
          at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:300)
          at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:373)
          at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:83)
          ... 12 more
      

              ttarrant@redhat.com Tristan Tarrant
              ttarrant@redhat.com Tristan Tarrant
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: