d.donnet Posted October 22, 2014 Posted October 22, 2014 The column is automatically BigDecimal, but not recognized at runtime.What is the component to provide for BigDecimal is found?
hozawa Posted October 22, 2014 Posted October 22, 2014 If you don't need the datatype to be BigDecimal, just change it when reading in the fields. As is in your error message, BigDecimal is a class in Java.math.BigDecimal. Your column "V_VUE_NB_DECIMAL" probably isn't a number.
d.donnet Posted October 23, 2014 Author Posted October 23, 2014 The column is an Oracle NUMBER. ojdbc14.jar AUTOMATICALLY converts a number in java.math.BigDecimal. It is easy to replace java.math.BigDecimal by java.lang.Double in fichier.jrxml, but it is even easier to forget. It would be easier to know how to install the prerequisites for iReport automatically manages java.math.BigDecimal
hozawa Posted October 25, 2014 Posted October 25, 2014 Not too sure about your question. Do you want to modify database datatype to Java datatype mapping? There's such a mapping file in JasperReports Server but are you trying to find such a mapping file for iReports?
d.donnet Posted November 4, 2014 Author Posted November 4, 2014 I distribute the reports that users can change. When fetching columns NUMBER Oracle ojdbc14.jar via iReport 4.51 defined as java.math.BigDecimal these columns, and it is the norm. But when the reports thus generated in our application is used, we find the error "Error 2004: Unable to get value for field 'V_VUE_NB_DECIMAL' of class' java.math.BigDecimal". I am looking to deploy elements in iReports that can RunTime managed the 'java.math.BigDecimal.
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