Some jobs return error after migrated from 11.3.6 to 12.0.1
search cancel

Some jobs return error after migrated from 11.3.6 to 12.0.1

book

Article ID: 207188

calendar_today

Updated On:

Products

Autosys Workload Automation CA Workload Automation AE - System Agent (AutoSys)

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 xx.xxx.xxxx.util.report.Logon.<init>(Logon.java:78)
        at xx.xxx.xxxx.util.report.ReportManager.<init>(ReportManager.java:48)
        at xx.xxx.xxxx.BatchJob.setReportService(BatchJob.java:1318)
        at xx.xxx.xxxx.common.xxxxxxx.example.sendFax(xxxxxxx.java:67)
        at xx.xxx.xxxx.common.xxxxxxx.example.main(xxxxxxx.java:29)

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

Environment

Release : 12.0

Component : CA Workload Automation System Agent

Cause

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

Resolution

The best option is to edit /etc/auto.profile and commented out the following
DISPLAY=":0.0"
export DISPLAY

This will not require an agent restart

The second option is to 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.