Ask Your Question
4

What is the meaning of the error message "IllegalArgumentException: 'input == null!'" thrown by java's getResourceAsStream()?

asked 2021-05-25 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-08-29 03:00:00 +0000

nofretete gravatar image

This error message means that the input parameter passed to the getResourceAsStream() method is null. The method is designed to read a resource file from the classpath as an input stream, but it requires a valid resource name to be passed as the input parameter. If the input parameter is null, the method cannot read the resource file and throws this exception.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-25 11:00:00 +0000

Seen: 6 times

Last updated: Aug 29 '21