Jerry Cwiklik created UIMA-5718:
-----------------------------------
Summary: UIMA-DUCC:make DUCC_STATE_UPDATE_PORT optional
Key: UIMA-5718
URL: https://issues.apache.org/jira/browse/UIMA-5718
Project: UIMA
Issue Type: Improvement
Components: DUCC
Reporter: Jerry Cwiklik
Assignee: Jerry Cwiklik
Fix For: 2.2.2-Ducc
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)