Dev - inventory errors when raising an order for GZ-1000...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Dev - inventory errors when raising an order for GZ-1000...

Ray Barlow
Hi,

Just testing and came across a problem when creating an order for any
product that does not already have a value in the entity
"InventoryItem". On the default demo data you can use GZ-1000, just
raise an order in ecommerce, you must create a new user or at least use
an account that does not have any backend privileges, which by default a
new user wont.

This is the main error pulled from the list below that shows the service
is failing because the user doesn't have security privileges to create
the InventoryItem entity:
    1181759 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:407:ERROR] Service Error [createInventoryItem]:
Security Error: to run createInventoryItem you must have the
CATALOG_CREATE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission

Any quick fix suggestions for this? Should the service run as "system"?

Ray


-------------------------------------------------------------------------------------------------
1177523 (http-0.0.0.0-8080-Processor3) [      
SequenceUtil.java:263:INFO ] Got bank of sequenced ID
s for [OrderPaymentPreference]; curSeqId=10000, maxSeqId=10010, bankSize=10
1178294 (http-0.0.0.0-8080-Processor3) [      
EntityEcaRule.java:122:INFO ] Running Entity ECA Servi
ce: checkCreateOrderRequirement, triggered by rule on Entity: OrderItem
1178314 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
 total:0.02,since last(Begin):0.02]] - 'entity-default /
checkCreateOrderRequirement'
1181258 (http-0.0.0.0-8080-Processor3) [            
UtilXml.java:242:DEBUG] XML Read 0.05s: file:/U:
/Work/OFBiz/ofbizclean/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServi
ces.xml
1181699 (http-0.0.0.0-8080-Processor3) [            
UtilXml.java:242:DEBUG] XML Read 0.06s: file:/U:
/Work/OFBiz/ofbizclean/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

1181709 (http-0.0.0.0-8080-Processor3) [    TransactionUtil.java:276:WARN ]
---- exception report
----------------------------------------------------------
[TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly;
this stack trace shows where
this is happening:
Exception: java.lang.Exception
Message: null
---- stack trace
---------------------------------------------------------------
java.lang.Exception
org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:276)
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:226)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:697)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:115)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:97)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:218)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:97)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:128)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:568)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:115)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:97)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:218)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:568)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:115)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:97)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.order.order.OrderServices.reserveInventory(OrderServices.java:990)
org.ofbiz.order.order.OrderServices.createOrder(OrderServices.java:923)
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.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.order.shoppingcart.CheckOutHelper.createOrder(CheckOutHelper.java:510)
org.ofbiz.order.shoppingcart.CheckOutEvents.createOrder(CheckOutEvents.java:424)
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:99)
org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:85)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:415)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:251)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
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:258)
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:526)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.jav
a:744)
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)
--------------------------------------------------------------------------------

1181759 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:407:ERROR] Service Error [createInv
entoryItem]: Security Error: to run createInventoryItem you must have
the CATALOG_CREATE, CATALOG_AD
MIN, FACILITY_CREATE, or FACILITY_ADMIN permission
1181759 (http-0.0.0.0-8080-Processor3) [    
TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
backOnly] transaction rollback only not set, rollback only is already set.
1181759 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
 total:0.12,since last(Begin):0.12]] - 'ecommerce / createInventoryItem'
1181769 (http-0.0.0.0-8080-Processor3) [    
TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
backOnly] transaction rollback only not set, rollback only is already set.
1181769 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:407:ERROR] Service Error [reservePr
oductInventoryByFacility]: Security Error: to run createInventoryItem
you must have the CATALOG_CREA
TE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission calling
service createInventoryItem
 in reserveProductInventory
1181769 (http-0.0.0.0-8080-Processor3) [    
TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
backOnly] transaction rollback only not set, rollback only is already set.
1181779 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
 total:0.651,since last(Begin):0.651]] - 'ecommerce /
