I have an NPE on a Windows 2008 R2 vm guest that seems to be rather annoying and preventing people from using the vm. What's odd is that this wasn't occurring before until I migrated it from Hyper-V to VMware vSphere. It's supposed to load a webapp called 'license' from an MSSQL database called 'license' and apparently didn't function at first because Java was no longer present (had v1.6 and now v1.8). Nevertheless, I installed JRE 1.8.0.66 for use with Tomcat, set the environment variables in a command prompt and then manually started one of the many Apache versions on this host (I just took over this network). This seemed to resolve the issue for the staff and I never heard anything until after a maintenance window did a restart of the host and obviously I didn't make the environment variables persistent.
Now I get an NPE when accessing the host locally, with the following (I can also provide the SQL logs too - which BTW are telling me that a login failed for user 'sa' when I can log in either in mixed or SQL mode with sa just fine. What do you guys suggest I try here? (NPE below and I did look at line 43 of the offending java file listed which just has 'ResultSet rs =null;'
Thx, Brian
type Exception report
message java.lang.NullPointerException
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
java.lang.NullPointerException
org.apache.jsp.licenseAdmin_jsp.displayLicenses(licenseAdmin_jsp.java:43)
org.apache.jsp.licenseAdmin_jsp._jspService(licenseAdmin_jsp.java:325)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)