Some jobs return error after migrated from 11.3.6 to 12.0.1

book

Article ID: 207188

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

We recently migrated from CA Autosys Workload Automation from 11.3.6 to 12.0.1 and we found some of the jobs thrown the following error when triggered:

T_X11TransTRANS(ibmSHMConnect) () can't connect: errno = 68
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server us
ing ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:79
)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:140)
        at java.security.AccessController.doPrivileged(AccessController.java:678)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:88)
        at java.lang.Class.forNameImpl(Native Method)
        at java.lang.Class.forName(Class.java:337)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:114)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
ment.java:93)
        at javax.swing.RepaintManager.<clinit>(RepaintManager.java:244)
        at javax.swing.JComponent.repaint(JComponent.java:4803)
        at java.awt.Component.repaint(Component.java:3322)
        at javax.swing.text.JTextComponent.setEditable(JTextComponent.java:1769)
        at javax.swing.text.JTextComponent.<init>(JTextComponent.java:320)
        at javax.swing.JTextField.<init>(JTextField.java:242)
        at javax.swing.JTextField.<init>(JTextField.java:209)
        at hk.gov.eman.util.report.Logon.<init>(Logon.java:78)
        at hk.gov.eman.util.report.ReportManager.<init>(ReportManager.java:48)
        at hk.gov.eman.BatchJob.setReportService(BatchJob.java:1318)
        at hk.gov.eman.common.UPMM063M.UPMM063M.sendFax(UPMM063M.java:67)
        at hk.gov.eman.common.UPMM063M.UPMM063M.main(UPMM063M.java:29)

Similar error was not triggered when running with 11.3.6 client and agent. 

Cause

The jobs in question have their own specific profiles rather than using /etc/auto.profile

Environment

Release : 12.0

Component : CA Workload Automation System Agent

Resolution

Uncomment the following parameter in the agentparm.txt, restart the System Agent service and re-run the job

oscomponent.profiles.global.override=true

Additional Information

Using the java environment variable

-Djava.awt.headless=true

Will prevent Java from using the UI.