[ 
https://issues.apache.org/jira/browse/OFBIZ-11441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17051915#comment-17051915
 ] 

ASF subversion and git services commented on OFBIZ-11441:
---------------------------------------------------------

Commit 784a299968090b09c11a8ceacbe57d459a267a27 in ofbiz-framework's branch 
refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=784a299 ]

Fixed: createMissingCategoryAndProductAltUrls service misses a transaction
(OFBIZ-11441)

Not sure why it had use-transaction="false", makes no sens to me, too old to
check, not a big deal I guess


> createMissingCategoryAndProductAltUrls service misses a transaction 
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-11441
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11441
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> I'm not sure if this is always an issue, but getting to CreateSeoProdCatalog 
> throws this error in log:
> {noformat}
> 2020-03-04 17:11:50,610 |jsse-nio-9443-exec-6 |ControlServlet                
> |T| [[[catalog::CreateSeoProdCatalog (Domain:https://localhost)] Request 
> Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
> 2020-03-04 17:11:50,640 |jsse-nio-9443-exec-6 |GenericDelegator              
> |E| ERROR: Cannot do a find that returns an EntityListIterator with no 
> transaction in place. Wrap this call in a transaction.
> java.lang.Exception: Stack Trace
>         at 
> org.apache.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1523) 
> [main/:?]
>         at 
> org.apache.ofbiz.entity.util.EntityQuery.queryIterator(EntityQuery.java:397) 
> [main/:?]
>         at 
> org.apache.ofbiz.entity.util.EntityQuery.getFieldList(EntityQuery.java:533) 
> [main/:?]
>         at 
> org.apache.ofbiz.entity.util.EntityQuery$getFieldList$6.call(Unknown Source) 
> [main/:?]
>         at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  [groovy-2.5.8.jar:2.5.8]
>         at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  [groovy-2.5.8.jar:2.5.8]
>         at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>  [groovy-2.5.8.jar:2.5.8]
>         at 
> CatalogServices.createMissingCategoryAltUrlInline(CatalogServices.groovy:403) 
> [script:?]
>         at 
> CatalogServices$createMissingCategoryAltUrlInline.callCurrent(Unknown Source) 
> [script:?]
>         at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
>  [groovy-2.5.8.jar:2.5.8]
>         at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
>  [groovy-2.5.8.jar:2.5.8]
>         at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:168)
>  [groovy-2.5.8.jar:2.5.8]
>         at 
> CatalogServices.createMissingCategoryAndProductAltUrls(CatalogServices.groovy:306)
>  [script:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_202]
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_202]
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:1.8.0_202]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
>         at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101) 
> [groovy-2.5.8.jar:2.5.8]
>         at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) 
> [groovy-2.5.8.jar:2.5.8]
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217) 
> [groovy-2.5.8.jar:2.5.8]
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041) 
> [groovy-2.5.8.jar:2.5.8]
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) 
> [groovy-2.5.8.jar:2.5.8]
>         at 
> groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
> [groovy-2.5.8.jar:2.5.8]
>         at groovy.lang.Script.invokeMethod(Script.java:77) 
> [groovy-2.5.8.jar:2.5.8]
>         at 
> org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:110) 
> [main/:?]
> {noformat}
> There is no others impacts. Maybe it was "broken by" OFBIZ-10808
> You can reproduce by getting to Catalogs in catalog webapp, selecting a 
> catalog there and using "Create SEO category/products"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to