Details

    • Type: Bug
    • Status: Deployed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.2.7.19, 5.2.7.43
    • Fix Version/s: 5.2.7.56
    • Labels:
      None
    • Environment:

      Betriebssystem Windows Server 2008 R2 (6.1) 64bit
      Servlet Container Apache Tomcat/8.5.6
      Java 1.8.0_112 (Oracle Corporation) 64bit
      Architecture 64bit

    • Sprint:
      March 2018

      Description

      LSNumber has a problem:

      <cfscript>
      iVal = 234223.423;
      writeDump(lsnumberFormat(iVal, "_,____.__"));
      </cfscript>
      

      worked under 5.2.7.18 and doesn't work above 5.2.7.18
      (same with writeDump(lsnumberFormat(iVal, "9,999.99"))

      Lucee 5.2.7.19-SNAPSHOT Error (java.lang.NumberFormatException)
      Message java.lang.NumberFormatException
      Stacktrace The Error Occurred in
      D:\Inetpub\wwwroot\Hepatitis-C-Register\Hepatitis-C-Register\lsnum_test.cfm: line 3

         1: <cfscript>
          2: iVal = 234223.423;
          3: writeDump(lsnumberFormat(iVal, "_,___.__"));
          4: </cfscript>
          5:
      

      Java Stacktrace lucee.runtime.exp.NativeException: java.lang.NumberFormatException
      at java.math.BigDecimal.(BigDecimal.java:494)
      at java.math.BigDecimal.(BigDecimal.java:383)
      at java.math.BigDecimal.(BigDecimal.java:806)
      at lucee.runtime.util.NumberFormat.fixDouble(NumberFormat.java:231)
      at lucee.runtime.util.NumberFormat.fixDouble(NumberFormat.java:246)
      at lucee.runtime.util.NumberFormat.format(NumberFormat.java:61)
      at lucee.runtime.functions.international.LSNumberFormat._call(LSNumberFormat.java:59)
      at lucee.runtime.functions.international.LSNumberFormat.call(LSNumberFormat.java:42)
      at hepatitis_c_register990.hepatitis_c_register990.lsnum_test_cfm$cf.call(/Hepatitis-c-register/Hepatitis-C-Register/lsnum_test.cfm:3)
      at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:901)
      at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823)
      at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:64)
      at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:45)
      at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2464)
      at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2454)
      at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2427)
      at lucee.runtime.engine.Request.exe(Request.java:44)
      at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1091)
      at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1039)
      at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
      at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
      at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:476)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      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)
      Caused by: java.lang.NumberFormatException
      ... 43 more

      Timestamp 15.03.18 15:37:24 MEZ

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              Meikelv Michael Vornkahl
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: