Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0034563 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 04. Warehouse management | major | always | 2016-11-17 15:41 | 2016-12-16 18:39 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | Sanjota | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 3.0PR17Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | d8bca1491fa6 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | aferraz | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0034563: Index: 0, Size: 0 error when launching Costing Migration Process | |||||||
Description | Index: 0, Size: 0 error when launching Costing Migration Process | |||||||
Steps To Reproduce | As system admin role: Install the 3.0MP12.2 version Upgrade it to pi Note: I need to launch the following command as the Costing Algorithms were not present in the system after recompiling it: ant apply.module -DforceRefData=true ant smartbuild As group admin roles: Create 2016 year and periods for all the legal with accounting organizations in the system Open them As system admin role: Launch the Costing Migration process Check it launches a warning that there are transactions without cost Set as inactive the 'Products with transactions without available cost on date.' alert Launch the Costing Migration process again Check the 'Index: 0, Size: 0 ' error message is shown and the log shows: ERROR org.openbravo.costing.CostingMigrationProcess - Index: 0, Size: 0 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at org.hibernate.collection.PersistentBag.get(PersistentBag.java:446) at org.openbravo.costing.CostingMigrationProcess.calculateCosts(CostingMigrationProcess.java:515) at org.openbravo.costing.CostingMigrationProcess.createRules(CostingMigrationProcess.java:470) at org.openbravo.costing.CostingMigrationProcess.execute(CostingMigrationProcess.java:124) at org.openbravo.erpCommon.ad_actionButton.ActionButtonJava_Responser.process64B3FF29AC174F4B94538BD0A3CE1CD3(ActionButtonJava_Responser.java:2732) at org.openbravo.erpCommon.ad_actionButton.ActionButtonJava_Responser.doPost(ActionButtonJava_Responser.java:273) | |||||||
Proposed Solution | The problem is in the following piece of code: MaterialTransaction trx = icl.getMaterialMgmtMaterialTransactionList().get(0); the record in the m_transaction table associated to the m_inventoryline is not available | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0091839) Sanjota (developer) 2016-11-25 13:15 |
Create new instance (application with 3.0MP12.2 version) Upgrade it to pi -hg pull -u Build instance - ant smartbuild -Dlocal=no -Dforce=true Note: I need to launch the following command as the Costing Algorithms were not present in the system after recompiling it: ant apply.module -DforceRefData=true ant smartbuild As group admin roles: Create 2016 year and periods for all the legal with accounting organizations in the system Open them As system admin role: Launch the Costing Migration process Check it launches a warning that there are transactions without cost Set as inactive the 'Products with transactions without available cost on date.' alert Launch the Costing Migration process again Observe that the process runs successfully(without any error). |
(0091969) hgbot (developer) 2016-12-01 14:44 |
Repository: erp/devel/pi Changeset: d8bca1491fa673bef625cc2978885f1ee6e20f30 Author: Sanjota <sanjota.nelagi <at> promantia.com> Date: Fri Nov 25 17:37:41 2016 +0530 URL: http://code.openbravo.com/erp/devel/pi/rev/d8bca1491fa673bef625cc2978885f1ee6e20f30 [^] Fixes issue 34563: NPE issue in Costing Migration Process Resolved "Index: 0, Size: 0" error when launching Costing Migration process. --- M src/org/openbravo/costing/CostingMigrationProcess.java --- |
(0091972) aferraz (manager) 2016-12-01 14:46 |
Code review + Testing OK |
(0092676) hudsonbot (developer) 2016-12-16 18: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/dc8bf00badd0 [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2016-11-17 15:41 | ngarcia | New Issue | |
2016-11-17 15:41 | ngarcia | Assigned To | => Triage Finance |
2016-11-17 15:41 | ngarcia | Modules | => Core |
2016-11-17 15:41 | ngarcia | Resolution time | => 1481151600 |
2016-11-17 15:41 | ngarcia | Triggers an Emergency Pack | => No |
2016-11-17 15:43 | ngarcia | Relationship added | blocks 0034564 |
2016-11-17 15:44 | ngarcia | Issue Monitored: networkb | |
2016-11-18 09:32 | aferraz | Assigned To | Triage Finance => Sanjota |
2016-11-21 06:44 | Sanjota | Status | new => scheduled |
2016-11-25 13:15 | Sanjota | Note Added: 0091839 | |
2016-12-01 09:58 | aferraz | Relationship added | related to 0034662 |
2016-12-01 14:44 | hgbot | Checkin | |
2016-12-01 14:44 | hgbot | Note Added: 0091969 | |
2016-12-01 14:44 | hgbot | Status | scheduled => resolved |
2016-12-01 14:44 | hgbot | Resolution | open => fixed |
2016-12-01 14:44 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d8bca1491fa673bef625cc2978885f1ee6e20f30 [^] |
2016-12-01 14:46 | aferraz | Review Assigned To | => aferraz |
2016-12-01 14:46 | aferraz | Note Added: 0091972 | |
2016-12-01 14:46 | aferraz | Status | resolved => closed |
2016-12-01 14:46 | aferraz | Fixed in Version | => 3.0PR17Q1 |
2016-12-16 18:39 | hudsonbot | Checkin | |
2016-12-16 18:39 | hudsonbot | Note Added: 0092676 |
Copyright © 2000 - 2009 MantisBT Group |