You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2018/02/05 18:16:00 UTC

[jira] [Closed] (UIMA-5718) UIMA-DUCC:make DUCC_UPDATE_PORT optional

     [ https://issues.apache.org/jira/browse/UIMA-5718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-5718.
-------------------------------
    Resolution: Fixed

Disabled state update when agent update port not available

> UIMA-DUCC:make DUCC_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
>            Priority: Major
>             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)