2005 IR Help Posted August 27, 2006 Share Posted August 27, 2006 By: hammad - hammad4u NumberFormatException for float type 2004-11-07 11:06 Hi 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. hammad ---------------------------------------------------- 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now