java.lang.NumberFormatException

ZK-Tracker | kolodz | 2 years ago
  1. 0

    When a decimalbox is bind to a double and this double have the value NaN. It's generate an exception : 014-06-27 15:50:45.566:WARN:oejs.DefaultServlet:EXCEPTION java.lang.NumberFormatException at java.math.BigDecimal.<init>(BigDecimal.java:470) at java.math.BigDecimal.<init>(BigDecimal.java:739) at org.zkoss.lang.Classes.coerce(Classes.java:1309) at org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:89) at org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:173) at org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:374) at org.zkoss.bind.impl.BinderImpl.loadComponentProperties0(BinderImpl.java:2106) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2083) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:2074) at org.zkoss.bind.BindComposer$BinderKeeper$Loader.load(BindComposer.java:492) at org.zkoss.bind.BindComposer$BinderKeeper.loadComponentForAllBinders(BindComposer.java:471) at org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:180) at org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:578) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:880) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:442) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:356) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103) at org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:572) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:744) This make the page in error 500 : HTTP ERROR 500 Problem accessing /. Reason: Server Error The decimalbox don't have a specified format. Not be able to display one value shouldn't blok the all page.

    ZK-Tracker | 2 years ago | kolodz
    java.lang.NumberFormatException
  2. 0

    When a decimalbox is bind to a double and this double have the value NaN. It's generate an exception : 014-06-27 15:50:45.566:WARN:oejs.DefaultServlet:EXCEPTION java.lang.NumberFormatException at java.math.BigDecimal.<init>(BigDecimal.java:470) at java.math.BigDecimal.<init>(BigDecimal.java:739) at org.zkoss.lang.Classes.coerce(Classes.java:1309) at org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:89) at org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:173) at org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:374) at org.zkoss.bind.impl.BinderImpl.loadComponentProperties0(BinderImpl.java:2106) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2083) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086) at org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:2074) at org.zkoss.bind.BindComposer$BinderKeeper$Loader.load(BindComposer.java:492) at org.zkoss.bind.BindComposer$BinderKeeper.loadComponentForAllBinders(BindComposer.java:471) at org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:180) at org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:578) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:880) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:442) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:356) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103) at org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:572) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:744) This make the page in error 500 : HTTP ERROR 500 Problem accessing /. Reason: Server Error The decimalbox don't have a specified format. Not be able to display one value shouldn't blok the all page.

    ZK-Tracker | 2 years ago | kolodz
    java.lang.NumberFormatException
  3. 0

    Problem with Joda.BigMoney

    GitHub | 4 years ago | nemercry
    java.lang.NumberFormatException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. marcbouvierdav 1 times, last 2 months ago
  2. Jaytee 7 times, last 6 months ago
16 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    No message provided

    at java.math.BigDecimal.<init>()
  2. Java RT
    BigDecimal.<init>
    1. java.math.BigDecimal.<init>(BigDecimal.java:470)
    2. java.math.BigDecimal.<init>(BigDecimal.java:739)
    2 frames
  3. The ZKoss Common Library
    Classes.coerce
    1. org.zkoss.lang.Classes.coerce(Classes.java:1309)
    1 frame
  4. ZK Bind
    BindComposer.doAfterCompose
    1. org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:89)
    2. org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:173)
    3. org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:374)
    4. org.zkoss.bind.impl.BinderImpl.loadComponentProperties0(BinderImpl.java:2106)
    5. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2083)
    6. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    7. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    8. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    9. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    10. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    11. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    12. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    13. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    14. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    15. org.zkoss.bind.impl.BinderImpl.loadComponent0(BinderImpl.java:2086)
    16. org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:2074)
    17. org.zkoss.bind.BindComposer$BinderKeeper$Loader.load(BindComposer.java:492)
    18. org.zkoss.bind.BindComposer$BinderKeeper.loadComponentForAllBinders(BindComposer.java:471)
    19. org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:180)
    19 frames
  5. ZK Kernel
    DHtmlLayoutServlet.doGet
    1. org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:578)
    2. org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:880)
    3. org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826)
    4. org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735)
    5. org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797)
    6. org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757)
    7. org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699)
    8. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:442)
    9. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:356)
    10. org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215)
    11. org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136)
    11 frames
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    2 frames
  7. Jetty
    DefaultServlet.doGet
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
    5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
    8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    11. org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276)
    12. org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)
    13. org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:572)
    13 frames
  8. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    2 frames
  9. Jetty
    AsyncHttpConnection.handle
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
    5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
    8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
    12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
    13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    14. org.eclipse.jetty.server.Server.handle(Server.java:370)
    15. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    16. org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
    17. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
    18. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
    19. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    20. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    20 frames
  10. GWT dev
    SelectChannelEndPoint$1.run
    1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
    2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
    2 frames
  11. Jetty
    QueuedThreadPool$3.run
    1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    2 frames
  12. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame