[ ProductStoreWorker.java:101:ERROR] No product store found in request, cannot
set locale!
------------------------------------------------------------------------------------------
Key: OFBIZ-1964
URL: https://issues.apache.org/jira/browse/OFBIZ-1964
Project: OFBiz
Issue Type: Bug
Components: ecommerce, product
Environment: svn 91430
Reporter: BJ Freeman
Priority: Minor
This is a clean db with only a customers Website, ProductStore.
it is not configured to use Ecommerce
I have not traced back to is going thru the Ecommerce controller
The code in the ProductStoreWorker.java
assumes that is info in the request to be able to resolve the product store.
in this type of configuration that is a bad assumption.
So there are two places this needs to be fixed.
1) the ProductStoreWorker.java to cover not having the information.
2) what is ever calling the Ecommerce controller when the Ecommerce is not
being used.
[ BeanShellContainer.java:100:INFO ] Started BeanShell telnet service on 9989,
9990
[ BeanShellContainer.java:101:INFO ] NOTICE: BeanShell service ports are not
secure. Please protect the ports
[ CartEventListener.java:53 :INFO ] No cart to save, doing nothing.
[ControlEventListener.java:101:INFO ] Destroying session:
0528DB49367E57B71C5BD50D958FB7BD.jvm1
[ControlEventListener.java:63 :INFO ] Creating session:
E211B16441F789A8A590E73DB4F132EA.jvm1
[ ControlServlet.java:93 :INFO ] The character encoding of the request is:
[null]. The character encoding we will use for the request and response is:
[ ControlServlet.java:131:INFO ] [[[ViewBlogRss] Servlet Starting, doing
setup- total:0.0,since last(Begin):0.0]]
[ VisitHandler.java:221:INFO ] Found visitorId [10000] in cookie
[ SequenceUtil.java:341:INFO ] Got bank of sequenced IDs for
[Visit]; curSeqId=14500, maxSeqId=14600, bankSize=100
[ ControlServlet.java:196:INFO ] [[[ViewBlogRss] Setup done, doing
Event(s) and View(s)- total:1.125,since last([ViewBlogRss] Ser...):1.125]]
[ UtilXml.java:241:INFO ] XML Read 0.063s:
jndi:/0.0.0.0/ecommerce/WEB-INF/controller.xml
[ ConfigXMLReader.java:622:INFO ] ConfigMap Created: (5) records in 0.016s
[ ConfigXMLReader.java:765:INFO ] HandlerMap Created: (5) view handlers and
(10) request/event handlers in 0.0s
[ ConfigXMLReader.java:378:INFO ] RequestMap Created: (275) records in
0.015s
[ ConfigXMLReader.java:466:INFO ] ViewMap Created: (94) records in 0.0s
[ ProductStoreWorker.java:101:ERROR] No product store found in request, cannot
set locale!
JavaEventHandler.java:97 :ERROR]
---- 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:806)
org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject(ShoppingCartEvents.java:825)
org.ofbiz.order.shoppingcart.ShoppingCartEvents.keepCartUpdated(ShoppingCartEvents.java:887)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.