Openbravo Issue Tracking System - Modules
View Issue Details
0039356ModulesAdvanced Warehouse Operationspublic2018-09-26 18:412018-09-27 12:30
ngarcia 
vmromanos 
urgentmajoralways
closedno change required 
5
 
 
vmromanos
0039356: Session is closed error when issuing partial sales order line with attribute set and without reservation (automatic task)
Session is closed error when issuing partial sales order line with attribute set and without reservation (automatic task)

Note: the issue is not reproducible in our latest version as Hibernate upgrade has solved it. It should be backported to 18Q3

The 39355 issue should not be solved to reproduce this issue
Using AWO Sampledata:

Create a new product
Set an Attribute Set to it
Add a sales price list to it

Create a Sales Order for US West
Add 30 units of the previously created product

Create a Physical Inventory Proposal For US West and US West Warehouse
Add 10 units of the product in Food3 storage bin
Set an attribute set value
Process and Create Tasks
Confirm the task

Return to the sales order line and Pick
Confirm the task

Check 10 units of the products have been reserved

Create a Physical Inventory Proposal For US West and US West Warehouse
Open the product selector and select the previously created product line without attribute set
Add 20 units of the product in Food3 storage bin
Set an attribute set value different from the one above
Process and Create Tasks
Confirm the task

Go to Warehouse Operations window and Move the 20 units from Food3 to SHP301 (the storage bin the other 10 units are in)

Go to Warehouse Definition window and change "From SHP, ManConf" to Confirmation = Automatic

Return to the sales order line and Issue
Session is closed! error is shown

The log shows:

ERROR org.openbravo.warehouse.advancedwarehouseoperations.handler.OBAWO_BaseProcessActionHandler - Error in a OBAWO_BaseProcessActionHandler process
org.hibernate.SessionException: Session is closed!
    at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
    at org.hibernate.impl.SessionImpl.getBatcher(SessionImpl.java:305)
    at org.hibernate.impl.AbstractScrollableResults.close(AbstractScrollableResults.java:122)
    at org.openbravo.warehouse.advancedwarehouseoperations.centralbroker.AutoConfirmatorBehaveAsGroupTasks.autoConfirmBehaveAsGroupTaskBasedOnRoutingConfiguration(AutoConfirmatorBehaveAsGroupTasks.java:59)
    at org.openbravo.warehouse.advancedwarehouseoperations.centralbroker.AutoConfirmatorBehaveAsGroupTasks.run(AutoConfirmatorBehaveAsGroupTasks.java:41)
    at org.openbravo.warehouse.advancedwarehouseoperations.centralbroker.InventoryTransactionTypeAlgorithm.executeAlgorithm(InventoryTransactionTypeAlgorithm.java:246)
    at org.openbravo.warehouse.advancedwarehouseoperations.centralbroker.BatchOfTasksGenerator.createBatchOfTasksUsingItt(BatchOfTasksGenerator.java:183)
    at org.openbravo.warehouse.advancedwarehouseoperations.centralbroker.BatchOfTasksGenerator.createBatchOfTasksIfIttAlgorithmInstanceFound(BatchOfTasksGenerator.java:138)
    at org.openbravo.warehouse.advancedwarehouseoperations.centralbroker.BatchOfTasksGenerator.run(BatchOfTasksGenerator.java:104)
    at org.openbravo.warehouse.advancedwarehouseoperations.centralbroker.CentralBroker.doTheStuff(CentralBroker.java:156)
    at org.openbravo.warehouse.advancedwarehouseoperations.centralbroker.CentralBroker.doTheStuff(CentralBroker.java:106)
    at org.openbravo.warehouse.advancedwarehouseoperations.handler.GenerateReceptionOrIssueListFromOrderHandler.exec(GenerateReceptionOrIssueListFromOrderHandler.java:34)
    at org.openbravo.warehouse.advancedwarehouseoperations.handler.OBAWO_BaseProcessActionHandler.doExecute(OBAWO_BaseProcessActionHandler.java:43)
No tags attached.
duplicate of defect 0039122 closed dmiguelez Wrong message: 'Session closed' message autoconfirming an issue task 
Issue History
2018-09-26 18:41ngarciaNew Issue
2018-09-26 18:41ngarciaAssigned To => Triage Finance
2018-09-26 18:41ngarciaResolution time => 1539727200
2018-09-26 18:41ngarciaIssue generated from0039355
2018-09-26 18:42ngarciaDescription Updatedbug_revision_view_page.php?rev_id=17695#r17695
2018-09-26 18:42ngarciaIssue Monitored: networkb
2018-09-27 09:32vmromanosAssigned ToTriage Finance => vmromanos
2018-09-27 09:32vmromanosStatusnew => acknowledged
2018-09-27 11:23martinsdanIssue Monitored: martinsdan
2018-09-27 12:28vmromanosStatusacknowledged => scheduled
2018-09-27 12:28vmromanosReview Assigned To => vmromanos
2018-09-27 12:28vmromanosStatusscheduled => closed
2018-09-27 12:28vmromanosResolutionopen => no change required
2018-09-27 12:30vmromanosRelationship addedduplicate of 0039122
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

There are no notes attached to this issue.