reserveProductInventoryByFacility'
1181779 (http-0.0.0.0-8080-Processor3) [    
TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
backOnly] transaction rollback only not set, rollback only is already set.
1181779 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:407:ERROR] Service Error [reserveSt
oreInventory]: Security Error: to run createInventoryItem you must have
the CATALOG_CREATE, CATALOG_
ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission calling service
createInventoryItem in reserveP
roductInventory calling service reserveProductInventoryByFacility in
reserveStoreInventory
1181779 (http-0.0.0.0-8080-Processor3) [    
TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
backOnly] transaction rollback only not set, rollback only is already set.
1181809 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
 total:0.681,since last(Begin):0.681]] - 'ecommerce / reserveStoreInventory'
1181809 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:407:ERROR] Service Error [storeOrde
r]: The product Tiny Gizmo with ID GZ-1000 is no longer in stock. Please
try reducing the quantity o
r removing the product from this order.
1181809 (http-0.0.0.0-8080-Processor3) [    TransactionUtil.java:243:ERROR]
---- exception report
----------------------------------------------------------
[TransactionUtil.rollback]
Exception: java.lang.Exception
Message: Stack Trace
---- stack trace
---------------------------------------------------------------
java.lang.Exception: Stack Trace
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:242)
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:224)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:411)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.order.shoppingcart.CheckOutHelper.createOrder(CheckOutHelper.java:510)
org.ofbiz.order.shoppingcart.CheckOutEvents.createOrder(CheckOutEvents.java:424)
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:99)
org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:85)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:415)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:251)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
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:258)
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:526)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.jav
a:744)
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)
--------------------------------------------------------------------------------

1182530 (http-0.0.0.0-8080-Processor3) [    
TransactionUtil.java:253:INFO ] [TransactionUtil.rollbac
k] transaction rolled back
1182530 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
 total:6.77,since last(Begin):6.77]] - 'ecommerce / storeOrder'
1183021 (http-0.0.0.0-8080-Processor3) [    
RequestHandler.java:282:ERROR] Request processorder cau
sed an error with the following message: Did not complete the order, the
following occurred:The prod
uct Tiny Gizmo with ID GZ-1000 is no longer in stock. Please try
reducing the quantity or removing t
he product from this order.
1183061 (http-0.0.0.0-8080-Processor3) [            
UtilXml.java:242:DEBUG] XML Read 0.03s: jndi:/0.
0.0.0/ecommerce/WEB-INF/controller.xml
1183061 (http-0.0.0.0-8080-Processor3) [    
ConfigXMLReader.java:552:INFO ] ConfigMap Created: (5) r
ecords in 0.0s
1183071 (http-0.0.0.0-8080-Processor3) [    
ConfigXMLReader.java:622:INFO ] HandlerMap Created: (2)
records in 0.0s
1183081 (http-0.0.0.0-8080-Processor3) [    
ConfigXMLReader.java:302:INFO ] RequestMap Created: (195
) records in 0.01s
1183081 (http-0.0.0.0-8080-Processor3) [    
ConfigXMLReader.java:411:INFO ] ViewMap Created: (67) re
cords in 0.0s
1183081 (http-0.0.0.0-8080-Processor3) [    
RequestHandler.java:394:INFO ] [RequestHandler.doReques
t]: Response is a view.
1183081 (http-0.0.0.0-8080-Processor3) [    
RequestHandler.java:546:INFO ] servletName=control, vie
w=checkoutreview
1183151 (http-0.0.0.0-8080-Processor3) [            
UtilXml.java:242:DEBUG] XML Read 0.06s: file:/U:
/Work/OFBiz/ofbizclean/applications/ecommerce/widget/OrderScreens.xml
1183151 (http-0.0.0.0-8080-Processor3) [      
ScreenFactory.java:127:INFO ] Got 19 screens in 0.06s
from:
file:/U:/Work/OFBiz/ofbizclean/applications/ecommerce/widget/OrderScreens.xml
1184133 (http-0.0.0.0-8080-Processor3) [            
UtilXml.java:242:DEBUG] XML Read 0.021s: file:/U
:/Work/OFBiz/ofbizclean/applications/ecommerce/widget/CommonScreens.xml

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - inventory errors when raising an order for GZ-1000...

BJ Freeman
that is a products and manufacturing process.
Not sure why create inventory item, is being call from ECommerce.



Ray sent the following on 3/31/06 3:26 AM:

> Hi,
>
> Just testing and came across a problem when creating an order for any
> product that does not already have a value in the entity
> "InventoryItem". On the default demo data you can use GZ-1000, just
> raise an order in ecommerce, you must create a new user or at least use
> an account that does not have any backend privileges, which by default a
> new user wont.
>
> This is the main error pulled from the list below that shows the service
> is failing because the user doesn't have security privileges to create
> the InventoryItem entity:
>     1181759 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:407:ERROR] Service Error [createInventoryItem]:
> Security Error: to run createInventoryItem you must have the
> CATALOG_CREATE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission
>
> Any quick fix suggestions for this? Should the service run as "system"?
>
> Ray
>
>
> -------------------------------------------------------------------------------------------------
> 1177523 (http-0.0.0.0-8080-Processor3) [      
> SequenceUtil.java:263:INFO ] Got bank of sequenced ID
> s for [OrderPaymentPreference]; curSeqId=10000, maxSeqId=10010, bankSize=10
> 1178294 (http-0.0.0.0-8080-Processor3) [      
> EntityEcaRule.java:122:INFO ] Running Entity ECA Servi
> ce: checkCreateOrderRequirement, triggered by rule on Entity: OrderItem
> 1178314 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>  total:0.02,since last(Begin):0.02]] - 'entity-default /
> checkCreateOrderRequirement'
> 1181258 (http-0.0.0.0-8080-Processor3) [            
> UtilXml.java:242:DEBUG] XML Read 0.05s: file:/U:
> /Work/OFBiz/ofbizclean/applications/product/script/org/ofbiz/product/inventory/InventoryReserveServi
> ces.xml
> 1181699 (http-0.0.0.0-8080-Processor3) [            
> UtilXml.java:242:DEBUG] XML Read 0.06s: file:/U:
> /Work/OFBiz/ofbizclean/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
>
> 1181709 (http-0.0.0.0-8080-Processor3) [    TransactionUtil.java:276:WARN ]
> ---- exception report
> ----------------------------------------------------------
> [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly;
> this stack trace shows where
> this is happening:
> Exception: java.lang.Exception
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.Exception
> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:276)
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:226)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:697)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:115)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:97)
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:218)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:97)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:128)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:568)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:115)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:97)
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:218)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:928)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:568)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:115)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:97)
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
> org.ofbiz.order.order.OrderServices.reserveInventory(OrderServices.java:990)
> org.ofbiz.order.order.OrderServices.createOrder(OrderServices.java:923)
> 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.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101)
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
> org.ofbiz.order.shoppingcart.CheckOutHelper.createOrder(CheckOutHelper.java:510)
> org.ofbiz.order.shoppingcart.CheckOutEvents.createOrder(CheckOutEvents.java:424)
> 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:99)
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:85)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:415)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:251)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 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:258)
> 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:526)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.jav
> a:744)
> 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)
> --------------------------------------------------------------------------------
>
> 1181759 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:407:ERROR] Service Error [createInv
> entoryItem]: Security Error: to run createInventoryItem you must have
> the CATALOG_CREATE, CATALOG_AD
> MIN, FACILITY_CREATE, or FACILITY_ADMIN permission
> 1181759 (http-0.0.0.0-8080-Processor3) [    
> TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
> backOnly] transaction rollback only not set, rollback only is already set.
> 1181759 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>  total:0.12,since last(Begin):0.12]] - 'ecommerce / createInventoryItem'
> 1181769 (http-0.0.0.0-8080-Processor3) [    
> TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
> backOnly] transaction rollback only not set, rollback only is already set.
> 1181769 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:407:ERROR] Service Error [reservePr
> oductInventoryByFacility]: Security Error: to run createInventoryItem
> you must have the CATALOG_CREA
> TE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission calling
> service createInventoryItem
>  in reserveProductInventory
> 1181769 (http-0.0.0.0-8080-Processor3) [    
> TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
> backOnly] transaction rollback only not set, rollback only is already set.
> 1181779 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>  total:0.651,since last(Begin):0.651]] - 'ecommerce /
> reserveProductInventoryByFacility'
> 1181779 (http-0.0.0.0-8080-Processor3) [    
> TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
> backOnly] transaction rollback only not set, rollback only is already set.
> 1181779 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:407:ERROR] Service Error [reserveSt
> oreInventory]: Security Error: to run createInventoryItem you must have
> the CATALOG_CREATE, CATALOG_
> ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission calling service
> createInventoryItem in reserveP
> roductInventory calling service reserveProductInventoryByFacility in
> reserveStoreInventory
> 1181779 (http-0.0.0.0-8080-Processor3) [    
> TransactionUtil.java:280:INFO ] [TransactionUtil.setRoll
> backOnly] transaction rollback only not set, rollback only is already set.
> 1181809 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>  total:0.681,since last(Begin):0.681]] - 'ecommerce / reserveStoreInventory'
> 1181809 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:407:ERROR] Service Error [storeOrde
> r]: The product Tiny Gizmo with ID GZ-1000 is no longer in stock. Please
> try reducing the quantity o
> r removing the product from this order.
> 1181809 (http-0.0.0.0-8080-Processor3) [    TransactionUtil.java:243:ERROR]
> ---- exception report
> ----------------------------------------------------------
> [TransactionUtil.rollback]
> Exception: java.lang.Exception
> Message: Stack Trace
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.Exception: Stack Trace
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:242)
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:224)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:411)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
> org.ofbiz.order.shoppingcart.CheckOutHelper.createOrder(CheckOutHelper.java:510)
> org.ofbiz.order.shoppingcart.CheckOutEvents.createOrder(CheckOutEvents.java:424)
> 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:99)
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:85)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:415)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:251)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 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:258)
> 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:526)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.jav
> a:744)
> 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)
> --------------------------------------------------------------------------------
>
> 1182530 (http-0.0.0.0-8080-Processor3) [    
> TransactionUtil.java:253:INFO ] [TransactionUtil.rollbac
> k] transaction rolled back
> 1182530 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>  total:6.77,since last(Begin):6.77]] - 'ecommerce / storeOrder'
> 1183021 (http-0.0.0.0-8080-Processor3) [    
> RequestHandler.java:282:ERROR] Request processorder cau
> sed an error with the following message: Did not complete the order, the
> following occurred:The prod
> uct Tiny Gizmo with ID GZ-1000 is no longer in stock. Please try
> reducing the quantity or removing t
> he product from this order.
> 1183061 (http-0.0.0.0-8080-Processor3) [            
> UtilXml.java:242:DEBUG] XML Read 0.03s: jndi:/0.
> 0.0.0/ecommerce/WEB-INF/controller.xml
> 1183061 (http-0.0.0.0-8080-Processor3) [    
> ConfigXMLReader.java:552:INFO ] ConfigMap Created: (5) r
> ecords in 0.0s
> 1183071 (http-0.0.0.0-8080-Processor3) [    
> ConfigXMLReader.java:622:INFO ] HandlerMap Created: (2)
> records in 0.0s
> 1183081 (http-0.0.0.0-8080-Processor3) [    
> ConfigXMLReader.java:302:INFO ] RequestMap Created: (195
> ) records in 0.01s
> 1183081 (http-0.0.0.0-8080-Processor3) [    
> ConfigXMLReader.java:411:INFO ] ViewMap Created: (67) re
> cords in 0.0s
> 1183081 (http-0.0.0.0-8080-Processor3) [    
> RequestHandler.java:394:INFO ] [RequestHandler.doReques
> t]: Response is a view.
> 1183081 (http-0.0.0.0-8080-Processor3) [    
> RequestHandler.java:546:INFO ] servletName=control, vie
> w=checkoutreview
> 1183151 (http-0.0.0.0-8080-Processor3) [            
> UtilXml.java:242:DEBUG] XML Read 0.06s: file:/U:
> /Work/OFBiz/ofbizclean/applications/ecommerce/widget/OrderScreens.xml
> 1183151 (http-0.0.0.0-8080-Processor3) [      
> ScreenFactory.java:127:INFO ] Got 19 screens in 0.06s
> from:
> file:/U:/Work/OFBiz/ofbizclean/applications/ecommerce/widget/OrderScreens.xml
> 1184133 (http-0.0.0.0-8080-Processor3) [            
> UtilXml.java:242:DEBUG] XML Read 0.021s: file:/U
> :/Work/OFBiz/ofbizclean/applications/ecommerce/widget/CommonScreens.xml
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - inventory errors when raising an order for GZ-1000...

