Exception thrown during include of /common/menubar-common.jsp
search cancel

Exception thrown during include of /common/menubar-common.jsp

book

Article ID: 279597

calendar_today

Updated On: 02-21-2024

Products

Network Observability Spectrum

Issue/Introduction

A fresh install produced the following exception in the catalina.out log

 

Issue: Multiple OneClicks generating  the following exception. Log files are growing really large.

WARN  org.apache.struts2.components.Include - Exception thrown during include of /common/menubar-common.jsp

<snip>

Caused by: java.lang.NullPointerException
    at org.apache.jsp.common.menubar_002dcommon_jsp._jspService(menubar_002dcommon_jsp.java:251) ~[?:?]
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) ~[jasper.jar:9.0.82]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) ~[servlet-api.jar:4.0.FR]
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466) ~[jasper.jar:9.0.82]
    ... 128 more

Environment

DxNetOps Spectrum 23.3.4.0.8

Resolution

 This menubar-common.jsp file is responsible for displaying the below highlighted section in OneClick Administration page:

 This menubar-common.jsp file is included in $SPECROOT\tomcat\webapps\spectrum\console\console-header-common.jsp

Edit this console-header-common.jsp file and make the following change and validate:

               Change the above highlighted section FROM:

               <td>

                   <s:include value="/common/menubar-common.jsp"></s:include>

               </td>

 

               TO:

 

               <td>

                   <jsp:include page="/common/menubar-common.jsp" flush="true" />

               </td>

 

After saving the console-header-common.jsp file do he following:
 
1. Stop tomcat service
- See the following documentation if you need help with that: https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/23-3/administrating/oneclick-administration/oneclick-web-server-administration/start-and-stop-the-oneclick-web-server-from-the-command-line.html

2. Delete the contents of tomcat/work directory, start tomcat and Launch Spectrum Administration page and validate if this warning exception message is still appearing in the logs.

a. Stop the Spectrum Tomcat Service

b. Delete the $SPECROOT/tomcat/work folder


3. Start tomcat service
- from #1: https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/23-3/administrating/oneclick-administration/oneclick-web-server-administration/start-and-stop-the-oneclick-web-server-from-the-command-line.html

4. Launch spectrum administration page and validate if this warning exception message is still appearing in the logs.
- It should not be thee