[jira] [Commented] (OFBIZ-5587) Error when add product to sales order

2014-03-20 Thread Jacopo Cappellato (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13941429#comment-13941429
 ] 

Jacopo Cappellato commented on OFBIZ-5587:
--

This is not a bug but a configuration issue.
The cause of the error is explained by this sentence (difficult to find because 
it is buried in the huge and ugly stack trace that OFBiz generates):

ProductStore with id has Y for oneInventoryFacility but inventoryFacilityId is 
empty, not checking available inventory

This means that when you have setup your product store you didn't specify a 
facility id (the warehouse where the inventory is located).


 Error when add product to sales order
 -

 Key: OFBIZ-5587
 URL: https://issues.apache.org/jira/browse/OFBIZ-5587
 Project: OFBiz
  Issue Type: Bug
  Components: order
Reporter: nguyenthang

 Error appear when add a product to sales order:
 In form Order Items:
 Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][defaultShipmentBoxTypeId,null()][depthUomId,null()][description,null()][detailImageUrl,null()][detailScreen,null()][diameterUomId,null()][facilityId,null()][fixedAmount,null()][heightUomId,null()][inShippingBox,N(java.lang.String)][includeInPromotions,null()][internalName,olbiusProduct(java.lang.String)][introductionDate,null()][inventoryMessage,null()][isVariant,N(java.lang.String)][isVirtual,N(java.lang.String)][largeImageUrl,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2014-03-13
  14:23:48.0(java.sql.Timestamp)][lastUpdatedStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][lastUpdatedTxStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][longDescription,null()][lotIdFilledIn,Allowed(java.lang.String)][manufacturerPartyId,null()][mediumImageUrl,null()][orderDecimalQuantity,null()][originGeoId,null()][originalImageUrl,null()][piecesIncluded,null()][priceDetailText,null()][primaryProductCategoryId,null()][productDepth,null()][productDiameter,null()][productHeight,null()][productId,olbiusTestProduct(java.lang.String)][productName,null()][productRating,3.00(java.math.BigDecimal)][productTypeId,FINISHED_GOOD(java.lang.String)][productWeight,null()][productWidth,null()][quantityIncluded,null()][quantityUomId,null()][ratingTypeEnum,PRDR_MAX(java.lang.String)][releaseDate,null()][requireAmount,null()][requireInventory,null()][requirementMethodEnumId,null()][reserv2ndPPPerc,null()][reservMaxPersons,null()][reservNthPPPerc,null()][returnable,null()][salesDiscWhenNotAvail,null()][salesDiscontinuationDate,null()][shippingDepth,null()][shippingHeight,null()][shippingWidth,null()][smallImageUrl,null()][supportDiscontinuationDate,null()][taxable,null()][virtualVariantMethodEnum,null()][weight,null()][weightUomId,null()][widthUomId,null()]
  with arguments of types 
 [java.lang.String,null,java.util.LinkedList,java.lang.Boolean,] The 
 problematic instruction: -- == assignment: 
 itemProductAssocList=cartLine.getProduct().getRelated(MainProductAssoc, 
 null, Static[org.ofbiz.base.util.UtilMisc].toList(productAssocTypeId, 
 sequenceNum), false)?if_exists [on line 222, column 15 in 
 component://order/webapp/ordermgr/entry/cart/showcartitems.ftl] -- 
 Java backtrace for programmers: -- 
 freemarker.template.TemplateModelException: Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 

[jira] [Commented] (OFBIZ-5587) Error when add product to sales order

2014-03-20 Thread nguyenthang (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13941481#comment-13941481
 ] 

nguyenthang commented on OFBIZ-5587:


thanks Jacopo! 
It work! 
But I think we should be create a message to informed this error for clearer 
and not confuse like that.
If you interested in with message problem, discussed in this thread: 
http://ofbiz.135035.n4.nabble.com/Discussion-How-to-customize-messages-in-ofbiz-td4649370.html

 Error when add product to sales order
 -

 Key: OFBIZ-5587
 URL: https://issues.apache.org/jira/browse/OFBIZ-5587
 Project: OFBiz
  Issue Type: Bug
  Components: order
Reporter: nguyenthang
Assignee: Jacopo Cappellato

 Error appear when add a product to sales order:
 In form Order Items:
 Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][defaultShipmentBoxTypeId,null()][depthUomId,null()][description,null()][detailImageUrl,null()][detailScreen,null()][diameterUomId,null()][facilityId,null()][fixedAmount,null()][heightUomId,null()][inShippingBox,N(java.lang.String)][includeInPromotions,null()][internalName,olbiusProduct(java.lang.String)][introductionDate,null()][inventoryMessage,null()][isVariant,N(java.lang.String)][isVirtual,N(java.lang.String)][largeImageUrl,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2014-03-13
  14:23:48.0(java.sql.Timestamp)][lastUpdatedStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][lastUpdatedTxStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][longDescription,null()][lotIdFilledIn,Allowed(java.lang.String)][manufacturerPartyId,null()][mediumImageUrl,null()][orderDecimalQuantity,null()][originGeoId,null()][originalImageUrl,null()][piecesIncluded,null()][priceDetailText,null()][primaryProductCategoryId,null()][productDepth,null()][productDiameter,null()][productHeight,null()][productId,olbiusTestProduct(java.lang.String)][productName,null()][productRating,3.00(java.math.BigDecimal)][productTypeId,FINISHED_GOOD(java.lang.String)][productWeight,null()][productWidth,null()][quantityIncluded,null()][quantityUomId,null()][ratingTypeEnum,PRDR_MAX(java.lang.String)][releaseDate,null()][requireAmount,null()][requireInventory,null()][requirementMethodEnumId,null()][reserv2ndPPPerc,null()][reservMaxPersons,null()][reservNthPPPerc,null()][returnable,null()][salesDiscWhenNotAvail,null()][salesDiscontinuationDate,null()][shippingDepth,null()][shippingHeight,null()][shippingWidth,null()][smallImageUrl,null()][supportDiscontinuationDate,null()][taxable,null()][virtualVariantMethodEnum,null()][weight,null()][weightUomId,null()][widthUomId,null()]
  with arguments of types 
 [java.lang.String,null,java.util.LinkedList,java.lang.Boolean,] The 
 problematic instruction: -- == assignment: 
 itemProductAssocList=cartLine.getProduct().getRelated(MainProductAssoc, 
 null, Static[org.ofbiz.base.util.UtilMisc].toList(productAssocTypeId, 
 sequenceNum), false)?if_exists [on line 222, column 15 in 
 component://order/webapp/ordermgr/entry/cart/showcartitems.ftl] -- 
 Java backtrace for programmers: -- 
 freemarker.template.TemplateModelException: Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 

[jira] [Commented] (OFBIZ-5587) Error when add product to sales order

2014-03-20 Thread Jacopo Cappellato (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13941502#comment-13941502
 ] 

Jacopo Cappellato commented on OFBIZ-5587:
--

Thanks for the confirmation!
I agree that the edit product store screen (but this is true with several 
other screens) should be enhanced to provide more information about the fields 
being edited, including warning messages about missing information that could 
be relevant if you need some of the workflows.


 Error when add product to sales order
 -

 Key: OFBIZ-5587
 URL: https://issues.apache.org/jira/browse/OFBIZ-5587
 Project: OFBiz
  Issue Type: Bug
  Components: order
Reporter: nguyenthang
Assignee: Jacopo Cappellato

 Error appear when add a product to sales order:
 In form Order Items:
 Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][defaultShipmentBoxTypeId,null()][depthUomId,null()][description,null()][detailImageUrl,null()][detailScreen,null()][diameterUomId,null()][facilityId,null()][fixedAmount,null()][heightUomId,null()][inShippingBox,N(java.lang.String)][includeInPromotions,null()][internalName,olbiusProduct(java.lang.String)][introductionDate,null()][inventoryMessage,null()][isVariant,N(java.lang.String)][isVirtual,N(java.lang.String)][largeImageUrl,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2014-03-13
  14:23:48.0(java.sql.Timestamp)][lastUpdatedStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][lastUpdatedTxStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][longDescription,null()][lotIdFilledIn,Allowed(java.lang.String)][manufacturerPartyId,null()][mediumImageUrl,null()][orderDecimalQuantity,null()][originGeoId,null()][originalImageUrl,null()][piecesIncluded,null()][priceDetailText,null()][primaryProductCategoryId,null()][productDepth,null()][productDiameter,null()][productHeight,null()][productId,olbiusTestProduct(java.lang.String)][productName,null()][productRating,3.00(java.math.BigDecimal)][productTypeId,FINISHED_GOOD(java.lang.String)][productWeight,null()][productWidth,null()][quantityIncluded,null()][quantityUomId,null()][ratingTypeEnum,PRDR_MAX(java.lang.String)][releaseDate,null()][requireAmount,null()][requireInventory,null()][requirementMethodEnumId,null()][reserv2ndPPPerc,null()][reservMaxPersons,null()][reservNthPPPerc,null()][returnable,null()][salesDiscWhenNotAvail,null()][salesDiscontinuationDate,null()][shippingDepth,null()][shippingHeight,null()][shippingWidth,null()][smallImageUrl,null()][supportDiscontinuationDate,null()][taxable,null()][virtualVariantMethodEnum,null()][weight,null()][weightUomId,null()][widthUomId,null()]
  with arguments of types 
 [java.lang.String,null,java.util.LinkedList,java.lang.Boolean,] The 
 problematic instruction: -- == assignment: 
 itemProductAssocList=cartLine.getProduct().getRelated(MainProductAssoc, 
 null, Static[org.ofbiz.base.util.UtilMisc].toList(productAssocTypeId, 
 sequenceNum), false)?if_exists [on line 222, column 15 in 
 component://order/webapp/ordermgr/entry/cart/showcartitems.ftl] -- 
 Java backtrace for programmers: -- 
 freemarker.template.TemplateModelException: Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 

[jira] [Commented] (OFBIZ-5587) Error when add product to sales order

2014-03-20 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13941515#comment-13941515
 ] 

