You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Joe Eckard (JIRA)" <ji...@apache.org> on 2009/06/18 20:44:07 UTC

[jira] Issue Comment Edited: (OFBIZ-1172) Order Entry unclear error when no ProductStore set

    [ https://issues.apache.org/jira/browse/OFBIZ-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721405#action_12721405 ] 

Joe Eckard edited comment on OFBIZ-1172 at 6/18/09 11:42 AM:
-------------------------------------------------------------

Right now you will get a null pointer exception from ProductStoreWorker.getStoreCurrencyUomId, which is called during cart creation.

However, if that is fixed it looks like the constructor for ShoppingCart explicitly checks for a null productStoreId and throws an IllegalArgumentException, so it won't make it much farther.

{code}
---- runtime exception report --------------------------------------------------
Problems Processing Event
Exception: java.lang.NullPointerException
Message: null
---- stack trace ---------------------------------------------------------------
java.lang.NullPointerException
org.ofbiz.product.store.ProductStoreWorker.getStoreCurrencyUomId(ProductStoreWorker.java:95)
org.ofbiz.order.shoppingcart.WebShoppingCart.<init>(WebShoppingCart.java:44)
org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject(ShoppingCartEvents.java:821)
org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject(ShoppingCartEvents.java:840)
org.ofbiz.order.shoppingcart.ShoppingCartEvents.initializeOrderEntry(ShoppingCartEvents.java:1386)
{code}

      was (Author: eckardjf):
    Right now you will get a null pointer exception from ProductStoreWorker.getStoreCurrencyUomId, which is called during cart creation.

However, if that is fixed it looks like the constructor for ShoppingCart explicitly checks for a null productStoreId and throws an IllegalArgumentException, so it won't make it much farther.
  
> Order Entry unclear error when no ProductStore set
> --------------------------------------------------
>
>                 Key: OFBIZ-1172
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1172
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: Release Branch 4.0, SVN trunk
>            Reporter: Wickersheimer Jeremy
>            Priority: Minor
>         Attachments: ofbiz-1172.patch
>
>
> I ran into this issue because our staff accidentally removed the ProductStore from the OrderEntry Website. The symptom was an java NPE display when trying to create a Purchase Order.
> Because it took me some time to debug it i wrote a patch to make this behavior more obvious.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.