Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0000302 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2008-05-14 17:41 | 2009-03-18 11:01 | |||
Reporter | iperdomo | View Status | public | |||||
Assigned To | anthony_wolski | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 2.40alpha-r2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | -- | ||||
Projection | none | ETA | none | Target Version | 2.40alpha-r2 | |||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.5.0_15 | |||
OS Version | Gentoo Linux 2.6.23-gentoo-r9 | Database version | 8.2.7 | Ant version | 1.7.0 | |||
Product Version | 2.40alpha | SCM revision | 4227 | |||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0000302: Error testing Heartbeat configuration with PostgreSQL database | |||||||
Description | The keyword AS is missing on the sql sentence. A log of the error: ERROR org.openbravo.erpCommon.ad_background.PeriodicHeartbeatData - SQL error in query: select count(distinct u.ad_user_id) from ad_user_roles ur, ad_user u where ur.ad_user_id = u.ad_user_id and ur.isActive = 'Y' and u.isActive = 'Y' and u.password is not nullException:org.postgresql.util.PSQLException: The column name COUNT(DISTINCTU.AD_USER_ID) was not found in this ResultSet. The sql sentences should always include the AS keyword. In this case SELECT count(distinct u.ad_user_id) AS count ... | |||||||
Steps To Reproduce | * Install the application with PostgreSQL database * Enable Heartbeat * Test the configuration | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0000195) anthony_wolski (viewer) 2008-05-15 04:38 |
Ok. |
(0000196) anthony_wolski (viewer) 2008-05-15 04:39 |
Modified sql in PeriodicHeartbeat_data.xsql. Committed revision 4248. select count(distinct u.ad_user_id) AS count from ad_user_roles ur, ad_user u where ur.ad_user_id = u.ad_user_id and ur.isActive = 'Y' and u.isActive = 'Y' and u.password is not null |
(0007691) psarobe (viewer) 2008-06-12 19:21 |
Now it gives this error following those steps: ERROR org.openbravo.erpCommon.ad_background.PeriodicHeartbeatData - SQL error in query: INSERT INTO AD_HEARTBEAT_LOG(AD_HEARTBEAT_LOG_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, SYSTEM_IDENTIFIER, ISHEARTBEATACTIVE, ISPROXYREQUIRED, PROXY_SERVER, PROXY_PORT, ACTIVITY_RATE, COMPLEXITY_RATE, OS, OS_VERSION, DB, DB_VERSION, SERVLET_CONTAINER, SERVLET_CONTAINER_VERSION, WEBSERVER, WEBSERVER_VERSION, OB_VERSION, OB_INSTALLMODE, CODE_REVISION, NUM_REGISTERED_USERS, JAVA_VERSION, ANT_VERSION) VALUES (AD_GET_NEXT_SEQUENCE('AD_Heartbeat_Log', 0), TO_NUMBER(?), TO_NUMBER(?), 'Y', NOW(), 0, NOW(), 0, ?, ?, ?, ?, TO_NUMBER(?), TO_NUMBER(?), TO_NUMBER(?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, TO_NUMBER(?), ?, ?)Exception:org.postgresql.util.PSQLException: ERROR: column "code_revision" is of type numeric but expression is of type character varying |
(0007694) psarobe (viewer) 2008-06-12 19:37 |
Now this bug is not working because bug 575 |
![]() |
|||
Date Modified | Username | Field | Change |
2008-05-14 17:41 | iperdomo | New Issue | |
2008-05-14 17:41 | iperdomo | Assigned To | => anthony_wolski |
2008-05-14 17:41 | iperdomo | OBNetwork customer | => N |
2008-05-15 04:38 | anthony_wolski | Note Added: 0000195 | |
2008-05-15 04:38 | anthony_wolski | Status | new => acknowledged |
2008-05-15 04:38 | anthony_wolski | Status | acknowledged => scheduled |
2008-05-15 04:39 | anthony_wolski | Status | scheduled => resolved |
2008-05-15 04:39 | anthony_wolski | Fixed in Version | => trunk |
2008-05-15 04:39 | anthony_wolski | Resolution | open => fixed |
2008-05-15 04:39 | anthony_wolski | Note Added: 0000196 | |
2008-05-21 18:55 | cromero | Target Version | 2.40 => R2.40alpha r2 |
2008-06-12 19:21 | psarobe | Status | resolved => new |
2008-06-12 19:21 | psarobe | Resolution | fixed => open |
2008-06-12 19:21 | psarobe | Note Added: 0007691 | |
2008-06-12 19:21 | psarobe | Status | new => scheduled |
2008-06-12 19:35 | psarobe | Status | scheduled => resolved |
2008-06-12 19:35 | psarobe | svn_revision | => -- |
2008-06-12 19:35 | psarobe | Resolution | open => fixed |
2008-06-12 19:37 | psarobe | Status | resolved => closed |
2008-06-12 19:37 | psarobe | Note Added: 0007694 | |
2008-06-12 19:37 | psarobe | Fixed in Version | trunk => 2.40alpha r2 |
2009-03-18 11:01 | anonymous | sf_bug_id | 0 => 2691271 |
Copyright © 2000 - 2009 MantisBT Group |