Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Both uima-as services and JPs are coded to report state information and JMX url back to the Agent. When launching a process, an Agent adds an env var where it passes its listener port.
When an agent is not launching a process, the port will not be present and DUCC service wrapper code throws an exception:
2 Jan 2018 17:54:05,116 INFO JobProcessComponent - T[69] setState Notifying Agent New State::::Running
12 Jan 2018 17:54:05,117 ERROR DUCC.DuccEventDispatcher - J[N/A] T[69] dispatch
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: mina://tcp://localhost:null?sync=false&transferExchange=true due to: hostname can't be null
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:590)
at org.apache.camel.impl.DefaultProducerTemplate.resolveMandatoryEndpoint(DefaultProducerTemplate.java:453)
at org.apache.camel.impl.DefaultProducerTemplate.asyncRequestBody(DefaultProducerTemplate.java:491)
at org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher.dispatch(DuccEventDispatcher.java:77)
Modify code to test for presence of a port and if not available, disable state updates.