You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a Java application in a containerized environment, accessing external files or resources might require a different approach compared to running the application locally. In your case, the code is attempting to load a file named "sdk.properties" using a FileInputStream, but it's unable to find the file within the container.
Here are a few possible solutions:
Use ClassLoader:
Load the file using the ClassLoader instead of a direct file path. This way, you can access resources from the classpath, and it's container-friendly.
Choose the approach that best fits your application's structure and deployment environment. If the configuration file is part of your application, packaging it within the WAR file might also be a good solution.
One line summary of the issue here.
Expected behavior
As concisely as possible, describe the expected behavior.
Actual behavior
As concisely as possible, describe the observed behavior.
Steps to reproduce the behavior
Please list all relevant steps to reproduce the observed behavior.
The text was updated successfully, but these errors were encountered: