Spectrum NIM Server Customizations page showing "error occurred at line: 96

book

Article ID: 144275

calendar_today

Updated On:

Products

CA eHealth CA Spectrum

Issue/Introduction

We are trying to use the NIM Server running on Spectrum OC server to update the custom fields. When I click on Customizations, it is not listing the options instead showing the errors that point to issue with the customize.jsp file.

An error occurred at line: 96 in the jsp file: /ui/customize.jsp

The type new Comparator<Property>(){} must implement the inherited abstract method Comparator<Property>.reversed()

93:     }

94:

95:     if(mdrFields!=null){

96:             Collections.sort(mdrFields, new Comparator<Property>() {

97:         public int compare(Property s1,Property s2) {

98:               if(s1.getName() != null && s2.getName() != null) {

99:                   return s1.getName().compareTo(s2.getName());



Stacktrace:

        at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)

        at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)

        at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:490)

        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)

        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)

        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)

        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660)

        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)

        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)

        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)

        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)


Jan 28, 2020 4:41:29 AM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet [jsp] in context with path [/ca-nim-sm] threw exception [Unable to compile class for JSP:

 

Cause

An old version of java jdk is installed on the server.

Environment

Release : 10.2

Component : Spectrum Core / SpectroSERVER

Resolution

Remove the old instance of the jdk.  Spectrum and NIM support java jdk 1.8.  After removing the old instance of java, rebuild NIM:

1.  Move the $Spectrum\tomcat\webapps\ca-nim-sm to an area outside of the Spectrum install.
2.  Stop and restart tomcat.  When it starts, it will redeploy the ca-nim-sm.war which rebuilds NIM.