By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,395 Members | 2,524 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,395 IT Pros & Developers. It's quick & easy.

numberformatException when i convert from string to decimal

P: n/a
I got a numberformatException when i convert from string to decimal how to resolve it
Expand|Select|Wrap|Line Numbers
  1. java.lang.NumberFormatException
  2.     at java.math.BigDecimal.<init>(BigDecimal.java:455)
  3.     at java.math.BigDecimal.<init>(BigDecimal.java:724)
  4.     at org.openbravo.erpCommon.ad_reports.Hierarchical_trial_balance_report.printPagePDF(Hierarchical_trial_balance_report.java:550)
  5.     at org.openbravo.erpCommon.ad_reports.Hierarchical_trial_balance_report.doPost(Hierarchical_trial_balance_report.java:164)
  6.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  7.     at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:224)
  8.     at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:330)
  9.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  10.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  11.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  12.     at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
  13.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  14.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  15.     at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
  16.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  17.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  18.     at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:79)
  19.     at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
  20.     at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:85)
  21.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  22.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  23.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  24.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  25.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  26.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  27.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  28.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  29.     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  30.     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  31.     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  32.     at java.lang.Thread.run(Thread.java:619)
Oct 11 '10 #1
Share this Question
Share on Google+
1 Reply


Dheeraj Joshi
Expert 100+
P: 1,123
We can not make out what's wrong with the code and why this exception is thrown. Please post the code which is causing this exception.

Regards
Dheeraj Joshi
Oct 12 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.