The following error is logged (even if the service works as expected)
when the service "getInventoryAvailableByFacility" is called:
======================================================================
2007-12-11 15:54:57,906 (default-invoker-Thread-6) [
GenericDelegator.java:2031:ERROR] ---- exception report
---------------------------------------------------------- ERROR: Cannot
do a find that returns an EntityListIterator with no transaction in
place. Wrap this call in a transaction. Exception: java.lang.Exception
Message: Stack Trace ---- stack trace
---------------------------------------------------------------
java.lang.Exception: Stack Trace
org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:2030)
org.ofbiz.entity.GenericDelegator.findListIteratorByCondition(GenericDelegator.java:2008)
org.ofbiz.minilang.method.entityops.FindByAnd.exec(FindByAnd.java:88)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:931)
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:121)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:931)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:568)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:105)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:87)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:375)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
======================================================================
I think this is caused by the service definition that has:
use-transaction="false"
I've noticed that this flag has been set by Si in rev. r438286:
"Turned off transactions for all the getInventory_ services -- they do
not store anything and should not require them. Also added marketing
package ATP/QOH to the getProductInventorySummaryForItems service which
searches across all facilities"
Is there a reason for setting this flag? Should we remove it? Or is the
error a fake error that should be fixed instead?
Jacopo