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
java.lang.NullPointerException atde.catma.properties.CATMAPropertyKey.getValue(CATMAPropertyKey.java:113 #345
Comments
@fishfree That looks like you didn't set up a properties file. You need to:
After that CATMA should start successfully. |
@maltem-za Thank you! I did what you said and |
@fishfree Please try placing the properties file within the WAR file, or alternatively extract the WAR file and have Tomcat work with that rather than the archive. If the error persists, please post the complete error text / stacktrace. |
@maltem-za You mean I need copy the catma.properties file under the auto-unzipped catma folder? I did it and restart tomcat9, still the same error. |
@fishfree OK, I need to see the complete error text / stacktrace please. |
@maltem-za I check the tomcat log, there is no error log, just some access logs, not related with our issue. However, I found the page shows
|
@fishfree Change SQLITE_DB_BASE_PATH to |
@fishfree Thank you! However, the same error:
|
@fishfree I need to see the complete stacktrace to help further. I just tested again locally, and when something causes "Failed to initialize database" the root cause is definitely output, so it should end up in a Tomcat log file somewhere. You might need to modify your Tomcat configuration - the following could help: https://serverfault.com/questions/805622/where-is-catalina-out-in-tomcat-9 |
@maltem-za Thank you! I remove the extracted folder and restart tomcat9, now the error changed and the log is as below:
|
@fishfree You've gone back to missing properties/config now. |
But which properties/config are missing? :-( |
@fishfree You said that you removed the extracted folder, and it looks like you are now missing the catma.properties file again. |
@maltem-za Thank you for your patience. Finally I realized that the java version has been changed to 11 by another user on the server. I changed it back to 8 and can access now. |
I downloaded the pre-compiled 7.0.4 war file here, and then access, it showed errors as below:
My environments: Open JDK 8, Tomcat 9, Ubuntu 22.04
The text was updated successfully, but these errors were encountered: