java.lang.NullPointerException: Cannot invoke method execute() on null object nz.net.ultraq.thymeleaf.models.TemplateModelFinder.findFragment(TemplateModelFinder.groovy:74) ~[thymeleaf-layout-dialect-2.0.0.jar:na]

GitHub | AlexKovalevich | 5 months ago
  1. 0

    Null pointer in layout:insert/include if no selector (:: element) is specified

    GitHub | 5 months ago | AlexKovalevich
    java.lang.NullPointerException: Cannot invoke method execute() on null object nz.net.ultraq.thymeleaf.models.TemplateModelFinder.findFragment(TemplateModelFinder.groovy:74) ~[thymeleaf-layout-dialect-2.0.0.jar:na]
  2. 0

    Spock mocks showing up as nulls

    Stack Overflow | 10 months ago | smeeb
    java.lang.NullPointerException: Cannot invoke method execute() on null object
  3. 0

    We use the Groovy-Postbuild-Plugin to set successful Upstream-Builds to failed, when a downstream-Build failes. The upstream-Build saves several Artefacts and creates Fingerprints from these. Some times the Groovy-Postbuild-Plugin works with the code below for ten or more builds, afterwards we get the below mentioned NullPointerException several times without changing anything in the configuration. ________________________________________________________ Groovy-Code: upstreamBuilds = manager.build.getUpstreamBuilds(); upstreamJob = upstreamBuilds.keySet().iterator().next(); lastUpstreamBuild = upstreamJob.getLastBuild(); if(lastUpstreamBuild.getResult().isBetterThan(manager.build.result)) { lastUpstreamBuild.setResult(manager.build.result); } ________________________________________________________ Exception: Groovy script failed: java.lang.NullPointerException: Cannot invoke method isBetterThan() on null object at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at Script1.run(Script1.groovy:23) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589) at org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.perform(GroovyPostbuildRecorder.java:273) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1485) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)

    Jenkins JIRA | 4 years ago | Christoph Moser
    java.lang.NullPointerException: Cannot invoke method isBetterThan() on null object
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 2#25802737

    GitHub | 3 years ago | selivanovm
    java.lang.NullPointerException: Cannot invoke method finish() on null object
  6. 0

    Cannot invoke method getBytes() on null object on login

    GitHub | 4 years ago | bradleybeddoes
    java.lang.NullPointerException: Cannot invoke method getBytes() on null object

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Cannot invoke method execute() on null object nz.net.ultraq.thymeleaf.models.TemplateModelFinder.findFragment(TemplateModelFinder.groovy:74) ~[thymeleaf-layout-dialect-2.0.0.jar:na]

      at nz.net.ultraq.thymeleaf.models.TemplateModelFinder$findFragment$1.call()
    2. nz.net.ultraq
      IncludeProcessor.doProcess
      1. nz.net.ultraq.thymeleaf.models.TemplateModelFinder$findFragment$1.call(Unknown Source)[na:na]
      2. nz.net.ultraq.thymeleaf.includes.IncludeProcessor.doProcess(IncludeProcessor.groovy:84)[thymeleaf-layout-dialect-2.0.0.jar:na]
      2 frames