[
https://issues.apache.org/jira/browse/OFBIZ-9286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux reopened OFBIZ-9286:
------------------------------------
Reopening, since then I forgot this type of issue (you must begin the transaction before the try-with-resources) and reintroduced other cases while working on OFBIZ-9385.
I also thought I did not have to backport r1789045 and Daniel Coric reported the same issue on user ML for R16.11, this was fixed with r1798179
At r1798353 I fixed the same bug introduced with OFBIZ-9385 for SurveyWrapper and ProductEvents class. I very seriously checked there are not other cases left and learned the Meaning of (?s) in regex while doing so.
Lesson learned!
> ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place
> ---------------------------------------------------------------------------------------
>
> Key: OFBIZ-9286
> URL:
https://issues.apache.org/jira/browse/OFBIZ-9286> Project: OFBiz
> Issue Type: Bug
> Components: order
> Affects Versions: Trunk
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Fix For: Upcoming Release
>
>
> Here is the stack error:
> {code}
> 017-03-27 07:57:53,968 |OFBiz-JobQueue-1 |PersistedServiceJob |I| Job [Run Auto-Reorders] Id [11226] -- Next runtime: Tue Mar 28 00:00:00 CEST 2017
> 017-03-27 07:57:53,968 |OFBiz-JobQueue-1 |GenericDelegator |E| ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction.
> ava.lang.Exception: Stack Trace
> at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1533) [ofbiz.jar:?]
> at org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:394) [ofbiz.jar:?]
> at org.apache.ofbiz.order.shoppinglist.ShoppingListServices.createListReorders(ShoppingListServices.java:133) [ofbiz.jar:?]
> [...]
> 017-03-27 07:57:53,993 |OFBiz-JobQueue-0 |ServiceDispatcher |T| Sync service [default/cancelAllBackOrders] finished in [230] milliseconds
> 017-03-27 07:57:54,001 |OFBiz-JobQueue-0 |PersistedServiceJob |I| Job [Extend expired Subscriptions] Id [11225] -- Next runtime: Tue Mar 28 00:00:00 CEST 2017
> 017-03-27 07:57:54,002 |OFBiz-JobQueue-0 |GenericDelegator |E| ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction.
> ava.lang.Exception: Stack Trace
> at org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1533) [ofbiz.jar:?]
> at org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:394) [ofbiz.jar:?]
> at org.apache.ofbiz.order.order.OrderServices.runSubscriptionAutoReorders(OrderServices.java:5564) [ofbiz.jar:?]
> [...]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)