Ray Barlow
As I understand it, when you raise an order it triggers an inventory
reservation. That reservation touches on the inventoryitem to track atp
& qoh, if it doesn't exist it creates it, or tries to and now fails!

Ray


BJ Freeman wrote:

>that is a products and manufacturing process.
>Not sure why create inventory item, is being call from ECommerce.
>
>
>
>Ray sent the following on 3/31/06 3:26 AM:
>  
>
>>Hi,
>>
>>Just testing and came across a problem when creating an order for any
>>product that does not already have a value in the entity
>>"InventoryItem". On the default demo data you can use GZ-1000, just
>>raise an order in ecommerce, you must create a new user or at least use
>>an account that does not have any backend privileges, which by default a
>>new user wont.
>>
>>This is the main error pulled from the list below that shows the service
>>is failing because the user doesn't have security privileges to create
>>the InventoryItem entity:
>>    1181759 (http-0.0.0.0-8080-Processor3) [  
>>ServiceDispatcher.java:407:ERROR] Service Error [createInventoryItem]:
>>Security Error: to run createInventoryItem you must have the
>>CATALOG_CREATE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission
>>
>>Any quick fix suggestions for this? Should the service run as "system"?
>>
>>Ray
>>    
>>
>  
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - inventory errors when raising an order for GZ-1000...

Jacopo Cappellato
Yes,

that's correct.
I'm not sure what is the best way of fixing this... yes, maybe running
the service as "system" would do the trick.

As a side note: this error happens because all the programs in which
InventoryItems are created has been recently changed to call the
"createInventoryItem" service instead of directly storing them using the
delegator.

Any ideas?

Jacopo

Ray wrote:

> As I understand it, when you raise an order it triggers an inventory
> reservation. That reservation touches on the inventoryitem to track atp
> & qoh, if it doesn't exist it creates it, or tries to and now fails!
>
> Ray
>
>
> BJ Freeman wrote:
>
>> that is a products and manufacturing process.
>> Not sure why create inventory item, is being call from ECommerce.
>>
>>
>>
>> Ray sent the following on 3/31/06 3:26 AM:
>>  
>>
>>> Hi,
>>>
>>> Just testing and came across a problem when creating an order for any
>>> product that does not already have a value in the entity
>>> "InventoryItem". On the default demo data you can use GZ-1000, just
>>> raise an order in ecommerce, you must create a new user or at least use
>>> an account that does not have any backend privileges, which by default a
>>> new user wont.
>>>
>>> This is the main error pulled from the list below that shows the service
>>> is failing because the user doesn't have security privileges to create
>>> the InventoryItem entity:
>>>    1181759 (http-0.0.0.0-8080-Processor3) [  
>>> ServiceDispatcher.java:407:ERROR] Service Error [createInventoryItem]:
>>> Security Error: to run createInventoryItem you must have the
>>> CATALOG_CREATE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission
>>>
>>> Any quick fix suggestions for this? Should the service run as "system"?
>>>
>>> Ray
>>>    
>>>
>>  
>>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - inventory errors when raising an order for GZ-1000...

BJ Freeman
not sure this is a good solution.
we have security to limit access.

If it is made a system process, then effectively the security is
nullified if it can called by any non system entity.

so if some other process that does not have security, the process should
be put in a cue and sent to workeffort task list, for dispostion.

This would be effectively a Backorder.

this is not complete, just some thoughts



Jacopo Cappellato sent the following on 3/31/06 5:13 AM:

