IBM Support

PH22285: HOST JAVA APPLICATION CONFIGURATION DOES NOT DISPLAY SYSTEM.OUT

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Explorer for z/OS Version 3.1.1 or IBM Developer for z/OS
    - IDz - v14.2.1,
    when running or debugging a Java project using Host Java
    Application configuration, Console view doesn't display
    System.out messages.
    It does display System.err messages.
    
    
    Steps to reproduce:
    
    - create a Java project (ie MyZosJava)
    - change the local bin output folder to a RSE USS directory
    On Java Build path properties, click on browse then Create New
    Folder then Advanced and check Link to Folder in the file system
    and select RSE.
    - create a Java main class like
    
    package test;
    
    public class MyMain {
    
        public static void main(String[] args) {
            String msg = "Hello Java z/os World";
            System.out.println(msg);
            System.err.println(msg);
        }
    
    }
    
    - from menu Run > Debug > Debug configurations..., create a new
    Host Java Application configuration (named for example JavaZos)
    referencing the above Java project and main class
    - On Common tab, make sure that Allocate console is checked
    - Click on Debug => A console "JavaZos test.MyMain" is created
    on the Console view tab.
    - On the Debug view, resume or step over all lines and observe
    that only one red message is written to the console.
    

Local fix

  • When running or debugging, IDz will open a new USS shell which
    can be found on Remote Systems Explorer under the MVS connection
    and z/OS Unix Shells.
    Open this remote shell into the Remote Shell view to view
    System.out messages.
    

Problem summary

  • System.out not displayed in console when running host java
    application
    

Problem conclusion

  • The System.out produced in a java program is not getting
    displayed in the console view when using a Host Java Application
     configuration.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH22285

  • Reported component name

    EXP FOR Z/OS CL

  • Reported component ID

    5655EXP00

  • Reported release

    310

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-02-17

  • Closed date

    2020-03-06

  • Last modified date

    2020-03-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

    EXP FOR Z/OS CL

  • Fixed component ID

    5655EXP00

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSBDYH","label":"IBM Explorer for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"310","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 March 2020