Java Runtime errors

Core environment and runtime library

https://java.com
Solution coverage:
Summary coverage:

Top patterns

  1. Files.getFileStore() has thrown an IOException
    No solution
  2. Paths.get() has thrown a FileSystemNotFoundException

    HTTP and FTP are different protocols with different purposes, you're sending a request for a file but using http and that doesn't work.

    Check the source of this solution for more info

  3. FileSystems.newFileSystem() has thrown a ProviderNotFoundException
    No solution

DescriptionException TypeEntry MethodWeb pages

Files.getFileStore() has thrown an IOException

java.io.IOException
6 frames hidden
java.nio.file.Files.getFileStore
24Web pages
IOExceptionFiles.getFileStore24

Paths.get() has thrown a FileSystemNotFoundException

java.nio.file.FileSystemNotFoundException
java.nio.file.Paths.get
23Web pages
1Solution
FileSystemNotFoundExceptionPaths.get23

FileSystems.newFileSystem() has thrown a ProviderNotFoundException

java.nio.file.ProviderNotFoundException
java.nio.file.FileSystems.newFileSystem
14Web pages
ProviderNotFoundExceptionFileSystems.newFileSystem14

Files.provider() has thrown a NullPointerException

java.lang.NullPointerException
java.nio.file.Files.provider
12Web pages
NullPointerExceptionFiles.provider12

Files.readAttributes() has thrown an UnsupportedOperationException

java.lang.UnsupportedOperationException
1 frames hidden
java.nio.file.Files.readAttributes
11Web pages
UnsupportedOperationExceptionFiles.readAttributes11

Paths.get() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
java.nio.file.Paths.get
11Web pages
IllegalArgumentExceptionPaths.get11

Files.move() has thrown an AtomicMoveNotSupportedException

java.nio.file.AtomicMoveNotSupportedException
2 frames hidden
java.nio.file.Files.move
9Web pages
AtomicMoveNotSupportedExceptionFiles.move9

Files.copy() has thrown a NoSuchFileException

java.nio.file.NoSuchFileException
7 frames hidden
java.nio.file.Files.copy
9Web pages
NoSuchFileExceptionFiles.copy9

FileSystems.getDefault() has thrown an AssertionError

java.lang.AssertionError
8 frames hidden
java.nio.file.FileSystems.getDefault
8Web pages
AssertionErrorFileSystems.getDefault8

Files.setPosixFilePermissions() has thrown an UnsupportedOperationException

java.lang.UnsupportedOperationException
java.nio.file.Files.setPosixFilePermissions
7Web pages
UnsupportedOperationExceptionFiles.setPosixFilePermissions7

FileSystems.getDefault() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.nio.file.FileSystems.getDefault
6Web pages
NoClassDefFoundErrorFileSystems.getDefault6

FileSystems.newFileSystem() has thrown a FileSystemNotFoundException

java.nio.file.FileSystemNotFoundException
2 frames hidden
java.nio.file.FileSystems.newFileSystem
6Web pages
FileSystemNotFoundExceptionFileSystems.newFileSystem6

FileSystems.newFileSystem() has thrown a FileSystemAlreadyExistsException

java.nio.file.FileSystemAlreadyExistsException
2 frames hidden
java.nio.file.FileSystems.newFileSystem
5Web pages
FileSystemAlreadyExistsExceptionFileSystems.newFileSystem5

Files.copy() has thrown a FileAlreadyExistsException

java.nio.file.FileAlreadyExistsException
2 frames hidden
java.nio.file.Files.copy
5Web pages
FileAlreadyExistsExceptionFiles.copy5

FileSystems.getDefault() has thrown an ExceptionInInitializerError

java.lang.ExceptionInInitializerError
java.nio.file.FileSystems.getDefault
5Web pages
ExceptionInInitializerErrorFileSystems.getDefault5

FileSystems.getFileSystem() has thrown a ProviderNotFoundException

java.nio.file.ProviderNotFoundException
java.nio.file.FileSystems.getFileSystem
4Web pages
ProviderNotFoundExceptionFileSystems.getFileSystem4

Files.newInputStream() has thrown a NoSuchFileException

java.nio.file.NoSuchFileException
3 frames hidden
java.nio.file.Files.newInputStream
4Web pages
NoSuchFileExceptionFiles.newInputStream4

Files.move() has thrown a FileAlreadyExistsException

java.nio.file.FileAlreadyExistsException
2 frames hidden
java.nio.file.Files.move
4Web pages
FileAlreadyExistsExceptionFiles.move4

Files.readAllBytes() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.nio.file.Files.readAllBytes
4Web pages
OutOfMemoryErrorFiles.readAllBytes4

Files.readAttributes() has thrown an UnsupportedOperationException

java.lang.UnsupportedOperationException
1 frames hidden
java.nio.file.Files.readAttributes
3Web pages
UnsupportedOperationExceptionFiles.readAttributes3

Files.createDirectories() has thrown a FileSystemException

java.nio.file.FileSystemException
java.nio.file.Files.createDirectories
3Web pages
FileSystemExceptionFiles.createDirectories3

Files.createTempFile() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.nio.file.Files.createTempFile
3Web pages
NoClassDefFoundErrorFiles.createTempFile3

Files.readAllBytes() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
1 frames hidden
java.nio.file.Files.readAllBytes
3Web pages
OutOfMemoryErrorFiles.readAllBytes3

Files.move() has thrown a DirectoryNotEmptyException

java.nio.file.DirectoryNotEmptyException
2 frames hidden
java.nio.file.Files.move
3Web pages
DirectoryNotEmptyExceptionFiles.move3

Paths.get() has thrown a NullPointerException

java.lang.NullPointerException
java.nio.file.Paths.get
3Web pages
NullPointerExceptionPaths.get3

FileSystems.newFileSystem() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
java.nio.file.FileSystems.newFileSystem
2Web pages
IllegalArgumentExceptionFileSystems.newFileSystem2

Files.exists() has thrown a ClosedFileSystemException

java.nio.file.ClosedFileSystemException
4 frames hidden
java.nio.file.Files.exists
2Web pages
ClosedFileSystemExceptionFiles.exists2

Files.move() has thrown a FileAlreadyExistsException

java.nio.file.FileAlreadyExistsException
2 frames hidden
java.nio.file.Files.move
2Web pages
FileAlreadyExistsExceptionFiles.move2

FileSystems.newFileSystem() has thrown an UnsupportedOperationException

java.lang.UnsupportedOperationException
1 frames hidden
java.nio.file.FileSystems.newFileSystem
2Web pages
UnsupportedOperationExceptionFileSystems.newFileSystem2

FileSystems.newFileSystem() has thrown an UnsupportedOperationException

java.lang.UnsupportedOperationException
3 frames hidden
java.nio.file.FileSystems.newFileSystem
2Web pages
UnsupportedOperationExceptionFileSystems.newFileSystem2

Files.newDirectoryStream() has thrown a NotDirectoryException

java.nio.file.NotDirectoryException
1 frames hidden
java.nio.file.Files.newDirectoryStream
2Web pages
NotDirectoryExceptionFiles.newDirectoryStream2

Files.copy() has thrown a FileAlreadyExistsException

java.nio.file.FileAlreadyExistsException
2 frames hidden
java.nio.file.Files.copy
2Web pages
FileAlreadyExistsExceptionFiles.copy2

Files.createSymbolicLink() has thrown an UnsupportedOperationException

java.lang.UnsupportedOperationException
1 frames hidden
java.nio.file.Files.createSymbolicLink
2Web pages
UnsupportedOperationExceptionFiles.createSymbolicLink2

TempFileHelper.create() has thrown a NullPointerException

java.lang.NullPointerException
java.nio.file.TempFileHelper.create
1Web pages
NullPointerExceptionTempFileHelper.create1

Files.setAttribute() has thrown a ClassCastException

