Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0019989 | Openbravo ERP | A. Platform | public | 2012-03-09 09:16 | 2012-04-01 20:39 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | immediate | Severity | critical | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
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 |
Proposed Solution | |
Additional Information | |
Tags | Regression QA |
Relationships | related to | defect | 0019985 | 3.0MP10 | closed | alostale | AlertActionHandler response is unnecessary big | has duplicate | defect | 0019990 | | closed | alostale | It is not possible to log in using an Oracle context |
|
Attached Files | |
|
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 | |
Notes |
|
|
Bug introduced by 0019985 because it was not tested in Oracle, assuming it would behave in the same way in both DBs. |
|
|
|
This fix should be no risky.
Test plan: same as for 0019958 including both Oracle and PG. |
|
|
(0046223)
|
hgbot
|
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
---
|
|
|
|
|