Jacques Le Roux commented on OFBIZ-5587:


Thang,

Maybe you could create a new Improvement Jira issue with the requirements from 
what you spotted like here?

 Error when add product to sales order
 -

 Key: OFBIZ-5587
 URL: https://issues.apache.org/jira/browse/OFBIZ-5587
 Project: OFBiz
  Issue Type: Bug
  Components: order
Reporter: nguyenthang
Assignee: Jacopo Cappellato

 Error appear when add a product to sales order:
 In form Order Items:
 Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][defaultShipmentBoxTypeId,null()][depthUomId,null()][description,null()][detailImageUrl,null()][detailScreen,null()][diameterUomId,null()][facilityId,null()][fixedAmount,null()][heightUomId,null()][inShippingBox,N(java.lang.String)][includeInPromotions,null()][internalName,olbiusProduct(java.lang.String)][introductionDate,null()][inventoryMessage,null()][isVariant,N(java.lang.String)][isVirtual,N(java.lang.String)][largeImageUrl,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2014-03-13
  14:23:48.0(java.sql.Timestamp)][lastUpdatedStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][lastUpdatedTxStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][longDescription,null()][lotIdFilledIn,Allowed(java.lang.String)][manufacturerPartyId,null()][mediumImageUrl,null()][orderDecimalQuantity,null()][originGeoId,null()][originalImageUrl,null()][piecesIncluded,null()][priceDetailText,null()][primaryProductCategoryId,null()][productDepth,null()][productDiameter,null()][productHeight,null()][productId,olbiusTestProduct(java.lang.String)][productName,null()][productRating,3.00(java.math.BigDecimal)][productTypeId,FINISHED_GOOD(java.lang.String)][productWeight,null()][productWidth,null()][quantityIncluded,null()][quantityUomId,null()][ratingTypeEnum,PRDR_MAX(java.lang.String)][releaseDate,null()][requireAmount,null()][requireInventory,null()][requirementMethodEnumId,null()][reserv2ndPPPerc,null()][reservMaxPersons,null()][reservNthPPPerc,null()][returnable,null()][salesDiscWhenNotAvail,null()][salesDiscontinuationDate,null()][shippingDepth,null()][shippingHeight,null()][shippingWidth,null()][smallImageUrl,null()][supportDiscontinuationDate,null()][taxable,null()][virtualVariantMethodEnum,null()][weight,null()][weightUomId,null()][widthUomId,null()]
  with arguments of types 
 [java.lang.String,null,java.util.LinkedList,java.lang.Boolean,] The 
 problematic instruction: -- == assignment: 
 itemProductAssocList=cartLine.getProduct().getRelated(MainProductAssoc, 
 null, Static[org.ofbiz.base.util.UtilMisc].toList(productAssocTypeId, 
 sequenceNum), false)?if_exists [on line 222, column 15 in 
 component://order/webapp/ordermgr/entry/cart/showcartitems.ftl] -- 
 Java backtrace for programmers: -- 
 freemarker.template.TemplateModelException: Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][defaultShipmentBoxTypeId,null()][depthUomId,null()][description,null()][detailImageUrl,null()][detailScreen,null()][diameterUomId,null()][facilityId,null()][fixedAmount,null()][heightUomId,null()][inShippingBox,N(java.lang.String)][includeInPromotions,null()][internalName,olbiusProduct(java.lang.String)][introductionDate,null()][inventoryMessage,null()][isVariant,N(java.lang.String)][isVirtual,N(java.lang.String)][largeImageUrl,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2014-03-13
  14:23:48.0(java.sql.Timestamp)][lastUpdatedStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][lastUpdatedTxStamp,2014-03-13 
 

[jira] [Commented] (OFBIZ-5587) Error when add product to sales order

2014-03-20 Thread Rong Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13941525#comment-13941525
 ] 

