Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9447

Cannot create a new KSC report

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 20.0.0
    • Fix Version/s: None
    • Component/s: Web UI - Reporting
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Reports -> KSC Reports -> Create News fails with the following stack trace:

      2017-06-19 10:38:18,170 WARN  [qtp919310294-1521] o.e.j.s.HttpChannel: /opennms/KSC/customReport.htm
      javax.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/KSC/customReport.jsp at line 157
      
      154:           <td colspan="3">
      155:             <div class="form-group col-md-12">
      156:               <c:choose>
      157:                 <c:when test="${showTimeSpan}">
      158:                   <c:set var="checked" value="checked"/>
      159:                 </c:when>
      160:                 <c:otherwise>
      
      
      Stacktrace:
              at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:138) ~[jetty-server-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[jetty-server-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.server.Server.handle(Server.java:564) ~[jetty-server-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:318) [jetty-server-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [jetty-server-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) [jetty-io-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:112) [jetty-io-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:261) [jetty-io-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:150) [jetty-io-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:112) [jetty-io-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) [jetty-io-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:122) [jetty-util-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.util.thread.strategy.ExecutingExecutionStrategy.invoke(ExecutingExecutionStrategy.java:58) [jetty-util-9.4.0.v20161208.jar:9.4.0.
      v20161208]
              at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:201) [jetty-util-9.4.0.v20161208.jar:9.4.0.v
      20161208]
              at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:133) [jetty-util-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) [jetty-util-9.4.0.v20161208.jar:9.4.0.v20161208]
              at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) [jetty-util-9.4.0.v20161208.jar:9.4.0.v20161208]
              at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
      Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/KSC/customReport.jsp at line 157
      
      154:           <td colspan="3">
      155:             <div class="form-group col-md-12">
      156:               <c:choose>
      157:                 <c:when test="${showTimeSpan}">
      158:                   <c:set var="checked" value="checked"/>
      159:                 </c:when>
      160:                 <c:otherwise>
      ...
      
      Caused by: javax.el.ELException: Cannot convert Optional[false] of type class java.util.Optional to class java.lang.Boolean
              at org.apache.el.lang.ELSupport.coerceToBoolean(ELSupport.java:276) ~[apache-el-8.5.5.jar:8.0.33]
              at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:538) ~[apache-el-8.5.5.jar:8.0.33]
              at org.apache.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:47) ~[apache-el-8.5.5.jar:8.0.33]
              at javax.el.ELContext.convertToType(ELContext.java:304) ~[apache-el-8.5.5.jar:8.0.33]
              at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) ~[apache-el-8.5.5.jar:8.0.33]
              at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:944) ~[apache-jsp-8.5.5.jar:2.3]
              at org.apache.jsp.WEB_002dINF.jsp.KSC.customReport_jsp._jspx_meth_c_005fwhen_005f2(customReport_jsp.java:885) ~[?:?]
      

      This appears to be caused by the introduction of Optionals in the related objects.

      Other KSC related pages may be broken as a result of these changes too.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ranger Benjamin Reed
              Reporter:
              j-white Jesse White
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: