HTTP Status 500 – Internal Server Error


Type Exception Report

Message java.lang.NullPointerException: Cannot invoke "java.io.File.toURI()" because "base" is null

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: java.lang.NullPointerException: Cannot invoke "java.io.File.toURI()" because "base" is null
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:589)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:327)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	filter.CheckEntry.doFilter(CheckEntry.java:65)
	filter.SetServer.doFilter(SetServer.java:86)

Root Cause

java.lang.NullPointerException: Cannot invoke "java.io.File.toURI()" because "base" is null
	org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:693)
	org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:204)
	org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:545)
	org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:474)
	org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:440)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:598)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:327)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	filter.CheckEntry.doFilter(CheckEntry.java:65)
	filter.SetServer.doFilter(SetServer.java:86)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/9.0.70 (Debian)