Hi Jacques, Yes the reported one is actually related to : [productGeoID in ProductPromoCondServices.groovy. But also there is also another issue related to getProductInventoryAvailable Still not remembering which configuration I did that made this error. When I find it, I will report, and hope soon I can get it.
Regards On Thu, Oct 31, 2024 at 10:58 AM Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: > Hi Omar, > > The reason why I asked you to create a Jira is because it's quite easier > to link a Jira to an issue rather than linking this issue to a thread in > the > dev ML (think to searches in future and Git blame). So please do, TIA. > > Here is a log excerpt: > > 2024-10-30 21:46:09,890 |-0.0.0.0-8009-exec-4 > |GenericDelegator |E| Failure in findByCondition operation for > entity [ProductPrice]: > org.apache.ofbiz.entity.transaction.GenericTransactionException: The > current transaction is marked for rollback, not beginning a new transaction > and > aborting current operation; the rollbackOnly was caused by: Service > [productPromoCondGeoID] threw an unexpected > exception/errororg.apache.ofbiz.service.GenericServiceException: Error > running Groovy method [productGeoID] in Groovy file > [component://product/groovyScripts/product/promo/ProductPromoCondServices.groovy]: > (java.lang.StackOverflowError) (Error running Groovy method > [productGeoID] in Groovy file > [component://product/groovyScripts/product/promo/ProductPromoCondServices.groovy]: > (java.lang.StackOverflowError)). > Rolling back transaction. > org.apache.ofbiz.entity.transaction.GenericTransactionException: The > current transaction is marked for rollback, not beginning a new transaction > and > aborting current operation; the rollbackOnly was caused by: Service > [productPromoCondGeoID] threw an unexpected > exception/errororg.apache.ofbiz.service.GenericServiceException: Error > running Groovy method [productGeoID] in Groovy file > [component://product/groovyScripts/product/promo/ProductPromoCondServices.groovy]: > (java.lang.StackOverflowError) (Error running Groovy method > [productGeoID] in Groovy file > [component://product/groovyScripts/product/promo/ProductPromoCondServices.groovy]: > (java.lang.StackOverflowError)) > > So the problem is related to Groovy method [productGeoID in > ProductPromoCondServices.groovy. > I checked there are 198 "Error running Groovy method [productGeoID] in > Groovy file > [component://product/groovyScripts/product/promo/ProductPromoCondServices.groovy]" > in yesterday stable error.logs. > A high number possibly due to the type of exception (StackOverflowError) > > At 1st glance it's related to this issue > https://issues.apache.org/jira/browse/OFBIZ-10370 > > Jacques > > Le 30/10/2024 à 22:52, Omar Abdullwahhab a écrit : > > Yes I see the stackoverflowerror in the logging > > > > https://demo-stable.ofbiz.apache.org/webtools/control/LogView > > > > > > On Thu, Oct 31, 2024 at 12:50 AM Omar Abdullwahhab < > > omar.abdullwah...@gmail.com> wrote: > > > >> Please check the stable demo, > >> I have created a Sales Order ( WSCO10000 > >> < > https://demo-stable.ofbiz.apache.org:443/ordermgr/control/orderview?orderId=WSCO10000 > > > >> ) > >> > >> > https://demo-stable.ofbiz.apache.org/ordermgr/control/orderview?orderId=WSCO10000 > >> Try adding a GZ-1006 to this product, > >> I got an error message but it may be the same problem > >> Please check. > >> > >> > >> On Thu, Oct 31, 2024 at 12:13 AM Omar Abdullwahhab < > >> omar.abdullwah...@gmail.com> wrote: > >> > >>> Hi Michael, Jacques , > >>> Sorry being late for the answer > >>> I was figuring out what caused the problem, > >>> In a hurry till I completely assert the cause, > >>> It happened when I make the webstore warehouse > >>> Configuration as follows. > >>> OFBiz E-Commerce Store [ID:9000] > >>> Check Inventory -> NO, > >>> Require Inventory -> NO. > >>> > >>> Create a Sales order ( set currency to SAR ). > >>> Add a new item with id ( GZ-1005 ) > >>> You will get the error. > >>> > >>> But as I deviated little from the current *trunk* repository > >>> I will download a fresh clone and test again, > >>> > >>> Best Regards > >>> > >>> On Wed, Oct 30, 2024 at 5:30 PM Michael Brohl < > michael.br...@ecomify.de> > >>> wrote: > >>> > >>>> Hi Omar, > >>>> > >>>> as an addition, please specify exactly what you are doing, what you > are > >>>> expecting and what the result is, including a stacktrace. > >>>> > >>>> Also, please check if you have defined a circular dependency in your > >>>> product assocs, causing an endless loop. The last service call to > >>>> getProductInventoryAvailableFromAssocProducts at least suggests that > >>>> this could be a source of error. > >>>> > >>>> Best regards, > >>>> > >>>> Michael Brohl > >>>> > >>>> ecomify GmbH - www.ecomify.de > >>>> > >>>> > >>>> Am 30.10.24 um 08:25 schrieb Jacques Le Roux: > >>>>> Hi Omar, > >>>>> > >>>>> Could you please create a Jira? > >>>>> > >>>> > https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Contributors+Best+Practices#OFBizContributorsBestPractices-HowtocreateaJiraissue > >>>>> > >>>>> TIA > >>>>> > >>>>> Jacques > >>>>> > >>>>> Le 30/10/2024 à 01:35, Omar Abdullwahhab a écrit : > >>>>>> Another service also to consider, > >>>>>> getInventoryAvailableByFacility > >>>>>> > >>>>>> > >>>>>> On Wed, Oct 30, 2024 at 3:05 AM Omar Abdullwahhab < > >>>>>> omar.abdullwah...@gmail.com> wrote: > >>>>>> > >>>>>>> Hello OFBiz devs, > >>>>>>> Today I faced a strange java.lang.StackOverflowError > >>>>>>> exception when I was modifying sales order items > >>>>>>> in order manager application. > >>>>>>> I traced the service calls and found that these services > >>>>>>> Somehow will cause this error, > >>>>>>> These methods/services are. > >>>>>>> > >>>>>>> getProductInventoryAvailable > >>>>>>> getMktgPackagesAvailable > >>>>>>> getProductInventoryAvailableFromAssocProducts > >>>>>>> > >>>>>>> -- > >>>>>>> Omar Abu-Arab > >>>>>>> Java Engineer > >>>>>>> > >>>>>>> > >>> > >>> -- > >>> Omar Abu-Arab > >>> Java Engineer > >>> > >>> > >> -- > >> Omar Abu-Arab > >> Java Engineer > >> > >> > -- Omar Abu-Arab Java Engineer