Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020673Openbravo ERP07. Sales managementpublic2012-06-04 17:272012-06-06 11:05
mirurita 
mirurita 
immediatemajoralways
closedfixed 
20Community Appliance
pi 
3.0MP123.0MP12 
Core
No
0020673: Return From Customer/To Vendor (pick&edit): error when returning a product without attribute set value
When returning a product without attribute set value the process fails.

java.lang.ClassCastException: org.codehaus.jettison.json.JSONObject$Null cannot be cast to java.io.Serializable
    at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:177)
    at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:160)
    at org.openbravo.dal.service.OBDal.get(OBDal.java:274)
    at org.openbravo.common.actionhandler.SRMOPickEditLines.createOrderLines(SRMOPickEditLines.java:117)
1) Go to Return To Vendor window
2) Click on New
   - Org: F&B España - Región Norte
   - Business Partner: Bebidas Alegres, S.L.
3) Click on Pick/Edit Lines
4) Clear the filter
5) Select any line without Attribute Set Value
6) Enter returned quantity
7) Click on Done button
8) Error:
java.lang.ClassCastException: org.codehaus.jettison.json.JSONObject$Null cannot be cast to java.io.Serializable
No tags attached.
png Return_product_no_attributesetvalue.png (62,259) 2012-06-04 17:27
https://issues.openbravo.com/file_download.php?file_id=5275&type=bug
png
Issue History
2012-06-04 17:27miruritaNew Issue
2012-06-04 17:27miruritaAssigned To => mirurita
2012-06-04 17:27miruritaFile Added: Return_product_no_attributesetvalue.png
2012-06-04 17:27miruritaModules => Core
2012-06-05 16:03hgbotCheckin
2012-06-05 16:03hgbotNote Added: 0049626
2012-06-05 16:03hgbotStatusnew => resolved
2012-06-05 16:03hgbotResolutionopen => fixed
2012-06-05 16:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c7615d4c36ac5eeba1d7d0aeb229df9de4c97170 [^]
2012-06-06 11:05psarobeNote Added: 0049641
2012-06-06 11:05psarobeStatusresolved => closed
2012-06-06 11:05psarobeFixed in Version => 3.0MP12

Notes
(0049626)
hgbot   
2012-06-05 16:03   
Repository: erp/devel/pi
Changeset: c7615d4c36ac5eeba1d7d0aeb229df9de4c97170
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Tue Jun 05 15:59:54 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c7615d4c36ac5eeba1d7d0aeb229df9de4c97170 [^]

Fixes issue 20673: RFC/RTV (pick&edit): error product without attribute set instance

---
M src/org/openbravo/common/actionhandler/SRMOPickEditLines.java
---
(0049641)
psarobe   
2012-06-06 11:05   
Works fine