Rong Nguyen commented on OFBIZ-5587:


Hi Jacques,
He has been posted before: https://issues.apache.org/jira/browse/OFBIZ-5582
End user can not understand technical exceptions(sql exception, java 
exception,..), can anyone create a wiki about the way to display message(ftl, 
groove, java, service, minilang) when an error occur or is there any 
suggestions to solve it by easiest way?

 Error when add product to sales order
 -

 Key: OFBIZ-5587
 URL: https://issues.apache.org/jira/browse/OFBIZ-5587
 Project: OFBiz
  Issue Type: Bug
  Components: order
Reporter: nguyenthang
Assignee: Jacopo Cappellato

 Error appear when add a product to sales order:
 In form Order Items:
 Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][defaultShipmentBoxTypeId,null()][depthUomId,null()][description,null()][detailImageUrl,null()][detailScreen,null()][diameterUomId,null()][facilityId,null()][fixedAmount,null()][heightUomId,null()][inShippingBox,N(java.lang.String)][includeInPromotions,null()][internalName,olbiusProduct(java.lang.String)][introductionDate,null()][inventoryMessage,null()][isVariant,N(java.lang.String)][isVirtual,N(java.lang.String)][largeImageUrl,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2014-03-13
  14:23:48.0(java.sql.Timestamp)][lastUpdatedStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][lastUpdatedTxStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][longDescription,null()][lotIdFilledIn,Allowed(java.lang.String)][manufacturerPartyId,null()][mediumImageUrl,null()][orderDecimalQuantity,null()][originGeoId,null()][originalImageUrl,null()][piecesIncluded,null()][priceDetailText,null()][primaryProductCategoryId,null()][productDepth,null()][productDiameter,null()][productHeight,null()][productId,olbiusTestProduct(java.lang.String)][productName,null()][productRating,3.00(java.math.BigDecimal)][productTypeId,FINISHED_GOOD(java.lang.String)][productWeight,null()][productWidth,null()][quantityIncluded,null()][quantityUomId,null()][ratingTypeEnum,PRDR_MAX(java.lang.String)][releaseDate,null()][requireAmount,null()][requireInventory,null()][requirementMethodEnumId,null()][reserv2ndPPPerc,null()][reservMaxPersons,null()][reservNthPPPerc,null()][returnable,null()][salesDiscWhenNotAvail,null()][salesDiscontinuationDate,null()][shippingDepth,null()][shippingHeight,null()][shippingWidth,null()][smallImageUrl,null()][supportDiscontinuationDate,null()][taxable,null()][virtualVariantMethodEnum,null()][weight,null()][weightUomId,null()][widthUomId,null()]
  with arguments of types 
 [java.lang.String,null,java.util.LinkedList,java.lang.Boolean,] The 
 problematic instruction: -- == assignment: 
 itemProductAssocList=cartLine.getProduct().getRelated(MainProductAssoc, 
 null, Static[org.ofbiz.base.util.UtilMisc].toList(productAssocTypeId, 
 sequenceNum), false)?if_exists [on line 222, column 15 in 
 component://order/webapp/ordermgr/entry/cart/showcartitems.ftl] -- 
 Java backtrace for programmers: -- 
 freemarker.template.TemplateModelException: Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 

[jira] [Commented] (OFBIZ-5587) Error when add product to sales order

2014-03-20 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13941566#comment-13941566
 ] 