> Yes,
>
> that's correct.
> I'm not sure what is the best way of fixing this... yes, maybe running
> the service as "system" would do the trick.
>
> As a side note: this error happens because all the programs in which
> InventoryItems are created has been recently changed to call the
> "createInventoryItem" service instead of directly storing them using the
> delegator.
>
> Any ideas?
>
> Jacopo
>
> Ray wrote:
>
>>As I understand it, when you raise an order it triggers an inventory
>>reservation. That reservation touches on the inventoryitem to track atp
>>& qoh, if it doesn't exist it creates it, or tries to and now fails!
>>
>>Ray
>>
>>
>>BJ Freeman wrote:
>>
>>
>>>that is a products and manufacturing process.
>>>Not sure why create inventory item, is being call from ECommerce.
>>>
>>>
>>>
>>>Ray sent the following on 3/31/06 3:26 AM:
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>Just testing and came across a problem when creating an order for any
>>>>product that does not already have a value in the entity
>>>>"InventoryItem". On the default demo data you can use GZ-1000, just
>>>>raise an order in ecommerce, you must create a new user or at least use
>>>>an account that does not have any backend privileges, which by default a
>>>>new user wont.
>>>>
>>>>This is the main error pulled from the list below that shows the service
>>>>is failing because the user doesn't have security privileges to create
>>>>the InventoryItem entity:
>>>>   1181759 (http-0.0.0.0-8080-Processor3) [  
>>>>ServiceDispatcher.java:407:ERROR] Service Error [createInventoryItem]:
>>>>Security Error: to run createInventoryItem you must have the
>>>>CATALOG_CREATE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission
>>>>
>>>>Any quick fix suggestions for this? Should the service run as "system"?
>>>>
>>>>Ray
>>>>  
>>>>
>>>
>>>
>>>
>>
>>
>>_______________________________________________
>>Dev mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/dev
>>
>
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - inventory errors when raising an order for GZ-1000...

Si Chen-2
In reply to this post by Jacopo Cappellato
I think maybe running it as "system" is the right thing to do. 

Si

Jacopo Cappellato wrote:
Yes,

that's correct.
I'm not sure what is the best way of fixing this... yes, maybe running 
the service as "system" would do the trick.

As a side note: this error happens because all the programs in which 
InventoryItems are created has been recently changed to call the 
"createInventoryItem" service instead of directly storing them using the 
delegator.

Any ideas?

Jacopo

Ray wrote:
  
As I understand it, when you raise an order it triggers an inventory 
reservation. That reservation touches on the inventoryitem to track atp 
& qoh, if it doesn't exist it creates it, or tries to and now fails!

Ray


BJ Freeman wrote:

    
that is a products and manufacturing process.
Not sure why create inventory item, is being call from ECommerce.



Ray sent the following on 3/31/06 3:26 AM:
 

      
Hi,

Just testing and came across a problem when creating an order for any 
product that does not already have a value in the entity 
"InventoryItem". On the default demo data you can use GZ-1000, just 
raise an order in ecommerce, you must create a new user or at least use 
an account that does not have any backend privileges, which by default a 
new user wont.

This is the main error pulled from the list below that shows the service 
is failing because the user doesn't have security privileges to create 
the InventoryItem entity:
   1181759 (http-0.0.0.0-8080-Processor3) [  
ServiceDispatcher.java:407:ERROR] Service Error [createInventoryItem]: 
Security Error: to run createInventoryItem you must have the 
CATALOG_CREATE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission

Any quick fix suggestions for this? Should the service run as "system"?

Ray
   

        
 

      
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

    

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev


  

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - inventory errors when raising an order for GZ-1000...

David E. Jones

Yes, the intention of the "system" user is to be able to run operations
as part of code (that no user should have access to create or run...)
that the current user could not do on their own behalf. The
createInventoryItem service is a good example because it needs to be
done as part of the house keeping that the "system" takes care of, but
never something we would allow the user to do arbitrarily.

-David


Si Chen wrote:

