Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0019989
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalhave not tried2012-03-09 09:162012-04-01 20:39
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision4fdfa4d1c5ba
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseOracleJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0019989: Having active alerts, application doesn't work in Oracle

DescriptionUsing 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
TagsRegression QA
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00199853.0MP10 closedalostale AlertActionHandler response is unnecessary big 
has duplicate defect 0019990 closedalostale It is not possible to log in using an Oracle context 

-  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
Powered by Mantis Bugtracker