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

JIRA | Thanos Batagiannis | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 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 | 1 year ago | Thanos Batagiannis
    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 | 1 year ago | Thanos Batagiannis
    java.lang.NullPointerException: Cannot get property 'name' on null object
  3. 0

    404 while trying to use a JIRA Scriptrunner custom REST endpoint

    Stack Overflow | 8 months ago | Amedee Van Gasse
    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

    Unable to add script task to environment

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

    App fails on start up with Audit Trail plugin

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

  1. derprogger 64 times, last 5 days ago
  2. musketyr 4 times, last 2 weeks ago
  3. stigkj 1 times, last 2 months ago
  4. rlovtangen 1 times, last 6 months ago
  5. Luka 1 times, last 7 months ago
1 more registered users
8 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
    ScriptFieldsEndpoint.previewScriptField
    1. com.onresolve.scriptrunner.runner.ScriptFieldManagerImpl.getPreview(ScriptFieldManagerImpl.groovy:350)
    2. com.onresolve.scriptrunner.runner.rest.jira.ScriptFieldsEndpoint.previewScriptField(ScriptFieldsEndpoint.groovy:91)
    2 frames
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Unknown Source)
    1 frame
  5. Jersey
    JavaMethodInvokerFactory$1.invoke
    1. com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
    1 frame