> I think maybe running it as "system" is the right thing to do.
>
> Si
>
> Jacopo Cappellato wrote:
>> Yes,
>>
>> that's correct.
>> I'm not sure what is the best way of fixing this... yes, maybe running
>> the service as "system" would do the trick.
>>
>> As a side note: this error happens because all the programs in which
>> InventoryItems are created has been recently changed to call the
>> "createInventoryItem" service instead of directly storing them using the
>> delegator.
>>
>> Any ideas?
>>
>> Jacopo
>>
>> Ray wrote:
>>  
>>> As I understand it, when you raise an order it triggers an inventory
>>> reservation. That reservation touches on the inventoryitem to track atp
>>> & qoh, if it doesn't exist it creates it, or tries to and now fails!
>>>
>>> Ray
>>>
>>>
>>> BJ Freeman wrote:
>>>
>>>    
>>>> that is a products and manufacturing process.
>>>> Not sure why create inventory item, is being call from ECommerce.
>>>>
>>>>
>>>>
>>>> Ray sent the following on 3/31/06 3:26 AM:
>>>>  
>>>>
>>>>      
>>>>> Hi,
>>>>>
>>>>> Just testing and came across a problem when creating an order for any
>>>>> product that does not already have a value in the entity
>>>>> "InventoryItem". On the default demo data you can use GZ-1000, just
>>>>> raise an order in ecommerce, you must create a new user or at least use
>>>>> an account that does not have any backend privileges, which by default a
>>>>> new user wont.
>>>>>
>>>>> This is the main error pulled from the list below that shows the service
>>>>> is failing because the user doesn't have security privileges to create
>>>>> the InventoryItem entity:
>>>>>    1181759 (http-0.0.0.0-8080-Processor3) [  
>>>>> ServiceDispatcher.java:407:ERROR] Service Error [createInventoryItem]:
>>>>> Security Error: to run createInventoryItem you must have the
>>>>> CATALOG_CREATE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission
>>>>>
>>>>> Any quick fix suggestions for this? Should the service run as "system"?
>>>>>
>>>>> Ray
>>>>>    
>>>>>
>>>>>        
>>>>  
>>>>
>>>>      
>>>  
>>> _______________________________________________
>>> Dev mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/dev
>>>
>>>    
>>
>>  
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
>>
>>  
> ------------------------------------------------------------------------
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - inventory errors when raising an order for GZ-1000...

Jacopo Cappellato
Ray,

this is now fixed in svn rev. 7167.

Thanks for the bug report.

Jacopo


David E Jones wrote:

> Yes, the intention of the "system" user is to be able to run operations
> as part of code (that no user should have access to create or run...)
> that the current user could not do on their own behalf. The
> createInventoryItem service is a good example because it needs to be
> done as part of the house keeping that the "system" takes care of, but
> never something we would allow the user to do arbitrarily.
>
> -David
>
>
> Si Chen wrote:
>> I think maybe running it as "system" is the right thing to do.
>>
>> Si
>>
>> Jacopo Cappellato wrote:
>>> Yes,
>>>
>>> that's correct.
>>> I'm not sure what is the best way of fixing this... yes, maybe running
>>> the service as "system" would do the trick.
>>>
>>> As a side note: this error happens because all the programs in which
>>> InventoryItems are created has been recently changed to call the
>>> "createInventoryItem" service instead of directly storing them using the
>>> delegator.
>>>
>>> Any ideas?
>>>
>>> Jacopo
>>>
>>> Ray wrote:
>>>  
>>>> As I understand it, when you raise an order it triggers an inventory
>>>> reservation. That reservation touches on the inventoryitem to track atp
>>>> & qoh, if it doesn't exist it creates it, or tries to and now fails!
>>>>
>>>> Ray
>>>>
>>>>
>>>> BJ Freeman wrote:
>>>>
>>>>    
>>>>> that is a products and manufacturing process.
>>>>> Not sure why create inventory item, is being call from ECommerce.
>>>>>
>>>>>
>>>>>
>>>>> Ray sent the following on 3/31/06 3:26 AM:
>>>>>  
>>>>>
>>>>>      
>>>>>> Hi,
>>>>>>
>>>>>> Just testing and came across a problem when creating an order for any
>>>>>> product that does not already have a value in the entity
>>>>>> "InventoryItem". On the default demo data you can use GZ-1000, just
>>>>>> raise an order in ecommerce, you must create a new user or at least use
>>>>>> an account that does not have any backend privileges, which by default a
>>>>>> new user wont.
>>>>>>
>>>>>> This is the main error pulled from the list below that shows the service
>>>>>> is failing because the user doesn't have security privileges to create
>>>>>> the InventoryItem entity:
>>>>>>    1181759 (http-0.0.0.0-8080-Processor3) [  
>>>>>> ServiceDispatcher.java:407:ERROR] Service Error [createInventoryItem]:
>>>>>> Security Error: to run createInventoryItem you must have the
>>>>>> CATALOG_CREATE, CATALOG_ADMIN, FACILITY_CREATE, or FACILITY_ADMIN permission
>>>>>>
>>>>>> Any quick fix suggestions for this? Should the service run as "system"?
>>>>>>
>>>>>> Ray
>>>>>>    

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev