IBM Support

PI81168: NULLPOINTEREXCEPTION WHEN ATTEMPTING TO CREATE A KEYSTORE REMOTELY IN WSADMIN

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An NPE is thrown when attempting to create a remote keystore
    using AdminTask.createKeyStore while running wsadmin in local
    mode.  This operation is not possible in wsadmin local mode.
    This APAR will correct the code so that a user friendly message
    is issued instead of a NullPointerException.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server for z/OS V8.5 and V9.0.              *
    ****************************************************************
    * PROBLEM DESCRIPTION: WSADMIN AdminTask.createKeyStore        *
    *                      command in Local mode causes            *
    *                      NullPointerException                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In z/OS AdminTask.createKeyStore may require Connected mode.
    When the keystore is in the SAF local OS,
    AdminTask.createKeyStore requires remote access via the
    Application Server process. That requires System Management
    services that are not available in local mode, Connected mode
    is required.
    If running in Local mode when Connected mode is required, you
    will see an NPE similar to this:
    java.lang.NullPointerException
    at
    com.ibm.ws.ssl.config.WSKeyStoreRemotable.invokeKeyStoreCommand(
    WSKeyStoreRemotable.java:330)
    at
    com.ibm.ws.ssl.config.WSKeyStoreRemotable.invokeKeyStoreCommand(
    WSKeyStoreRemotable.java:139)
    at
    com.ibm.ws.ssl.commands.keyStores.KeyStoreHelper.getDefaultSigne
    rs(KeyStoreHelper.java:435)
    at
    com.ibm.ws.ssl.commands.keyStores.KeyStoreHelper.addDefaultSigne
    rs(KeyStoreHelper.java:485)
    at
    com.ibm.ws.ssl.commands.keyStores.KeyStoreHelper.createKeyStoreF
    ile(KeyStoreHelper.java:625)
    at
    com.ibm.ws.ssl.commands.keyStores.KeyStoreHelper.createKeyStoreC
    md(KeyStoreHelper.java:362)
    at
    com.ibm.ws.ssl.commands.keyStores.CreateKeyStore.afterStepsExecu
    ted(CreateKeyStore.java:623)
    at
    com.ibm.websphere.management.cmdframework.provider.AbstractTaskC
    ommand.executeReal(AbstractTaskCommand.java:855)
    at
    com.ibm.websphere.management.cmdframework.provider.AbstractTaskC
    ommand.execute(AbstractTaskCommand.java:807)
    at
    com.ibm.websphere.management.async.client.AsyncCommandClient.exe
    cute(AsyncCommandClient.java:177)
    at
    com.ibm.ws.scripting.adminCommand.AdminCmdController.executeCmd(
    AdminCmdController.java:1877)
    at
    com.ibm.ws.scripting.adminCommand.AdminCmdController.processCmd(
    AdminCmdController.java:318)
    at
    com.ibm.ws.scripting.adminCommand.AdminCmdProxyHandler.invoke(Ad
    minCmdProxyHandler.java:92)
    at
    com.ibm.ws.scripting.adminCommand.AdminCmdProxyBase.__method3(Ad
    minCmdProxyBase.java:53)
    at
    com.ibm.ws.scripting.adminCommand.AdminTask.createKeyStore(Unkno
    wn Source)
    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
    org.python.core.PyReflectedFunction.__call__(PyReflectedFunction
    .java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyInstance.invoke(PyInstance.java)
    at org.python.pycode._pyx50.installCAcer$16(<string>:206)
    at org.python.pycode._pyx50.call_function(<string>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.pycode._pyx50.f$0(<string>:232)
    at org.python.pycode._pyx50.call_function(<string>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.Py.exec(Py.java)
    at
    org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
    at
    com.ibm.bsf.engines.jython.JythonEngine$BSFPythonInterpreter.exe
    c(Unknown Source)
    at com.ibm.bsf.engines.jython.JythonEngine.exec(Unknown
    Source)
    at com.ibm.bsf.BSFManager$6.run(Unknown Source)
    at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:453)
    at com.ibm.bsf.BSFManager.exec(Unknown Source)
    at
    com.ibm.ws.scripting.AbstractShell.executeScript(AbstractShell.j
    ava:1218)
    at
    com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:2288)
    at com.ibm.ws.scripting.WasxShell.main(WasxShell.java:1172)
    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.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:23
    4)
    at
    com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:96)
    at
    com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:77)
    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
    org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodW
    ithException(EclipseAppContainer.java:587)
    at
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseApp
    Handle.java:198)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.run
    Application(EclipseAppLauncher.java:110)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.sta
    rt(EclipseAppLauncher.java:79)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStart
    er.java:369)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStart
    er.java:179)
    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
    org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
    at org.eclipse.core.launcher.Main.run(Main.java:981)
    at
    com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLaunche
    r.java:402)
    at
    com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:16
    5)
    

Problem conclusion

  • Security code has been updated to prevent the
    NullPointerException(NPE) and issue a descriptive error
    message:
    CWPKI0464E: Operation createKeystore for the keystore command
    failed to complete. The Administration Service is unavailable.
    This particular operation requires Connected mode.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.13 and 9.0.0.6.  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

    PI81168

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-05-05

  • Closed date

    2017-08-25

  • Last modified date

    2017-08-25

  • 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

    WEBSPHERE FOR Z

  • Fixed component ID

    5655I3500

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
19 October 2021