Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0019989 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | critical | have not tried | 2012-03-09 09:16 | 2012-04-01 20:39 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 4fdfa4d1c5ba | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Oracle | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0019989: Having active alerts, application doesn't work in Oracle | |||||||
Description | Using Oracle, if there are active alert rules, after login an error message is shown and the application is not loaded. This is what appears in openbravo.log ERROR org.openbravo.client.kernel.KernelServlet - Error executing action org.openbravo.client.application.AlertActionHandler error: java.lang.ClassCastException: java.lang.Long cannot be cast to java.math.BigInteger java.lang.IllegalStateException: java.lang.ClassCastException: java.lang.Long cannot be cast to java.math.BigInteger at org.openbravo.client.application.AlertActionHandler.execute(AlertActionHandler.java:128) The problem is caused because in executed SQL count(*) is converted to BigInteger when using PostgreSQL whereas it is a Long when in Oracle. | |||||||
Steps To Reproduce | -Set an alert rule as active -Relog in the application -> Error is shown | |||||||
Tags | Regression QA | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0046217) alostale (manager) 2012-03-09 09:17 |
Bug introduced by 0019985 because it was not tested in Oracle, assuming it would behave in the same way in both DBs. |
(0046222) alostale (manager) 2012-03-09 11:23 |
This fix should be no risky. Test plan: same as for 0019958 including both Oracle and PG. |
(0046223) hgbot (developer) 2012-03-09 11:24 |
Repository: erp/devel/pi Changeset: 4fdfa4d1c5ba42558a2ecd03f3e5708ba708691b Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Fri Mar 09 11:23:03 2012 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/4fdfa4d1c5ba42558a2ecd03f3e5708ba708691b [^] fixed bug 19989: Having active alerts, application doesn't work in Oracle SQL query creted with OBDal.getInstance().getSession().createSQLQuery returns for count(*) a Long object in Oracle and a BigInteger in PostgreSQL causing casting problems. It has been replaced by a PreparedStatement. --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java --- |
(0047076) hudsonbot (developer) 2012-04-01 20:39 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/640de9acc2d5 [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2012-03-09 09:16 | alostale | New Issue | |
2012-03-09 09:16 | alostale | Assigned To | => alostale |
2012-03-09 09:16 | alostale | Modules | => Core |
2012-03-09 09:16 | alostale | Relationship added | related to 0019985 |
2012-03-09 09:17 | alostale | Note Added: 0046217 | |
2012-03-09 09:18 | alostale | Tag Attached: Regression QA | |
2012-03-09 09:59 | alostale | Relationship added | has duplicate 0019990 |
2012-03-09 11:23 | alostale | Note Added: 0046222 | |
2012-03-09 11:24 | hgbot | Checkin | |
2012-03-09 11:24 | hgbot | Note Added: 0046223 | |
2012-03-09 11:24 | hgbot | Status | new => resolved |
2012-03-09 11:24 | hgbot | Resolution | open => fixed |
2012-03-09 11:24 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4fdfa4d1c5ba42558a2ecd03f3e5708ba708691b [^] |
2012-03-16 16:12 | marvintm | Status | resolved => closed |
2012-04-01 20:39 | hudsonbot | Checkin | |
2012-04-01 20:39 | hudsonbot | Note Added: 0047076 |
Copyright © 2000 - 2009 MantisBT Group |