Web Service REST agent failing to start with Java 11.
search cancel

Web Service REST agent failing to start with Java 11.

book

Article ID: 261940

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The RA Web Service REST agent does not start with Java 11.

The log file shows the following entries:

U02013309 RA Agent is starting ...
U02013310 Failed to load RA Agent.
U00003620 Routine 'UCEX_R' forces trace because of error.
U02000048 TRACE file opened with flags '0000000000000001', max.trace: '9', memory trace: '0', search type: 'S', search string: ''.
U00003449 Output to the TRACE file is finished.
U07001001 Charset used by the Agent: 'ISO-8859-15'
U02000041 Shutdown Agent 'REST01'.

The forced trace file shows the following exceptions:

----------------------- Stack Trace -----------------------
org.apache.bsf.BSFException: exception from Groovy: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WebServiceRest.groovy: 71: unable to resolve class javax.xml.bind.JAXBContext
 @ line 71, column 1.
   import javax.xml.bind.JAXBContext
   ^

WebServiceRest.groovy: 72: unable to resolve class javax.xml.bind.Marshaller
 @ line 72, column 1.
   import javax.xml.bind.Marshaller
   ^

2 errors

	at org.codehaus.groovy.bsf.GroovyEngine.eval(GroovyEngine.java:101)
	at org.apache.bsf.BSFManager$5.run(BSFManager.java:445)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at org.apache.bsf.BSFManager.eval(BSFManager.java:442)
	at com.uc4.ex.cit.UCXJCITX.initAgent(UCXJCITX.java:306)
	at com.uc4.ex.cit.UCXJCITX$1.call(UCXJCITX.java:233)
	at com.uc4.ex.cit.UCXJCITX$1.call(UCXJCITX.java:230)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)


--------- Location from where the trace was called --------
java.lang.Exception: Log Stack
	at com.uc4.ex.logging.LogService.forcedTrace(LogService.java:514)
	at com.uc4.ex.logging.LogService.log(LogService.java:465)
	at com.uc4.ex.logging.LogService.log(LogService.java:642)
	at com.uc4.ex.cit.UCXJCITX.initAgent(UCXJCITX.java:349)
	at com.uc4.ex.cit.UCXJCITX$1.call(UCXJCITX.java:233)
	at com.uc4.ex.cit.UCXJCITX$1.call(UCXJCITX.java:230)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Environment

Release: Web Service REST solution < 4.5.0

Java 11

Cause

The RA Web Service REST solutions < 4.5.0 do not support Java 11.

Resolution

Upgrade the RA Web Service REST solution.