IBM Support

PI27296: MINIFYING AN EMPTY SERVER AND INSTALLING AN ESA FEATURE CAUSES A NULLPOINTEREXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When minifying an empty server (one with no features defined),
    the wlp/lib/features folder is not created because no features
    are included in the minified server. Then, when an ESA feature
    is installed using bin/featureManager the following NPE error is
    observed.
    .
    bin/featureManager install
    https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/w
    asdev/downloads/wlp/8.5.5.1/com.ibm.websphere.appserver.collecti
    veController-1.0.esa --when-file-exists=ignore
    null
    java.lang.NullPointerException
            at
    com.ibm.ws.kernel.feature.internal.generator.ManifestFileProcess
    or.getCoreProductFeatureDefinitions(ManifestFileProcessor.java:1
    63)
            at
    com.ibm.ws.kernel.feature.internal.generator.ManifestFileProcess
    or.getFeatureDefinitions(ManifestFileProcessor.java:96)
            at
    com.ibm.ws.kernel.feature.internal.cmdline.InstallAction.handleT
    ask(InstallAction.java:129)
            at
    com.ibm.ws.kernel.feature.internal.cmdline.InstallAction.handleT
    ask(InstallAction.java:65)
            at
    com.ibm.ws.kernel.feature.internal.cmdline.Action.handleTask(Act
    ion.java:60)
            at
    com.ibm.ws.kernel.feature.internal.cmdline.FeatureManagerTool.ma
    in(FeatureManagerTool.java:48)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
            at java.lang.reflect.Method.invoke(Method.java:611)
            at
    com.ibm.ws.kernel.boot.cmdline.UtilityMain.internal_main(Utility
    Main.java:142)
            at
    com.ibm.ws.kernel.boot.cmdline.UtilityMain.main(UtilityMain.java
    :39)
            at
    com.ibm.ws.kernel.boot.cmdline.Main.main(Main.java:52)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile who use the server   *
    *                  package command                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: Minifying an empty server and           *
    *                      installing an ESA feature causes an     *
    *                      NPE                                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When minifying an empty server (one with no features defined),
    the wlp/lib/features folder is not created because no features
    are included in the minified server. Then, when an ESA feature
    is installed using bin/featureManager the following NPE error is
    observed.
    
    bin/featureManager install
    https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/w
    asdev/downloads/wlp/8.5.5.1/com.ibm.websphere.appserver.collecti
    veController-1.0.esa --when-file-
    exists=ignore
    null
    java.lang.NullPointerException
            at
    com.ibm.ws.kernel.feature.internal.generator.ManifestFileProcess
    or.getCoreProductFeatureDefinitions(ManifestFileProcessor.java:1
    63)
            at
    com.ibm.ws.kernel.feature.internal.generator.ManifestFileProcess
    or.getFeatureDefinitions(ManifestFileProcessor.java:96)
    
    at
    com.ibm.ws.kernel.feature.internal.cmdline.InstallAction.handleT
    ask(InstallAction.java:129)
            at
    com.ibm.ws.kernel.feature.internal.cmdline.InstallAction.handleT
    ask(InstallAction.java:65)
            at
    com.ibm.ws.kernel.feature.internal.cmdline.Action.handleTask(Act
    ion.java:60)
            at
    com.ibm.ws.kernel.feature.internal.cmdline.FeatureManagerTool.ma
    in(FeatureManagerTool.java:48)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
            at
    java.lang.reflect.Method.invoke(Method.java:611)
            at
    com.ibm.ws.kernel.boot.cmdline.UtilityMain.internal_main(Utility
    Main.java:142)
            at
    com.ibm.ws.kernel.boot.cmdline.UtilityMain.main(UtilityMain.java
    :39)
            at
    com.ibm.ws.kernel.boot.cmdline.Main.main(Main.java:52)
    

Problem conclusion

  • The fix for this APAR is to create the missing features
    directory during the server package (minify) operation if it is
    possible to do so.  If it is not possible (for example, the
    current user lacks write permission), the package command will
    issue a more useful error message.
    
    The fix for this APAR is
    currently targeted for inclusion in fix pack 8.5.5.4.  Please
    refer to the Recommended Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI27296

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-10-09

  • Closed date

    2014-10-17

  • Last modified date

    2014-10-17

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • R855 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022