Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-13079

Error in ProductServicesScript.groovy: Cannot execute null+1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Upcoming Branch
    • Upcoming Branch
    • product/catalog
    • None

    Description

      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:?]

      Attachments

        Activity

          People

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: