IBM Support

JR46268: REST API CAUSES NULLPOINTEREXCEPTION AND RETURNS 500 ERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When accessing REST API /rest/bpm/wle/v1/system, it
    fails on Process Server with a 500 error and a
    NullPointerException.
    
       If the REST API call is from the Process Portal as part
    of the login to Process Portal, then this will be logged on the
    Process Portal login screen:
    the error-message:
    (/rest/bpm/wle/v1/system?federationMode=true
    status:500 (JavaScript Error)
    at undefined
    
    
     This is the NullPointerException thrown
    [4/12/13 13:17:40:022 CEST] 00000047 RestHelper    W   <Null
    Message>
    java.lang.NullPointerException
     at
    com.ibm.bpm.rest.impl.system.SystemEnvResource.getEnvironmentVar
    iable(SystemEnvResource.java:147)
     at
    com.ibm.bpm.rest.impl.system.SystemsResource.getSystemMetadata(S
    ystemsResource.java:123)
    
       This is also logged in an FFDC entry
    [4/12/13 13:17:40:020 CEST]     FFDC
    Exception:java.lang.NullPointerException
    SourceId:RestHelper.getExceptionResponse ProbeId:254
    Reporter:java.lang.Class@a60e5671
    java.lang.NullPointerException
     at
    com.ibm.bpm.rest.impl.system.SystemEnvResource.getEnvironmentVar
    iable(SystemEnvResource.java:147)
     at
    com.ibm.bpm.rest.impl.system.SystemsResource.getSystemMetadata(S
    ystemsResource.java:123)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users utilizing the web-based REST          *
    *                  interface to retrieve data.                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: When accessing the REST API URL ,       *
    *                      /rest/bpm/wle/v1/system, a              *
    *                      NullPointerException occurs.            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Intermittently when invoking the REST UI URL
    /rest/bpm/wle/v1/system, a NullPointerException occurs.  We
    have found this happens only in Process Server servers and not
    Process Center servers. The URL returns with a HTTP 500 error
    and the following stack may be seen in the logs:
    java.lang.NullPointerException
    at
    com.ibm.bpm.rest.impl.system.SystemEnvResource.getEnvironmentVar
    iable(Sy
    stemEnvResource.java:147)
    at
    com.ibm.bpm.rest.impl.system.SystemsResource.getSystemMetadata(S
    ystemsRe
    source.java:123)
    

Problem conclusion

  • Code changes have been made to properly handle the exception
    and return with proper data.
    
    An interim fix is available on
    v8.0.1.0.  The fix will be integrated into the next fix pack.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR46268

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    801

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-04-05

  • Closed date

    2013-04-26

  • Last modified date

    2016-01-06

  • 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

    BPM ADVANCED

  • Fixed component ID

    5725C9400

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
07 January 2022