-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'sdkProperties' has private access in 'com.twitter.clientlib.SDKConfig' . #68
Comments
I'd like to add that the issue is that the location of sdkProperties cannot be changed. I cannot deploy a WAR file and have FileInputStream find it. To lookup any resource in a WAR / Wildfly environment, you have to use:
But you cannot change this as it is currently hardcoded in the constructor. What results is a long list of error logs that get generated every time the server starts up. |
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:
Provide Absolute Path:
Use System Property: In your startup script or command line:
In your Java code:
Make sure to adjust the file path accordingly. 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: