IBM Support

PM35288: JAVA.LANG.NULLPOINTEREXCEPTION WHEN Working with CERTIFICATEs

Fixes are available

7.0.0.19: WebSphere Application Server V7.0 Fix Pack 19
8.0.0.1: WebSphere Application Server V8.0 Fix Pack 1
7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
8.0.0.2: WebSphere Application Server V8.0 Fix Pack 2
8.0.0.3: WebSphere Application Server V8.0 Fix Pack 3
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
8.0.0.4: WebSphere Application Server V8.0 Fix Pack 4
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
8.0.0.5: WebSphere Application Server V8.0 Fix Pack 5
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
8.0.0.6: WebSphere Application Server V8.0 Fix Pack 6
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
8.0.0.7: WebSphere Application Server V8.0 Fix Pack 7
8.0.0.8: WebSphere Application Server V8.0 Fix Pack 8
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
8.0.0.9: WebSphere Application Server V8.0 Fix Pack 9
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
8.0.0.10: WebSphere Application Server V8.0 Fix Pack 10
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
8.0.0.11: WebSphere Application Server V8.0 Fix Pack 11
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
8.0.0.12: WebSphere Application Server V8.0 Fix Pack 12
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When attempting to add a signer certificate via the console or
    Export the following error is reported in the logs,
    
    Adding a signer:
    ---------------------------------------------------------------
    [3/21/11 14:15:41:796 CDT] 0000001d WSKeyStoreRem 3   Exception
    executing KeyStore method.
                                     java.lang.NullPointerException
     at
    com.ibm.ws.ssl.model.KeyStoreInfo.toString(KeyStoreInfo.java:311
    )
     at java.lang.String.valueOf(String.java:1511)
     at java.lang.StringBuffer.append(StringBuffer.java:187)
     at
    com.ibm.ws.ssl.config.WSKeyStore.printParms(WSKeyStore.java:2301
    )
     at
    com.ibm.ws.ssl.config.WSKeyStore.invokeKeyStoreCommand(WSKeyStor
    e.java:1328)
     at
    com.ibm.ws.ssl.config.WSKeyStoreRemotable.invokeKeyStoreCommand(
    WSKeyStoreRemotable.java:253)
     at
    com.ibm.ws.ssl.config.WSKeyStoreRemotable.invokeKeyStoreCommand(
    WSKeyStoreRemotable.java:132)
     at
    com.ibm.ws.ssl.commands.signerCertificates.AddSignerCertificate.
    signerCertificateAdd(AddSignerCertificate.java:201)
     at
    com.ibm.ws.ssl.commands.signerCertificates.AddSignerCertificate.
    afterStepsExecuted(AddSignerCertificate.java:168)
    
    The resulting page shows all blank values and you can not add
    the signer.
    ----------------------------------------------------------------
    
    Exporting:
    ----------------------------------------------------------------
    [8/13/12 4:15:42:814 EDT] 00000014 WSKeyStoreRem 3   Exception
    executing KeyStore method.
                                     java.lang.NullPointerException
     at
    com.ibm.ws.ssl.model.KeyStoreInfo.toString(KeyStoreInfo.java:311
    )
     at java.lang.String.valueOf(String.java:1512)
     at java.lang.StringBuffer.append(StringBuffer.java:187)
     at
    com.ibm.ws.ssl.config.WSKeyStore.printParms(WSKeyStore.java:2302
    )
     at
    com.ibm.ws.ssl.config.WSKeyStore.invokeKeyStoreCommand(WSKeyStor
    e.java:1329)
     at
    com.ibm.ws.ssl.config.WSKeyStoreRemotable.invokeKeyStoreCommand(
    WSKeyStoreRemotable.java:253)
     at
    com.ibm.ws.ssl.config.WSKeyStoreRemotable.invokeKeyStoreCommand(
    WSKeyStoreRemotable.java:132)
     at
    com.ibm.ws.ssl.commands.personalCertificates.ExtractCertificate.
    personalCertificateExtract(ExtractCertificate.java:188)
     at
    com.ibm.ws.ssl.commands.personalCertificates.ExtractCertificate.
    afterStepsExecuted(ExtractCertificate.java:149)
     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.ws.console.security.Certificates.PersonalCertsActionDeta
    ilActionGen.executeCommand(PersonalCertsActionDetailActionGen.ja
    va:170)
     at
    com.ibm.ws.console.security.Certificates.PersonalCertsActionDeta
    ilActionGen.extractCert(PersonalCertsActionDetailActionGen.java:
    79)
     at
    com.ibm.ws.console.security.Certificates.PersonalCertsActionDeta
    ilAction.execute(PersonalCertsActionDetailAction.java:171)
     at
    org.apache.struts.action.RequestProcessor.processActionPerform(U
    nknown Source)
     at org.apache.struts.action.RequestProcessor.process(Unknown
    Source)
     at org.apache.struts.action.ActionServlet.process(Unknown
    Source)
     at org.apache.struts.action.ActionServlet.doPost(Unknown
    Source)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
     at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr
    apper.java:1657)
     at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr
    apper.java:1597)
     at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebApp
    FilterChain.java:131)
     at
    com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssiste
    nce(WSCUrlFilter.java:933)
     at
    com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTask
    State(WSCUrlFilter.java:500)
     at
    com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilt
    er.java:321)
     at
    com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(Fi
    lterInstanceWrapper.java:188)
     at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebApp
    FilterChain.java:116)
     at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAp
    pFilterChain.java:77)
     at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebA
    ppFilterManager.java:908)
     at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser
    vletWrapper.java:934)
     at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser
    vletWrapper.java:502)
     at
    com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest
    (ServletWrapperImpl.java:179)
     at
    com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:
    3933)
     at
    com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.j
    ava:276)
     at
    com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.
    java:931)
     at
    com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContai
    ner.java:1583)
     at
    com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLin
    k.java:186)
     at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscr
    imination(HttpInboundLink.java:445)
     at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRe
    quest(HttpInboundLink.java:504)
     at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequ
    est(HttpInboundLink.java:301)
     at
    com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complet
    e(HttpICLReadCallback.java:83)
     at
    com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureComp
    leted(AioReadCompletionListener.java:165)
     at
    com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyn
    cFuture.java:217)
     at
    com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncC
    hannelFuture.java:161)
     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
     at
    com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
     at
    com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHand
    ler.java:775)
     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
    ----------------------------------------------------------------
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Adding a signer certificate fails due   *
    *                      to NullPointerException                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The error happens in toString method which accesses some
    objects without checking validity of the object. As a result,
    the code tried to access some of a field in an object
    which is null and caught NullPointerException.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM35288

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-21

  • Closed date

    2011-04-25

  • Last modified date

    2012-08-15

  • 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 APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R700 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM35288

Modified date: 15 August 2012