java.lang.ClassCastException
2 frames hidden
java.nio.file.Files.setAttribute
0Web pages
ClassCastExceptionFiles.setAttribute0
Package namePatterns foundSolution coverageSummary coverage
java.lang40275
java.io3873
java.awt3611
java.util.concurrent3497
java.lang.reflect3464
sun.reflect2111
java.util2071
java.net2068
javax.swing1382
java.security856
javax.naming842
java.sql690
sun.net.www.protocol.http689
sun.net.www.protocol.https681
sun.nio.ch458
java.util.zip290
sun.rmi.server287
java.nio.file263
java.util.regex260
sun.rmi.transport.tcp259
com.sun.jndi.ldap243
com.sun.org.apache.xerces.internal.impl236
com.sun.org.apache.xerces.internal.parsers222
javax.swing.plaf.basic217
sun.net.www.http217
java.util.stream181
sun.misc179
java.util.logging154
com.sun.org.apache.xerces.internal.jaxp151
java.nio148
java.util.jar142
javax.swing.text142
sun.launcher138
java.beans137
java.text133
javax.imageio130
sun.rmi.registry127
javax.net.ssl116
javax.management.remote.rmi116
javax.security.auth.login115
java.rmi114
com.sun.org.apache.xalan.internal.xsltc.trax110
sun.nio.cs110
java.awt.image104
javax.security.auth98
sun.rmi.transport97
java.nio.channels95
sun.instrument92
java.util.concurrent.locks88
java.awt.event86
Package nameClass namePatterns foundSolution coverageSummary coverage
java.nio.fileFiles208
java.nio.fileFileSystems21
java.nio.filePaths14
java.nio.fileFileTreeWalker11
java.nio.fileFileTreeIterator7
java.nio.fileFileSystems$DefaultFileSystemHolder1
java.nio.fileTempFileHelper1
Package nameClass nameMethod namePatterns foundSolution coverage
java.nio.fileFilescopy25
java.nio.fileFilesmove16
java.nio.fileFileSystemsnewFileSystem14
java.nio.fileFileswalkFileTree14
java.nio.filePathsget14
java.nio.fileFilesnewByteChannel11
java.nio.fileFilesreadAllBytes9
java.nio.fileFilescreateDirectory8
java.nio.fileFilescreateDirectories8
java.nio.fileFilesnewInputStream8
java.nio.fileFilesdelete8
java.nio.fileFilesreadAttributes8
java.nio.fileFilesnewOutputStream7
java.nio.fileFileswrite7
java.nio.fileFilescreateTempFile7
java.nio.fileFilesreadAllLines7
java.nio.fileFileSystemsgetDefault6
java.nio.fileFilesdeleteIfExists6
java.nio.fileFilesnewDirectoryStream6
java.nio.fileFilescreateSymbolicLink5
java.nio.fileFilescreateFile5
java.nio.fileFileTreeWalkerwalk5
java.nio.fileFilesnewBufferedReader5
java.nio.fileFileTreeWalkernext4
java.nio.fileFileswalk4
java.nio.fileFileslist4
java.nio.fileFileslines4
java.nio.fileFilesexists3
java.nio.fileFilesgetFileStore3
java.nio.fileFileTreeIterator<init>3
java.nio.fileFilessize3
java.nio.fileFilescreateLink2
java.nio.fileFilesgetPosixFilePermissions2
java.nio.fileFileTreeWalkervisit2
java.nio.fileFilescreateTempDirectory2
java.nio.fileFilessetPosixFilePermissions2
java.nio.fileFileTreeIteratorhasNext2
java.nio.fileFileTreeIteratorfetchNextIfNeeded2
java.nio.fileFilesnewBufferedWriter2
java.nio.fileFilessetAttribute1
java.nio.fileFilesisDirectory1
java.nio.fileFilesprovider1
java.nio.fileFilesgetAttribute1
java.nio.fileFilessetOwner1
java.nio.fileFilesisHidden1
java.nio.fileFileSystemsgetFileSystem1
java.nio.fileFileSystems$DefaultFileSystemHoldergetDefaultProvider1
java.nio.fileFilesreadSymbolicLink1
java.nio.fileTempFileHelpercreate1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
java.nio.fileFileswalkFileTreeNoSuchFileException8
java.nio.fileFilescopyNoSuchFileException7
java.nio.fileFilescopyFileAlreadyExistsException5
java.nio.fileFilesnewByteChannelNoSuchFileException4
java.nio.fileFilesnewByteChannelAccessDeniedException4
java.nio.fileFilesreadAttributesNoSuchFileException4
java.nio.fileFilescopyAccessDeniedException4
java.nio.fileFilesreadAllLinesNoSuchFileException4
java.nio.filePathsgetInvalidPathException4
java.nio.fileFilesmoveNoSuchFileException4
java.nio.fileFilesmoveFileSystemException4
java.nio.fileFilesnewBufferedReaderNoSuchFileException4
java.nio.fileFileSystemsnewFileSystemIllegalArgumentException3
java.nio.fileFilescopyIOException3
java.nio.fileFileSystemsgetDefaultExceptionInInitializerError3
java.nio.fileFileswalkFileTreeAccessDeniedException3
java.nio.filePathsgetNullPointerException3
java.nio.fileFileTreeWalkerwalkNoSuchFileException3
java.nio.fileFileslinesNoSuchFileException3
java.nio.fileFilescreateDirectoriesAccessDeniedException3
java.nio.fileFileSystemsnewFileSystemZipError3
java.nio.fileFileTreeIterator<init>NoSuchFileException3
java.nio.fileFilesnewInputStreamNoSuchFileException3
java.nio.fileFilessizeNoSuchFileException3
java.nio.filePathsgetIllegalArgumentException3
java.nio.fileFileswalkNoSuchFileException3
java.nio.fileFilescreateDirectoriesFileSystemException3
java.nio.fileFilesmoveFileAlreadyExistsException3
java.nio.fileFilesnewByteChannelFileSystemException3
java.nio.fileFilescopyFileSystemException3
java.nio.fileFilesreadAllBytesOutOfMemoryError3
java.nio.fileFilesnewDirectoryStreamNoSuchFileException2
java.nio.fileFilescreateDirectoryAccessDeniedException2
java.nio.fileFileSystemsnewFileSystemProviderNotFoundException2
java.nio.fileFilescreateTempFileNoSuchFileException2
java.nio.fileFilesnewOutputStreamFileSystemException2
java.nio.fileFileTreeIteratorhasNextUncheckedIOException2
java.nio.fileFileswalkFileTreeFileSystemException2
java.nio.fileFilescreateSymbolicLinkFileAlreadyExistsException2
java.nio.fileFilesnewDirectoryStreamAccessDeniedException2
java.nio.fileFilesdeleteIfExistsFileSystemException2
java.nio.fileFileswriteFileSystemException2
java.nio.fileFilescreateDirectoryNoSuchFileException2
java.nio.fileFilesreadAllBytesAccessDeniedException2
java.nio.fileFileSystemsgetDefaultAssertionError2
java.nio.fileFileTreeWalkernextAccessDeniedException2
java.nio.fileFilescreateDirectoryFileAlreadyExistsException2
java.nio.fileFilescreateFileNoSuchFileException2
java.nio.fileFileTreeWalkernextNoSuchFileException2
java.nio.fileFileSystemsnewFileSystemFileSystemNotFoundException2