[ https://issues.apache.org/jira/browse/OFBIZ-13079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17843218#comment-17843218 ]
ASF subversion and git services commented on OFBIZ-13079: --------------------------------------------------------- Commit bb3a69ee1a75befc28a6a46ca2568e7a75b46184 in ofbiz-framework's branch refs/heads/trunk from Jacques Le Roux [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=bb3a69ee1a ] Fixed: Error in ProductServicesScript.groovy]:(Cannot execute null+1) (OFBIZ-13079) Fixes an error in countProductView service. There is still an error reproducible in 18.12 (summarised) Error running Groovy method ProductServicesScript::countProductView : org.apache.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ProductCalculatedInfo](INSERT on table 'PRODUCT_CALCULATED_INFO' caused a violation of foreign key constraint 'PRODCI_PROD' for key (GS-1000). The statement has been rolled back. So another Jira is needed. > Error in ProductServicesScript.groovy: Cannot execute null+1 > ------------------------------------------------------------- > > Key: OFBIZ-13079 > URL: https://issues.apache.org/jira/browse/OFBIZ-13079 > Project: OFBiz > Issue Type: Bug > Components: product/catalog > Affects Versions: Upcoming Branch > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Priority: Major > Fix For: Upcoming Branch > > > Easy fix: > 2024-05-02 13:36:26,779 |OFBiz-JobQueue-1 |GenericServiceJob > |E| Async-Service failed. > org.apache.ofbiz.service.GenericServiceException: Error running Groovy method > [countProductView] in Groovy file > [component://product/src/main/groovy/org/apache/ofbiz/product/product/product/ProductServicesScript.groovy]: > (Cannot execute null+1) > at > org.apache.ofbiz.service.engine.GroovyEngine.runSync(GroovyEngine.java:138) > ~[ofbiz.jar:?] > at > org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:429) > ~[ofbiz.jar:?] > at > org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:244) > ~[ofbiz.jar:?] > at > org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93) > ~[ofbiz.jar:?] > at > org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:77) > [ofbiz.jar:?] > at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:106) > [ofbiz.jar:?] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) > [?:?] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) > [?:?] > at java.lang.Thread.run(Thread.java:840) [?:?] > Caused by: java.lang.NullPointerException: Cannot execute null+1 > at org.codehaus.groovy.runtime.NullObject.plus(NullObject.java:159) > ~[groovy-3.0.21.jar:3.0.21] > at org.codehaus.groovy.runtime.NullObject$plus$0.call(Unknown Source) > ~[?:?] > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) > ~[groovy-3.0.21.jar:3.0.21] > at > org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:34) > ~[groovy-3.0.21.jar:3.0.21] > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) > ~[groovy-3.0.21.jar:3.0.21] > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > ~[groovy-3.0.21.jar:3.0.21] > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139) > ~[groovy-3.0.21.jar:3.0.21] > at > org.apache.ofbiz.product.product.product.ProductServicesScript.countProductView(ProductServicesScript.groovy:373) > ~[ofbiz.jar:?] -- This message was sent by Atlassian Jira (v8.20.10#820010)