IBM Support

EDC5112I Resource temporarily unavailable errno2=0x0728060E when running Java program in CICS

Question & Answer


Question

Why would I receive EDC5112I with errno 0x0728060E when running a Java program in CICS Transaction Server for z/OS (CICS TS)? The JVM is not being created. The Java program is reading a DB2 table and PDF file on a UNIX directory, merging the two files to display a PDF.

This is the error that I am getting:

 Exception: EDC5112I Resource temporarily unavailable. (errno2=0x0728060E) 

I could not find the meaning of this message.

Answer

The dpicmount and dpicmerr files show the following UNIX error messages:

 Error in program xzy123
 Exception: EDC5112I Resource temporarily unavailable.
 (errno2=0x0728060E)

 java.io.IOException: EDC5112I Resource temporarily unavailable.
                      (errno2=0x0728060E)
         at sun.nio.ch.FileChannelImpl.map0(Native Method)
         at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:773)
         at com.xxxxxxx.text.pdf.MappedRandomAccessFile.init
            (Unknown Source)
         at com.xxxxxxx.text.pdf.MappedRandomAccessFile.<init>
            (Unknown Source)
         at com.xxxxxxx.text.pdf.RandomAccessFileOrArray.<init>
            (Unknown Source)
         at com.xxxxxxx.text.pdf.RandomAccessFileOrArray.<init>
            (Unknown Source)
         at com.xxxxxxx.text.pdf.PRTokeniser.<init>(Unknown Source)
         at com.xxxxxxx.text.pdf.PdfReader.<init>(Unknown Source)
         at com.xxxxxxx.text.pdf.PdfReader.<init>(Unknown Source)
         at xyz123.fillForm(xyz123.java:181)
         at xyz123.main(xyz123.java:99)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke
            (NativeMethodAccessorImpl.jav a:60)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke
            (DelegatingMethodAccessor Impl.java:37)
         at java.lang.reflect.Method.invoke(Method.java:611)
         at com.ibm.cics.server.Wrapper.call_main(Wrapper.java:642)
         at com.ibm.cics.server.Wrapper.callUserClass(Wrapper.java:913)
         at com.ibm.cics.server.Wrapper.invokeUserClass
            (Wrapper.java:1967)
         at com.ibm.cics.server.Wrapper.WrapperEntry(Wrapper.java:1281)

Using command tso bpxmtext 0728060E on the error code I get the follow meaning:

 BPXGYMMP 09/07/11
 
 JRUnSupportedKey: The caller of the service is running with a PSW Key that is not supported by the service.
 
 Action : Check the documentation for the service that is returning this error reason code to determine the supported Caller PSW Keys for the service.

Referring to the z/OS Callable services descriptions for the mmap (BPX1MMP, BPX4MMP) - Map pages of memory function indicates that one of the Requirements is that the program run in Supervisor state or problem state, PSW Key 2 or PSW Key 8. So, the code in BPXGYMMP will fail the mmap() call if the caller's psw is not in key8 or key2.

In this case, the caller of mmap() is program xyz123.java so it must be running in PSW key 2 or PSW key 8, or else the JRUnsupportedKey failure will occur.

The solution is for Java program xyz123.java to run with EXECKEY(CICS). When EXECKEY(CICS) is in the PROGRAM definition, CICS will use a J8 TCB and key 8 JVM.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"Java","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

CICS/TS CICSTS CICS TS CICS Transaction Server

Document Information

Modified date:
10 November 2016

UID

dwa1316925