Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

4 Replies

Avatar

Community Advisor

@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-requi...

 

Thanks

Avatar

Level 1

I am using AEM 6.5+,

 

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

Avatar

Correct answer by
Community Advisor

@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

Hey @ShaileshBassi, I've tried that but unfortunately, that didn't work!

 

I think it is related to some dependency on the Exception:

 

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]
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45) [org.apache.sling.engine:2.7.4]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:82) [org.apache.sling.engine:2.7.4]
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:138) [com.day.cq.wcm.cq-wcm-core:5.13.198]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:72) [org.apache.sling.engine:2.7.4]

I tried using mvn dependency:tree to find some of those artifacts but some don't even show up so I am assuming it is part of adobe out of the box.