Notes |
|
|
We are having a problem with database functions errors handling that is preventing us to address an OBN issue.
What we need to do is to get an error message built inside a function in a similar way that we handle messages built within procedures. The message that we get making try and catch in Java to this database function is:
javax.servlet.ServletException: @CODE=0@ERROR: @NoConversionRate@ (EUR-€) @to@ (CNY-¥) @ForDate@ '07-08-2006', @Client@ 'BigBazaar' @And@ @ACCS_AD_ORG_ID_D@ 'Main'.
This is then passed to Utility.translateError function that does not parse it 100% correctly in Oracle and does not parse it at all in PostgreSQL.
Our concern is whether we have to change something in the database function when RAISE EXCEPTION the error or our platform (Utility.translateError) is not capable to parse error messages coming from functions (in the same way it does it from procedure errors). |
|
|
|
Updating priority/severity as this issue kind of blocks the resolution of a obn issue, |
|
|
(0013751)
|
svnbot
|
2009-02-19 16:45
|
|
|
|
(0013766)
|
svnbot
|
2009-02-19 19:55
|
|
Repository: openbravo
Revision: 13429
Author: huehner
Date: 2009-02-19 19:55:39 +0100 (Thu, 19 Feb 2009)
Fixed 5625
Fix showing translated error messages in pl-code which contain @template@ strings on postgresql
---
U trunk/src/org/openbravo/erpCommon/utility/ErrorTextParserPOSTGRE.java
---
https://dev.openbravo.com/websvn/openbravo/?rev=13429&sc=1 [^]
|
|
|
|
The message is still badly parsed in 'Procurement Management > Analysis Tools > Purchase Order Report'. Go this report an select an exotic currency. See screenshots. |
|
|
|
The fix will be commited into the problem even if the cause of note 13782 is independent of this fix (parsing of error messages containing templates was broken for all reports using renderJR). |
|
|
(0013840)
|
svnbot
|
2009-02-20 14:12
|
|
Repository: openbravo
Revision: 13469
Author: huehner
Date: 2009-02-20 14:12:01 +0100 (Fri, 20 Feb 2009)
Fixed 5625
- Fix error reporting in main catch block for all servlets to work with the error translation code.
- Improve logging of the exception handled at that location by also log its stacktrace.
---
U trunk/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
https://dev.openbravo.com/websvn/openbravo/?rev=13469&sc=1 [^]
|
|
|
|
The change did break parsing of error messages returned by running processes (through ad_pinstance) creating the regression reported in 7721. |
|
|
(0013884)
|
svnbot
|
2009-02-22 14:25
|
|
Repository: openbravo
Revision: 13494
Author: huehner
Date: 2009-02-22 14:25:30 +0100 (Sun, 22 Feb 2009)
Fixed 5625
Adjust for second type of callers using different pattern in input string
---
U trunk/src/org/openbravo/erpCommon/utility/ErrorTextParserPOSTGRE.java
---
https://dev.openbravo.com/websvn/openbravo/?rev=13494&sc=1 [^]
|
|
|
|
Getting error message as "There is no conversion rate defined from (EUR-€) to (GWP-$) for date '25-02-2009', Client 'CTS' and Organization 'Pamplona'. "
Retested in context 79.125.56.185/openbravotrunk (postgres) |
|
|
|
Retested in context 79.125.56.185/openbravotrunk |
|