Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
João Heleno
MVP
57
Views
6
Comments
java.lang.NumberFormatException: For input string: "1194.4000244140625"
Question
I've been noticing these strange errors in a production environment running the 5.0 Java version of the platform.
They go like this:
08-12-2012 22:39:23; ;0;9;9;
For input string: "1421.90478515625";java.lang.NumberFormatException: For input string: "1421.90478515625" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.parseInt(Integer.java:499)
at outsystems.hubedition.runtimeplatform.AjaxEventContextInfo.<init>(Unknown Source)
at outsystems.hubedition.runtimeplatform.AjaxEventContextInfo.getAjaxEventContextInfo(Unknown Source)
at outsystems.hubedition.runtimeplatform.HeContext.constructor(Unknown Source)
at outsystems.hubedition.runtimeplatform.HeContext.<init>(Unknown Source)
at outsystems.hubedition.runtimeplatform.AppInfo.getOsContext(Unknown Source)
at outsystems.hubedition.webwidgets.BaseRequestStartupFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextVa...
I haven't identified yet what causes them... seems like a bug in the platform.
Any thoughts on this?
Thanks.
Gonçalo Martins
Staff
Hello João,
The fact that you have a decimal point in your string causes the exception(trying to force a floating-point number into it is going to cause problems).
You should make sure that your input really is an integer (example "
1194
"), or if you actually want to allow decimals then use
double
, for example.
This is not a bug in the platform but a programming problem when you're trying to make that kind of conversion.
Best Regards,
Gonçalo M.
Ricardo Silva
Actually, it *is* a bug in the Platform. Sort of.
Last time we observed it it had to do with the way MSIE10 encodes some of the Ajax attributes it sends to the Agile Platform (as doubles instead of int on other browsers).
Later versions of the Agile Platform do not have this problem, and a fix for 5.0 is pending.
Gonçalo Martins
Staff
Hello Ricardo,
It's really a platform bug?! I didn't understood that because I already had an error like this few years ago when I worked with java..
However, since it's a reported and known platform bug, can you explain a little bit better the cause and the resolution?
Best Regards,
Gonçalo M.
João Heleno
MVP
@Ricardo: Thanks for the reply.
@Gonçalo: Here's what appears in the server.log file:
2012-11-26 00:05:28,247 ERROR [STDERR] (http-0.0.0.0-8443-16)
java.lang.NumberFormatException: For input string: "933.3333740234375"
2012-11-26 00:05:28,249 ERROR [STDERR] (http-0.0.0.0-8443-16) at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
2012-11-26 00:05:28,249 ERROR [STDERR] (http-0.0.0.0-8443-16) at java.lang.Integer.parseInt(Integer.java:458)
2012-11-26 00:05:28,249 ERROR [STDERR] (http-0.0.0.0-8443-16) at java.lang.Integer.parseInt(Integer.java:499)
2012-11-26 00:05:28,249 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.runtimeplatform.AjaxEventContextInfo.<init>(Unknown Source)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.runtimeplatform.AjaxEventContextInfo.getAjaxEventContextInfo(Unknown Source)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.runtimeplatform.HeContext.constructor(Unknown Source)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.runtimeplatform.HeContext.<init>(Unknown Source)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.runtimeplatform.AppInfo.getOsContext(Unknown Source)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.webwidgets.managedbean.WebErrorPage.pageLoad(Unknown Source)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.webwidgets.uicomponent.utils.ComponentUtils.invokeBeanPageLoad(Unknown Source)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.webwidgets.uicomponent.os_controls.PageComponent.encodeBegin(Unknown Source)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
2012-11-26 00:05:28,250 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.webwidgets.BaseRequestStartupFilter.redirectTo(Unknown Source)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.webwidgets.BaseRequestStartupFilter.handleError(Unknown Source)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at outsystems.hubedition.webwidgets.BaseRequestStartupFilter.doFilter(Unknown Source)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:460)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
2012-11-26 00:05:28,251 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2012-11-26 00:05:28,252 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
2012-11-26 00:05:28,252 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
2012-11-26 00:05:28,252 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
2012-11-26 00:05:28,252 ERROR [STDERR] (http-0.0.0.0-8443-16) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
2012-11-26 00:05:28,252 ERROR [STDERR] (http-0.0.0.0-8443-16) at java.lang.Thread.run(Thread.java:662)
Gonçalo Martins
Staff
Ok João..
With this detailed log I can see better your problem and I understand Ricardo's explanation..
Hope the R&D guys can solve this and release a fixed version for it.
João Heleno
MVP
This situation is starting to be a somewhat serious problem with users changing to the new Windows 8/IE10 and not being able to use our application.
Any news regarding the release of the fix for 5.0?
Thanks.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...