Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015638 | Openbravo ERP | 01. General setup | public | 2011-01-13 12:06 | 2011-02-28 22:53 |
|
Reporter | jonalegriaesarte | |
Assigned To | adrianromero | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 2.50MP25 | |
Target Version | 2.50MP27 | Fixed in Version | 2.50MP27 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0015638: When you create a lot of organizations assigned to a role, the processes do not work |
Description | When you create a lot of organizations assigned to a role, the processes do not work |
Steps To Reproduce | - Create 400 organizations assigned to a role.
- Identify in Openbravo ERP with this role
- Financial Management || Accounting || Setup || Fiscal Calendar
- Create a new calendar
- Year
- Launch "Create Periods" process.
- Error "ORA-01461: can bind a LONG value only for insert into a LONG column " appears |
Proposed Solution | The problem is in org.openbravo.scheduling.ProcessRunner, because it tries to store all the organizations separated by commas in the database.
Probably the solution is just to change the type of the column OB_CONTEXT of the table AD_PROCESS_REQUEST from VARCHAR(4000) to LONG |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | defect | 0015940 | | closed | adrianromero | When you create a lot of organizations assigned to a role, the processes do not work |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2011-01-13 12:06 | jonalegriaesarte | New Issue | |
2011-01-13 12:06 | jonalegriaesarte | Assigned To | => adrianromero |
2011-01-13 12:06 | jonalegriaesarte | Modules | => Core |
2011-01-13 12:06 | jonalegriaesarte | OBNetwork customer | => Yes |
2011-01-13 12:07 | jonalegriaesarte | Issue Monitored: networkb | |
2011-02-07 10:37 | jonalegriaesarte | Note Added: 0034065 | |
2011-02-07 10:47 | jonalegriaesarte | Note Added: 0034066 | |
2011-02-07 12:27 | adrianromero | Proposed Solution updated | |
2011-02-09 13:27 | adrianromero | Target Version | 2.50MP26 => 2.50MP27 |
2011-02-10 16:35 | adrianromero | Status | new => scheduled |
2011-02-10 16:35 | adrianromero | fix_in_branch | => pi |
2011-02-10 16:35 | adrianromero | Type | defect => backport |
2011-02-10 16:35 | adrianromero | fix_in_branch | pi => |
2011-02-10 16:36 | adrianromero | Issue cloned | 0015940 |
2011-02-10 16:36 | adrianromero | Relationship added | blocks 0015940 |
2011-02-16 12:05 | hgbot | Checkin | |
2011-02-16 12:05 | hgbot | Note Added: 0034224 | |
2011-02-16 12:05 | hgbot | Status | scheduled => resolved |
2011-02-16 12:05 | hgbot | Resolution | open => fixed |
2011-02-16 12:05 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.50/rev/9679d1715f3b0913838c2cb5d3472eaec8fbe497 [^] |
2011-02-16 12:22 | adrianromero | Note Added: 0034226 | |
2011-02-28 20:06 | jonalegriaesarte | Note Added: 0034447 | |
2011-02-28 20:06 | jonalegriaesarte | Status | resolved => closed |
2011-02-28 20:06 | jonalegriaesarte | Fixed in Version | => 2.50MP27 |
2011-02-28 22:53 | dalsasua | Note Added: 0034449 | |
Notes |
|
(0034065)
|
jonalegriaesarte
|
2011-02-07 10:37
|
|
The same problem occurs when trying to schedule a new process. The error is:
ERROR
org.openbravo.scheduling.ProcessRequestData - SQL error in query: UPDATE
AD_Process_Request SET Updatedby = ?, AD_User_ID = ?, Status = substr(?, 1,
60), Channel = substr(?, 1, 20), Previous_Fire_Time = TO_TIMESTAMP(?, ?),
Next_Fire_Time = TO_TIMESTAMP(?, ?), Scheduled_Finish = TO_TIMESTAMP(?, ?),
Ob_Context = ? WHERE AD_Process_Request_ID =
?Exception:java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column " appears
So the problem is the same, because the process is trying to update a value in Ob_Context column bigger that the column size (because of the big amount of organizations) |
|
|
(0034066)
|
jonalegriaesarte
|
2011-02-07 10:47
|
|
This second problem is in org.openbravo.scheduling.ProcessMonitor in line
ProcessRequestData.update(getConnection(), ctx.getUser(), ctx.getUser(), SCHEDULED, bundle
.getChannel().toString(), null, null, null, null, ctx.toString(), trigger.getName());
the problem is in parameter ctx.toString() |
|
|
(0034224)
|
hgbot
|
2011-02-16 12:05
|
|
Repository: erp/stable/2.50
Changeset: 9679d1715f3b0913838c2cb5d3472eaec8fbe497
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Feb 16 12:03:08 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/9679d1715f3b0913838c2cb5d3472eaec8fbe497 [^]
Fixes issue 0015638: When you create a lot of organizations assigned to a role, the processes do not work
It has been modified the type of the OB_CONTEXT column to CLOB
---
M src-db/database/model/tables/AD_PROCESS_REQUEST.xml
---
|
|
|
|
* Testing the issue
Follow the steps to test and verify that the process can be executed. Test also that processes can be scheduled too.
* Other areas affected.
Areas related to the execution of processes can be affected. There must be reviewed all different areas. |
|
|
(0034447)
|
jonalegriaesarte
|
2011-02-28 20:06
|
|
|
|
|
Verified with > 500 organizations |
|