Hi,
I install OFBiz from Seed data. And I set up the Internal Organization, Vendor, Catalog, Store, etc. And link catalog with store. But when I want to create a Purchase Order, an error occurs. I think it is because of missing something in my configuration. So anybody know what is missing? Below is the error message. 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ ProductStoreWorker.java:101:ERROR] No product store found in request, cannot set locale! 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ JavaEventHandler.java:96 :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.( WebShoppingCart.java:44) org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject( ShoppingCartEvents.java:659) org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject( ShoppingCartEvents.java:678) org.ofbiz.order.shoppingcart.ShoppingCartEvents.initializeOrderEntry( ShoppingCartEvents.java:1165) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke( Method.java:324) org.ofbiz.webapp.event.JavaEventHandler.invoke( JavaEventHandler.java:88) org.ofbiz.webapp.event.JavaEventHandler.invoke( JavaEventHandler.java:74) org.ofbiz.webapp.control.RequestHandler.runEvent( RequestHandler.java:410) org.ofbiz.webapp.control.RequestHandler.doRequest( RequestHandler.java:243) org.ofbiz.webapp.control.ControlServlet.doGet( ControlServlet.java:189) org.ofbiz.webapp.control.ControlServlet.doPost( ControlServlet.java:77) javax.servlet.http.HttpServlet.service( HttpServlet.java:615) javax.servlet.http.HttpServlet.service( HttpServlet.java:688) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) java.lang.Thread.run(Thread.java:534) -------------------------------------------------------------------------------- 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ RequestHandler.java:274:ERROR] Request initorderentry caused an error with the following message: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.lang.NullPointerException (null) Thank you! Jason |
Hi Jason
You need to set up an OrderEntry website, thats where the productStore for the order is specified, have a look at the demo site to get the idea. Note the id of the website must match what is specified in the order apps web.xmlfile. Regards Scott On 09/04/07, Jason Wu <[hidden email]> wrote: > > Hi, > I install OFBiz from Seed data. And I set up the Internal Organization, > Vendor, Catalog, Store, etc. And link catalog with store. > But when I want to create a Purchase Order, an error occurs. > I think it is because of missing something in my configuration. > So anybody know what is missing? > > Below is the error message. > 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ > ProductStoreWorker.java:101:ERROR] No product store found in request, > cannot > set locale! > 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ > JavaEventHandler.java:96 :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.( > WebShoppingCart.java:44) > org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject( > ShoppingCartEvents.java:659) > org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject( > ShoppingCartEvents.java:678) > org.ofbiz.order.shoppingcart.ShoppingCartEvents.initializeOrderEntry( > ShoppingCartEvents.java:1165) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke( > Method.java:324) org.ofbiz.webapp.event.JavaEventHandler.invoke( > JavaEventHandler.java:88) org.ofbiz.webapp.event.JavaEventHandler.invoke( > JavaEventHandler.java:74) org.ofbiz.webapp.control.RequestHandler.runEvent > ( > RequestHandler.java:410) org.ofbiz.webapp.control.RequestHandler.doRequest > ( > RequestHandler.java:243) org.ofbiz.webapp.control.ControlServlet.doGet( > ControlServlet.java:189) org.ofbiz.webapp.control.ControlServlet.doPost( > ControlServlet.java:77) javax.servlet.http.HttpServlet.service( > HttpServlet.java:615) javax.servlet.http.HttpServlet.service( > HttpServlet.java:688) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:173) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke( > StandardWrapperValve.java:213) > org.apache.catalina.core.StandardContextValve.invoke( > StandardContextValve.java:178) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > :126) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > :105) > org.apache.catalina.core.StandardEngineValve.invoke( > StandardEngineValve.java:107) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java > :148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection > (Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( > PoolTcpEndpoint.java:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( > LeaderFollowerWorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > ThreadPool.java:684) java.lang.Thread.run(Thread.java:534) > > -------------------------------------------------------------------------------- > > 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ > RequestHandler.java:274:ERROR] > Request initorderentry caused an error with the following message: Error > calling event: org.ofbiz.webapp.event.EventHandlerException: Problems > processing event: java.lang.NullPointerException (null) > > Thank you! > Jason > |
Thank you Scott!
Following your step, it's OK now. Jason 2007/4/9, Scott Gray <[hidden email]>: > > Hi Jason > > You need to set up an OrderEntry website, thats where the productStore for > the order is specified, have a look at the demo site to get the > idea. Note > the id of the website must match what is specified in the order apps > web.xmlfile. > > Regards > Scott > > On 09/04/07, Jason Wu <[hidden email]> wrote: > > > > Hi, > > I install OFBiz from Seed data. And I set up the Internal Organization, > > Vendor, Catalog, Store, etc. And link catalog with store. > > But when I want to create a Purchase Order, an error occurs. > > I think it is because of missing something in my configuration. > > So anybody know what is missing? > > > > Below is the error message. > > 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ > > ProductStoreWorker.java:101:ERROR] No product store found in request, > > cannot > > set locale! > > 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ > > JavaEventHandler.java:96 :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 > .( > > WebShoppingCart.java:44) > > org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject( > > ShoppingCartEvents.java:659) > > org.ofbiz.order.shoppingcart.ShoppingCartEvents.getCartObject( > > ShoppingCartEvents.java:678) > > org.ofbiz.order.shoppingcart.ShoppingCartEvents.initializeOrderEntry( > > ShoppingCartEvents.java:1165) > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) sun.reflect.NativeMethodAccessorImpl.invoke( > > NativeMethodAccessorImpl.java:39) > > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke( > > Method.java:324) org.ofbiz.webapp.event.JavaEventHandler.invoke( > > JavaEventHandler.java:88) org.ofbiz.webapp.event.JavaEventHandler.invoke > ( > > JavaEventHandler.java:74) > org.ofbiz.webapp.control.RequestHandler.runEvent > > ( > > RequestHandler.java:410) > org.ofbiz.webapp.control.RequestHandler.doRequest > > ( > > RequestHandler.java:243) org.ofbiz.webapp.control.ControlServlet.doGet( > > ControlServlet.java:189) org.ofbiz.webapp.control.ControlServlet.doPost( > > ControlServlet.java:77) javax.servlet.http.HttpServlet.service( > > HttpServlet.java:615) javax.servlet.http.HttpServlet.service( > > HttpServlet.java:688) > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > ApplicationFilterChain.java:252) > > org.apache.catalina.core.ApplicationFilterChain.doFilter( > > ApplicationFilterChain.java:173) > > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > ApplicationFilterChain.java:202) > > org.apache.catalina.core.ApplicationFilterChain.doFilter( > > ApplicationFilterChain.java:173) > > org.apache.catalina.core.StandardWrapperValve.invoke( > > StandardWrapperValve.java:213) > > org.apache.catalina.core.StandardContextValve.invoke( > > StandardContextValve.java:178) > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > > :126) > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > > :105) > > org.apache.catalina.core.StandardEngineValve.invoke( > > StandardEngineValve.java:107) > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java > :541) > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java > > :148) > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > :869) > > > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection > > (Http11BaseProtocol.java:664) > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( > > PoolTcpEndpoint.java:527) > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( > > LeaderFollowerWorkerThread.java:80) > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > ThreadPool.java:684) java.lang.Thread.run(Thread.java:534) > > > > > -------------------------------------------------------------------------------- > > > > 2007-04-09 10:02:15,359 (http-0.0.0.0-443-Processor4) [ > > RequestHandler.java:274:ERROR] > > Request initorderentry caused an error with the following message: Error > > calling event: org.ofbiz.webapp.event.EventHandlerException: Problems > > processing event: java.lang.NullPointerException (null) > > > > Thank you! > > Jason > > > |
Free forum by Nabble | Edit this page |