search cancel

[email protected] fails with return code '1'.

book

Article ID: 229961

calendar_today

Updated On:

Products

CA Continuous Delivery Automation - Automation Engine CA Automic One Automation

Issue/Introduction

The action [email protected] as part of PCK.AUTOMIC_FILESYSTEM.PUB.ACTION.COPY fails with return code 1.

20211207/160541.364 - U02000005 Job '[email protected]' with RunID '24276322' started.
20211207/160541.385 - U02000003 Job '[email protected]' started with RunID '24276322'.
20211207/160541.522 - U02002039 Successfully established connection with '<IP_address>:<port>'  (socket handle = 's=8(ID=11)').
20211207/160541.534 - U02002040 Disconnected from '*ID11' (socket handle = 's=8,ID=11').
20211207/160541.825 - U02000009 Job '[email protected]' with RunID '24276322' ended with return code '1'.

Job report:

INFO: Copy file '/folder/folder/filename.tar.gz' to '/folder/folder' with overwrite flag is 'YES' and exclude pattern is 
''Exception in thread "main" java.lang.ClassFormatError: com.uc4.ara.feature.AraFileCmd (unrecognized class file version)   
at java.lang.VMClassLoader.defineClass(libgcj.so.10)   
at java.lang.ClassLoader.defineClass(libgcj.so.10)   
at java.security.SecureClassLoader.defineClass(libgcj.so.10)   
at java.net.URLClassLoader.findClass(libgcj.so.10)   
at java.lang.ClassLoader.loadClass(libgcj.so.10)   
at java.lang.ClassLoader.loadClass(libgcj.so.10)   
at gnu.java.lang.MainThread.run(libgcj.so.10)

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Cause

Configuration.

Resolution

The environment variable JAVA_HOME was not set to i.e. Java 8 and therefore the default Java 5 of the Linux was used.

Once JAVA_HOME was set to Java 8 and included in the PATH ($JAVA_HOME/bin) the job finished as expected with return code 0.