Updating Maven Build to Use Java 11 - Getting empty Page on Static Templates | Community
Skip to main content
New Participant
July 18, 2022
Solved

Updating Maven Build to Use Java 11 - Getting empty Page on Static Templates

  • July 18, 2022
  • 1 reply
  • 1332 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ShaileshBassi

@aquilavasconcelos1 Some UI issues need a recompilation of the JSPs in order to be resolved. Can you try recompiling the jsp in AEM. For that follow the steps:

Thanks

1 reply

ShaileshBassi
New Participant
July 18, 2022

@aquilavasconcelos1 Can you please confirm which version of AEM you are using with Java 11.

AEM 6.5+ is compatible with Java 11.

Please refer to the issue stating the compatibility for AEM 6.4 or lower with Java 11 - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-3-java-11/m-p/237178

or 

https://experienceleague.adobe.com/docs/experience-manager-64/deploying/introduction/technical-requirements.html?lang=en

 

Thanks

New Participant
July 18, 2022

I am using AEM 6.5+,

 

unnfortunently those links that you shared are just related to AEM 6.3 and AEM 6.4.

ShaileshBassi
ShaileshBassiAccepted solution
New Participant
July 18, 2022

@aquilavasconcelos1 Some UI issues need a recompilation of the JSPs in order to be resolved. Can you try recompiling the jsp in AEM. For that follow the steps:

Thanks