Jacques Le Roux commented on OFBIZ-5587:


OK, got It, I will answer with more details on dev ML when I will get a chance. 
To begin have a look at framework/common/webcommon/includes/messages.ftl

 Error when add product to sales order
 -

 Key: OFBIZ-5587
 URL: https://issues.apache.org/jira/browse/OFBIZ-5587
 Project: OFBiz
  Issue Type: Bug
  Components: order
Reporter: nguyenthang
Assignee: Jacopo Cappellato

 Error appear when add a product to sales order:
 In form Order Items:
 Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][defaultShipmentBoxTypeId,null()][depthUomId,null()][description,null()][detailImageUrl,null()][detailScreen,null()][diameterUomId,null()][facilityId,null()][fixedAmount,null()][heightUomId,null()][inShippingBox,N(java.lang.String)][includeInPromotions,null()][internalName,olbiusProduct(java.lang.String)][introductionDate,null()][inventoryMessage,null()][isVariant,N(java.lang.String)][isVirtual,N(java.lang.String)][largeImageUrl,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2014-03-13
  14:23:48.0(java.sql.Timestamp)][lastUpdatedStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][lastUpdatedTxStamp,2014-03-13 
 14:23:48.0(java.sql.Timestamp)][longDescription,null()][lotIdFilledIn,Allowed(java.lang.String)][manufacturerPartyId,null()][mediumImageUrl,null()][orderDecimalQuantity,null()][originGeoId,null()][originalImageUrl,null()][piecesIncluded,null()][priceDetailText,null()][primaryProductCategoryId,null()][productDepth,null()][productDiameter,null()][productHeight,null()][productId,olbiusTestProduct(java.lang.String)][productName,null()][productRating,3.00(java.math.BigDecimal)][productTypeId,FINISHED_GOOD(java.lang.String)][productWeight,null()][productWidth,null()][quantityIncluded,null()][quantityUomId,null()][ratingTypeEnum,PRDR_MAX(java.lang.String)][releaseDate,null()][requireAmount,null()][requireInventory,null()][requirementMethodEnumId,null()][reserv2ndPPPerc,null()][reservMaxPersons,null()][reservNthPPPerc,null()][returnable,null()][salesDiscWhenNotAvail,null()][salesDiscontinuationDate,null()][shippingDepth,null()][shippingHeight,null()][shippingWidth,null()][smallImageUrl,null()][supportDiscontinuationDate,null()][taxable,null()][virtualVariantMethodEnum,null()][weight,null()][weightUomId,null()][widthUomId,null()]
  with arguments of types 
 [java.lang.String,null,java.util.LinkedList,java.lang.Boolean,] The 
 problematic instruction: -- == assignment: 
 itemProductAssocList=cartLine.getProduct().getRelated(MainProductAssoc, 
 null, Static[org.ofbiz.base.util.UtilMisc].toList(productAssocTypeId, 
 sequenceNum), false)?if_exists [on line 222, column 15 in 
 component://order/webapp/ordermgr/entry/cart/showcartitems.ftl] -- 
 Java backtrace for programmers: -- 
 freemarker.template.TemplateModelException: Method public java.util.List 
 org.ofbiz.entity.GenericValue.getRelated(java.lang.String,java.util.Map,java.util.List,boolean)
  throws org.ofbiz.entity.GenericEntityException threw an exception when 
 invoked on 
 [GenericEntity:Product][amountUomTypeId,null()][autoCreateKeywords,null()][billOfMaterialLevel,0(java.lang.Long)][brandName,null()][chargeShipping,null()][comments,null()][configId,null()][createdByUserLogin,admin(java.lang.String)][createdDate,2014-03-13
  11:32:21.0(java.sql.Timestamp)][createdStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][createdTxStamp,2014-03-13 
 11:32:21.0(java.sql.Timestamp)][defaultShipmentBoxTypeId,null()][depthUomId,null()][description,null()][detailImageUrl,null()][detailScreen,null()][diameterUomId,null()][facilityId,null()][fixedAmount,null()][heightUomId,null()][inShippingBox,N(java.lang.String)][includeInPromotions,null()][internalName,olbiusProduct(java.lang.String)][introductionDate,null()][inventoryMessage,null()][isVariant,N(java.lang.String)][isVirtual,N(java.lang.String)][largeImageUrl,null()][lastModifiedByUserLogin,admin(java.lang.String)][lastModifiedDate,2014-03-13
  14:23:48.0(java.sql.Timestamp)][lastUpdatedStamp,2014-03-13