You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacopo Cappellato (JIRA)" <ji...@apache.org> on 2014/12/22 16:07:13 UTC
[jira] [Commented] (OFBIZ-5925) Pack order flow is broken
[ https://issues.apache.org/jira/browse/OFBIZ-5925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255810#comment-14255810 ]
Jacopo Cappellato commented on OFBIZ-5925:
------------------------------------------
The problem is probably caused by the code in ShipmentServices.java that does:
{code} if (shippableItemInfo != null) {
for (Map<String, Object> itemMap: shippableItemInfo) {
// add the item sizes
BigDecimal itemSize = (BigDecimal) itemMap.get("size");
if (itemSize != null) {
shippableItemSizes.add(itemSize);
}{code}
The "size" field is not part of OrderItemShipGroupAssoc entity and this is the reason for the error; before just fixing the above code we should check all the calls to calcShipmentCostEstimate and specifically what is passed in the field shippableItemInfo; if any of them (as I suspect) is passing list of GenericValues that are not OrderItemShipGroupAssoc we should change the above code by checking the type of GenericValues before getting the size field.
> Pack order flow is broken
> -------------------------
>
> Key: OFBIZ-5925
> URL: https://issues.apache.org/jira/browse/OFBIZ-5925
> Project: OFBiz
> Issue Type: Bug
> Components: order
> Reporter: Deepak Dixit
> Priority: Blocker
>
> Pack order flow is broken, its throwing error
> {code}
> [java] org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/facility/ShipmentScreens.xml#PackOrder]: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/facility/CommonScreens.xml#main-decorator]: org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service [calcShipmentCostEstimate] threw an unexpected exception/errororg.ofbiz.service.GenericServiceException: Service [calcShipmentCostEstimate] target threw an unexpected exception (The field name (or key) [size] is not valid for entity [OrderItemAndShipGroupAssoc].) (Service [calcShipmentCostEstimate] target threw an unexpected exception (The field name (or key) [size] is not valid for entity [OrderItemAndShipGroupAssoc].)) (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service [calcShipmentCostEstimate] threw an unexpected exception/errororg.ofbiz.service.GenericServiceException: Service [calcShipmentCostEstimate] target threw an unexpected exception (The field name (or key) [size] is not valid for entity [OrderItemAndShipGroupAssoc].) (Service [calcShipmentCostEstimate] target threw an unexpected exception (The field name (or key) [size] is not valid for entity [OrderItemAndShipGroupAssoc].))) (Error rendering screen [component://product/widget/facility/CommonScreens.xml#main-decorator]: org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service [calcShipmentCostEstimate] threw an unexpected exception/errororg.ofbiz.service.GenericServiceException: Service [calcShipmentCostEstimate] target threw an unexpected exception (The field name (or key) [size] is not valid for entity [OrderItemAndShipGroupAssoc].) (Service [calcShipmentCostEstimate] target threw an unexpected exception (The field name (or key) [size] is not valid for entity [OrderItemAndShipGroupAssoc].)) (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service [calcShipmentCostEstimate] threw an unexpected exception/errororg.ofbiz.service.GenericServiceException: Service [calcShipmentCostEstimate] target threw an unexpected exception (The field name (or key) [size] is not valid for entity [OrderItemAndShipGroupAssoc].) (Service [calcShipmentCostEstimate] target threw an unexpected exception (The field name (or key) [size] is not valid for entity [OrderItemAndShipGroupAssoc].))))
> {code}
> This error occured due to recent fix in GenericEntity.get(). Need to fix the pack order flow.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)