473,418 Members | 2,075 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

numberformatException when i convert from string to decimal

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
1 3329
Dheeraj Joshi
1,123 Expert 1GB
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

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

Similar topics

2
by: Nathan | last post by:
Is there a way to convert a string to a CipherMessage? I am calling a function that decrypts a CipherMessage and returns the value. The only problem is when I want to use an encrypted value stored...
3
by: JenHu | last post by:
Hi all, I have to read from a text file and generate values and insert to database. But first of all, when the text file contains '0000000000', I received a sEfundAmt value = 0D instead of 0.0...
1
by: mdawoodk | last post by:
i am getting error "input string was not in correct format" when converting a string decimal into integer value. code is like this: string strVal = ""; int nVal = 0; strVal = "14.9"; nVal...
2
by: mshahzadali | last post by:
is there any expert who could guide me making a C++ program. I want to convert a Decimal number into a Binary, Octal and a Hexadecimal Number using a C++ Built-in Function(if there exist any).
3
by: JH-PRO | last post by:
Please help! How to convert string to single Here my start values: Dim My_string as string = "29.02" Dim My_single as single = 0.0
3
by: satyakarvvk | last post by:
Hi everybody! Please help me to overcome below runtime exception. Actually it is a simple program on basics. I want to print odd nos upto which the user asks and after printing the task,...
13
by: deepthisoft | last post by:
hai, I want to convert String to int.My coding is like this, rs=stmt.executeQuery("select a from mailtable"); rs.absolute(-1); String id=rs.getString("a"); System.out.println(id);
3
by: Mike Howarth | last post by:
Hi Seem to be having a bit of brainfreeze this evening. Basically I'm reducing an array of prices like so: This gives me a string of '86.00.00' which I am trying to use with decimal...
1
by: prasanna ganesh | last post by:
why i'm getting lang.string.NumberFormatException for input string ""please help me to find solution
1
by: lenora | last post by:
How to convert string to decimal ? input - output 45 - 45.00 45.5 - 45.50 45.51 - 45.51 Thank you in advance
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.