473,473 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3332
Dheeraj Joshi
1,123 Recognized Expert Top Contributor
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.