LSNumber doen't work above 5.2.7.18

Description

LSNumber has a problem:

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

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

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

Activity

Michael Offner 4 April 2018 at 06:49

still having an issue we are working on ...but it should be solved soon

Michael Vornkahl  3 April 2018 at 14:00

Thank you very much!!!!!

Michael Offner 3 April 2018 at 13:00

issue should no longer happen, because we have removed the method "fixDouble" that caused the problem.
That patch did patch an issue caused by Lucee itself. Now we have solved the underlaying problem.

Michael Offner 3 April 2018 at 08:32

FYI changing locale to "de" makes no difference to me, still i cannot reproduce the issue.

Fixed

Details

Assignee

Reporter

Priority

Labels

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 15 March 2018 at 08:45
Updated 11 August 2023 at 08:23
Resolved 4 April 2018 at 10:18