Updating Maven Build to Use Java 11 - Getting empty Page on Static Templates
Hey Guys,
I am currently updating my build to use java 11 and the build itself was a success, I had to change some dependencies to match java 11 release but the build was good at the end.
But I got a problem when rendering pages that used JSP, I got an empty page and get an error in the logs, down bellow you can see the stack trace:
javax.servlet.ServletException: Failed executing script /libs/cq/Page/Page.jsp: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script body.jsp
at org.apache.sling.servlets.resolver.bundle.tracker.internal.BundledScriptServlet.service(BundledScriptServlet.java:83) [org.apache.sling.servlets.resolver:2.7.12]
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:570) [org.apache.sling.engine:2.7.4]
......
......
......
Caused by: java.lang.NullPointerException: null
at org.apache.jsp.apps.calix.components.page.base.header__002e__jsp._jspService(header__002e__jsp.java:294)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [org.apache.sling.scripting.jsp:2.5.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [org.apache.felix.http.servlet-api:1.1.2]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:496) [org.apache.sling.scripting.jsp:2.5.0]
... 216 common frames omitted
I also updated the dependencies related to the group org.apache sling, the ones I could update. But I got the error above anyways. Do you guys have any idea of what exactly could be causing this Exception?
Also if any of you guys wanna se the full stack trace I will upload it somewhere so you guys can see.