java.lang.NullPointerException: Cannot get property 'name' on null object

  1. 0

    404 while trying to use a JIRA Scriptrunner custom REST endpoint

    Stack Overflow | 3 months ago | Amedee Van Gasse
    java.lang.NullPointerException: Cannot get property 'name' on null object
  2. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-900].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}Preview on script field throws "Cannot get property 'name' on null object" *This happens when there is no configured searcher*, and only affects the _preview_ functionality. {code:java} 2016-01-12 12:47:29,717 http-bio-8080-exec-294 WARN creator 767x684330x1 1fkbbcu 192.168.96.233,127.0.0.1 /rest/scriptrunner-jira/latest/scriptfields/15299/preview [onresolve.scriptrunner.runner.ScriptFieldManagerImpl] Cannot get property 'name' on null object java.lang.NullPointerException: Cannot get property 'name' on null object at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60) at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172) at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296) at com.onresolve.scriptrunner.runner.ScriptFieldManagerImpl.getPreview(ScriptFieldManagerImpl.groovy:350) at com.onresolve.scriptrunner.runner.rest.jira.ScriptFieldsEndpoint.previewScriptField(ScriptFieldsEndpoint.groovy:91) <+2> at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) <+13> (AbstractResourceMethodDispatchProvider.java:205) (ResourceJavaMethodDispatcher.java:75) (HttpMethodRule.java:288) (RightHandPathRule.java:147) (ResourceClassRule.java:108) (RightHandPathRule.java:147) (RootResourceClassesRule.java:84) (WebApplicationImpl.java:1469) (WebApplicationImpl.java:1400) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537) {code} ref https://answers.atlassian.com/questions/19145762/cannot-get-property-value-on-null-object

    JIRA | 9 months ago | Thanos Batagiannis
    java.lang.NullPointerException: Cannot get property 'name' on null object
  3. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-900].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}Preview on script field throws "Cannot get property 'name' on null object" *This happens when there is no configured searcher*, and only affects the _preview_ functionality. {code:java} 2016-01-12 12:47:29,717 http-bio-8080-exec-294 WARN creator 767x684330x1 1fkbbcu 192.168.96.233,127.0.0.1 /rest/scriptrunner-jira/latest/scriptfields/15299/preview [onresolve.scriptrunner.runner.ScriptFieldManagerImpl] Cannot get property 'name' on null object java.lang.NullPointerException: Cannot get property 'name' on null object at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60) at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172) at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296) at com.onresolve.scriptrunner.runner.ScriptFieldManagerImpl.getPreview(ScriptFieldManagerImpl.groovy:350) at com.onresolve.scriptrunner.runner.rest.jira.ScriptFieldsEndpoint.previewScriptField(ScriptFieldsEndpoint.groovy:91) <+2> at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) <+13> (AbstractResourceMethodDispatchProvider.java:205) (ResourceJavaMethodDispatcher.java:75) (HttpMethodRule.java:288) (RightHandPathRule.java:147) (ResourceClassRule.java:108) (RightHandPathRule.java:147) (RootResourceClassesRule.java:84) (WebApplicationImpl.java:1469) (WebApplicationImpl.java:1400) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537) {code} ref https://answers.atlassian.com/questions/19145762/cannot-get-property-value-on-null-object

    JIRA | 9 months ago | Thanos Batagiannis
    java.lang.NullPointerException: Cannot get property 'name' on null object
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    App fails on start up with Audit Trail plugin

    GitHub | 3 years ago | zaccak
    java.lang.NullPointerException: Cannot get property 'name' on null object
  6. 0

    NPE when attempting to push new AMI into ASG via rolling push

    GitHub | 3 years ago | tjbaker
    java.lang.NullPointerException: Cannot get property 'name' on null object

  1. musketyr 2 times, last 1 month ago
  2. Luka 1 times, last 2 months ago
  3. rlovtangen 2 times, last 2 months ago
  4. mortalman7 7 times, last 4 months ago
7 unregistered visitors
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 get property 'name' on null object

    at org.codehaus.groovy.runtime.NullObject.getProperty()
  2. Groovy
    AbstractCallSite.callGetProperty
    1. org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60)
    2. org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172)
    3. org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47)
    4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)
    4 frames
  3. com.onresolve.scriptrunner
    RestEndpointManager$_onFullSystemStart_closure5.doCall
    1. com.onresolve.scriptrunner.runner.RestEndpointManager$_onFullSystemStart_closure5.doCall(RestEndpointManager.groovy:141)
    1 frame