chanders Posted March 18, 2018 Posted March 18, 2018 Greeting,When I execute sql query in a java servlet on Tomcat -- it returns a null pointer (code 500). It seem that this malfunction may be related to the recent servlet/tomcat configuration mishap that occurred on tommy. However, when this servlet is run locally (via my localhost) it works fine and successfully fetches table rows from mysql at tommy.Appreciate if you would please investigate whether any java/Jdbc connector libraries are missing, and/or suggest any workarounds to adjust to changes in configuration that I should explore. I suggest that viewing the servlet log might provide additional information -- my user account is: citisnet warm regards.
Krydos Posted March 19, 2018 Posted March 19, 2018 The only thing that changed on the server was java access and your servlet were removed, and then readded and redeployed. Did you change the servlet that you deployed?
chanders Posted March 19, 2018 Author Posted March 19, 2018 let's try redeploying servlet: cbook.warusername: citisnet
Krydos Posted March 20, 2018 Posted March 20, 2018 Have you deployed it at https://tommy.heliohost.org:2083/frontend/paper_lantern/java/index.live.php ?
chanders Posted March 21, 2018 Author Posted March 21, 2018 Greetings,After some analysis, I have confirmed that the reason for null pointer occurs because the jdbc connection pooling libraries are missing (or not loaded) in tomcat. This probably occurred after the crash and restore of tommy. Please check tomcat library directory for the missing connection pooling libraries and restore them. This should fix the null pointer issues for those who are using connection pooling in jdbc. please confirm this finding and restore the connection pooling library in tomcat. warm regards.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now