IBM Support

PM30089: Null Pointer Exception in Java runtime

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • User has a EGL program, generated to Java, which calls a program
    in CICS, using CICSJ2C.
    The call contains Chinese characters.
    The call fails with NPE, withe the following stack trace.
    
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O
    java.lang.NullPointerException
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.MbcharValue.truncate(MbcharValue.java:273)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.MbcharValue.storeInBuffer(MbcharValue.java:519)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.OverlayContainer.storeInBuffer(OverlayContainer.j
    ava:184)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.util.ByteStorageUtil.storeInBuffer
    (ByteStorageUtil.java:825)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.util.ByteStorageUtil.storeInBuffer
    (ByteStorageUtil.java:677)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.util.ByteStorageUtil.argToBytesCso7
    (ByteStorageUtil.java:615)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.util.ByteStorageUtil.argsToBytesCso7
    (ByteStorageUtil.java:572)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.calls.CicsJ2cCaller.call(CicsJ2cCaller.java:89)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    com.ibm.javart.calls.CicsJ2cDelegate.call(CicsJ2cDelegate.java:9
    4)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    jsfhandlers.EMGW51SA.\func_writeDATA(EMGW51SA.java:6597)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    jsfhandlers.EMGW51SA.dispatchToAction(EMGW51SA.java:6228)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    jsfhandlers.EMGW51SA.writeDATA(EMGW51SA.java:6193)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [2011/1/5   00:01:28:546 CST] 00000078 SystemOut     O  at
    sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:45)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:37)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    java.lang.reflect.Method.invoke(Method.java:599)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    org.apache.el.parser.AstValue.invoke(AstValue.java:131)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.j
    ava:277)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.sun.faces.application.MethodBindingMethodExpressionAdapter.i
    nvoke
    (MethodBindingMethodExpressionAdapter.java:88)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.sun.faces.application.ActionListenerImpl.processAction
    (ActionListenerImpl.java:102)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    javax.faces.component.UICommand.broadcast(UICommand.java:387)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java
    :458)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.j
    ava:763)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute
    (InvokeApplicationPhase.java:82)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
    :118)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service
    (ServletWrapper.java:1449)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest
    (ServletWrapper.java:790)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest
    (ServletWrapper.java:443)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest
    (ServletWrapperImpl.java:175)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleReques
    t
    (CacheServletWrapper.java:91)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.webcontainer.WebContainer.handleRequest
    (WebContainer.java:859)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.webcontainer.WSWebContainer.handleRequest
    (WSWebContainer.java:1557)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.webcontainer.channel.WCChannelLink.ready
    (WCChannelLink.java:173)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscr
    iminatio
    n(HttpInboundLink.java:455)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewIn
    formatio
    n(HttpInboundLink.java:384)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready
    (HttpInboundLink.java:272)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sen
    dToDiscr
    iminators(NewConnectionInitialReadCallback.java:214)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.com
    plete
    (NewConnectionInitialReadCallback.java:113)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureComp
    leted
    (AioReadCompletionListener.java:165)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.io.async.AbstractAsyncFuture.invokeCallback
    (AbstractAsyncFuture.java:217)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.io.async.AsyncChannelFuture.fireCompletionActions
    (AsyncChannelFuture.java:161)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.io.async.ResultHandler.runEventProcessingLoop
    (ResultHandler.java:766)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.io.async.ResultHandler\2.run(ResultHandler.java:896)
    [2011/1/5   00:01:28:562 CST] 00000078 SystemOut     O  at
    com.ibm.ws.util.ThreadPool\Worker.run(ThreadPool.java:1527)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Java programs may fail with a NullPointerException when the
    data of an mbchar field is converted to EBCDIC.
    

Problem conclusion

  • The problem has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM30089

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-01-07

  • Closed date

    2011-05-06

  • Last modified date

    2011-05-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

    RATL BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

  • R751 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
06 May 2011