SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 50525: During the accept/respond stage of a form-based assessment in SAS® Enterprise GRC, an "exception occurred processing JSP" error might be displayed

DetailsHotfixAboutRate It

When you use form-based assessments in the SAS Enterprise GRC web application, the following error message might be displayed during the accept/respond stage:

   org.apache.jasper.JasperException: An exception occurred processing JSP 
   page /tiles/CSA/assessment/ratingsSummary/ratingsSummaryEditor.jsp at line 107

   104:             </c:if>
   105:             
   106:             <%-- render the screen --%>
   107:             <cpb:screen readOnly="<%= model.isReadOnly() %>" />
   108: 
   109:          </mon:Content>
   110:       </html:form>

   Stacktrace:
   at org.apache.jasper.servlet.JspServletWrapper.handleJspException
   (JspServletWrapper.java:518)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
   (ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter
   ....
   ....
   Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: 
   org.apache.jasper.JasperException: Unable to compile class for JSP: 

In the application server log file, this message appears:

   An error occurred at line: 32 in the jsp file:
   /tiles/CSA/assessment/ratingsSummary/RatingsSummaryTableComponent.jsp
   Syntax error, parameterized types are only available if source level is 5.0
   29:    final ComponentFieldRenderer.ComponentInfo componentInfo =
   30:       ComponentFieldRenderer.getComponentInfo(request);
   31:    
   32:    Map<String,Object> params = componentInfo.getField().getParameters(uiContext);
   33:    
   34:    boolean showClose = true;
   35:    if (params.get(RatingsSummaryAsblTableComponent.PARAM_SHOW_CLOSE) != null)

The error messages are caused by the application server's jsp compiler when the compiler version is prior to JDK 5. The resolution of the problem depends on your application server. Here are examples showing how to resolve it for WebSphere and JBoss:

  • For WebSphere
    Edit the web module file WEB-INF/ibm-web-ext.xmi to change its JSP compiler options. Set the “jdkSourceLevel” to “15”:
          <jspAttributes xmi:id="JSPAttribute_1" name="jdkSourceLevel"  value="15"/>
    
  • For JBboss
    Update the file <JBOSS_HOME>/server/<serverName>/deploy/jboss-web.deployer/conf/web.xml. Add the following compilerSourceVM and compilerTargetVM parameters to the JSP Servlet:
          <init-param>
              <param-name>compilerSourceVM</param-name>
              <param-value>1.5</param-value>
          </init-param>
    
          <init-param>
              <param-name>compilerTargetVM</param-name>
              <param-value>1.5</param-value>
          </init-param>
    


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise GRCMicrosoft® Windows® for x644.3
Microsoft Windows 8 Enterprise 32-bit4.3
Microsoft Windows 8 Enterprise x644.3
Microsoft Windows 8 Pro 32-bit4.3
Microsoft Windows 8 Pro x644.3
Microsoft Windows 95/984.3
Microsoft Windows 2000 Advanced Server4.3
Microsoft Windows 2000 Datacenter Server4.3
Microsoft Windows 2000 Server4.3
Microsoft Windows 2000 Professional4.3
Microsoft Windows NT Workstation4.3
Microsoft Windows Server 2003 Datacenter Edition4.3
Microsoft Windows Server 2003 Enterprise Edition4.3
Microsoft Windows Server 2003 Standard Edition4.3
Microsoft Windows Server 2003 for x644.3
Microsoft Windows Server 20084.3
Microsoft Windows Server 2008 R2 for x644.3
Microsoft Windows Server 2008 for x644.3
Microsoft Windows Server 2012 Datacenter4.3
Microsoft Windows Server 2012 Std4.3
Microsoft Windows XP Professional4.3
Windows 7 Enterprise 32 bit4.3
Windows 7 Enterprise x644.3
Windows 7 Home Premium 32 bit4.3
Windows 7 Home Premium x644.3
Windows 7 Professional 32 bit4.3
Windows 7 Professional x644.3
Windows 7 Ultimate 32 bit4.3
Windows 7 Ultimate x644.3
Windows Millennium Edition (Me)4.3
Windows Vista4.3
Windows Vista for x644.3
64-bit Enabled AIX4.3
64-bit Enabled Solaris4.3
HP-UX IPF4.3
Linux for x644.3
Solaris for x644.3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.