Jump to content
Changes to the Jaspersoft community edition download ×

NumberFormatException for float type

2005 IR Help

Recommended Posts

By: hammad - hammad4u

NumberFormatException for float type

2004-11-07 11:06


i have a one filed kilometer of type float in db2. when i sun the report it throws exception. if there are no value in db for this field then report generaes sucessfully. If anybody has some idea about this plz help. Thanx.



dori.jasper.engine.JRException: Unable to get value for field 'ORDERKILOMETER' of class 'java.lang.Float'

at java.lang.Throwable.<init>(Throwable.java)

at java.lang.Throwable.<init>(Throwable.java)

at com.transit.ejb.exceptions.TransitApplicationException.<init>(TransitApplicationException.java:38)

at transitweb.actions.EditImportExportDispatchAction.importExportForMonth(EditImportExportDispatchAction.java:105)

at java.lang.reflect.AccessibleObject.invokeImpl(Native Method)

at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)

at java.lang.reflect.Method.invoke(Method.java)

Caused by:


java.lang.NumberFormatException: 1,230000E+001

at java.lang.Throwable.<init>(Throwable.java)

at java.lang.Throwable.<init>(Throwable.java)

at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java)

at java.lang.Float.valueOf(Float.java:181)

at java.lang.Float.<init>(Float.java:263)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...