IBM Support

PI04868: USING ENVIRONMENT-SPECIFIC PROJECT PROPERTIES (I.E. NOT ON THE 'ALL' TAB) CAUSES NULLPOINTEREXCEPTION W/SCRIPTEDSELECTPROPERTY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Set up a project with a property called 'envNames' on one of
    the project-environment properties (make sure it is NOT on the
    'ALL' tab), and give it values 'one,two,three'.  Then, create
    originating workflow/job/build/etc.  Create a scripted-select
    property on a secondary workflow, and use the following for the
    script:
    
    String valueStr = PropertyLookup.getValue("envNames");
    String[] values = valueStr.split(",");
    return values;
    
    When attempting to run this secondary workflow on a buildlife,
    this correctly populates the Select property with valid
    choices.  Unfortunately, after clicking 'Run' a
    NullPointerException will appear:
    
    java.security.PrivilegedActionException:
    org.apache.bsf.BSFException: The application script threw an
    exception: java.lang.NullPointerException: Null Pointer in
    Method Invocation BSF info: noFile at line: 2
     at java.security.AccessController.doPrivileged(Native
    Method)
     at org.apache.bsf.BSFManager.eval(BSFManager.java:442)
     at
    com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.doEvalu
    ate(ScriptEvaluator.java:446)
     at
    com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.evaluat
    e(ScriptEvaluator.java:245)
     at
    com.urbancode.anthill3.runtime.scripting.ScriptEvaluator.evaluat
    e(ScriptEvaluator.java:226)
     at
    com.urbancode.anthill3.domain.workflow.ScriptedWorkflowPropertyH
    elper.evaluateScript(ScriptedWorkflowPropertyHelper.java:206)
     at
    com.urbancode.anthill3.domain.workflow.ScriptedWorkflowPropertyH
    elper.evaluateAllowedValuesScript(ScriptedWorkflowPropertyHelper
    .java:190)
     at
    com.urbancode.anthill3.domain.workflow.ScriptedWorkflowPropertyH
    elper.determineAllowedValues(ScriptedWorkflowPropertyHelper.java
    :117)
     at
    com.urbancode.anthill3.web.project.BuildRequestPropertiesHelper.
    readWorkflowPropertiesFromRequest(BuildRequestPropertiesHelper.j
    ava:117)
     at
    com.urbancode.anthill3.web.project.BuildRequestPropertiesHelper.
    setWorkflowPropertiesOnRequest(BuildRequestPropertiesHelper.java
    :47)
     at
    com.urbancode.anthill3.web.project.BuildLifeTasks.runNonOriginat
    ingWorkflowStep3(BuildLifeTasks.java:1520)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
     at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:39)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:592)
     at
    com.urbancode.anthill3.web.controller.ControllerServlet.service(
    ControllerServlet.java:306)
     at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
     at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown
    Source)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:592)
     at
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.jav
    a:244)
     at java.security.AccessController.doPrivileged(Native
    Method)
     .
     .
     .
    Caused by: org.apache.bsf.BSFException: The application script
    threw an exception: java.lang.NullPointerException: Null
    Pointer in Method Invocation BSF info: noFile at line: 2
     at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
     at org.apache.bsf.BSFManager$5.run(BSFManager.java:445)
     ... 140 more
    

Local fix

  • APAR creating...
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Running a secondary process fails when referencing an        *
    * environment specific project property when populating a      *
    * workflow property.                                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Fix is provided in IBM AnthillPro 5.0.0.1                    *
    ****************************************************************
    

Problem conclusion

  • The error scenario will work in the new version.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI04868

  • Reported component name

    ANTHILLPRO

  • Reported component ID

    5725M7400

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-10-26

  • Closed date

    2014-02-21

  • Last modified date

    2014-02-21

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    ANTHILLPRO

  • Fixed component ID

    5725M7400

Applicable component levels

  • R500 PSN

       UP

  • R500 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS4HD5","label":"IBM AnthillPro"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
14 October 2021