You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2024/05/03 13:58:00 UTC

[jira] [Updated] (OFBIZ-13079) Error in ProductServicesScript.groovy: Cannot execute null+1

     [ https://issues.apache.org/jira/browse/OFBIZ-13079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-13079:
------------------------------------
    Summary: Error in ProductServicesScript.groovy:  Cannot execute null+1  (was: Error in ProductServicesScript.groovy]:  (Cannot execute null+1))

> 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)