Notes |
|
|
|
|
|
When I retested this issue in 2.40 oracle I have got an error message "literal does not match format string". (Refer the screenshot attached)
2.40 postgres works fine with the fix. |
|
|
(0026684)
|
hgbot
|
2010-04-26 15:31
|
|
|
|
|
* Testing of the issue:
To test the issue just follow the steps to reproduce and execute the report with a currency different than EUR. Try to execute the report several times using different "Starting date" and "Ending date" values. The error message should always be similar to: There is no conversion rate defined from (EUR-€) to (USD-$) for date '07-08-2006', Client 'SmallBazaar' and Organization 'Main'.
* Explanation of the changeset that fixes the issue:
There has been modified the File HttpSecureAppServlet.java to get the causeException message instead of the JasperError Exception message. This is because the real message of the exception is in the causeException object.
It has been modified too the report template ReportPurchaseOrder.jrxml adding the function TO_DATE to the date parameters of the report to make the report work properly in Oracle and Postgresql.
* Other areas affected by the changeset:
The changes in the report template only affects to this report. And the changes in HttpSecureAppServlet.java affects to all jasper reports that throw an exception. The change is done the way if the causeException is an SQLException then use the SQLException message. That is the correct message that has to be translated and displayed to the user. In other case it will behave as before. |
|
|
(0026736)
|
sureshbabu
|
2010-04-28 07:52
(edited on: 2010-04-28 08:02) |
|
There is no conversion rate defined from (EUR-€) to (USD-$) for date '07-08-2006', Client 'BigBazaar' and Organization 'Main'. ORA-06512: at "TAD_240_FULL_QA.C_CURRENCY_RATE", line 112 ORA-06512: at "TAD_240_FULL_QA.C_CURRENCY_CONVERT", line 45 ORA-06512: at line 1
Right now in oracle context (2.40) i am getting the above error message if i run the report with out entering from and to date..
If i run the report in postgres context i am getting the expected error message.
There is no conversion rate defined from (EUR-€) to (USD-$) for date '31-03-2006', Client 'BigBazaar' and Organization 'Main'
|
|
|
|
|
|
|
|
|
(0027991)
|
hgbot
|
2010-06-04 14:46
|
|
|
|
|
|
|
|
|
|
|
|