You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Lou DeGenaro (JIRA)" <de...@uima.apache.org> on 2014/03/27 15:07:15 UTC

[jira] [Created] (UIMA-3697) DUCC common services

Lou DeGenaro created UIMA-3697:
----------------------------------

             Summary: DUCC common services
                 Key: UIMA-3697
                 URL: https://issues.apache.org/jira/browse/UIMA-3697
             Project: UIMA
          Issue Type: Bug
          Components: DUCC
    Affects Versions: 1.0-Ducc
            Reporter: Lou DeGenaro
            Assignee: Jerry Cwiklik
            Priority: Minor


If information that is needed for route building is missing from ducc.properties, no clue is given in the daemon logs.

Below is shown a stack trace obtained by adding try/catch code to WS component only.  

In this case, the problem was that the following was missing from ducc.properties:

ducc.db.state.update.endpoint=ducc.db.state

The same problem could occur for other daemons relative their routes.

=====

26 Mar 2014 18:22:04,827 1  INFO WS.WebServerConfiguration - webServer     N/A routes added
26 Mar 2014 18:22:04,907 1  INFO WS.WebServerComponent - start     N/A .....Starting Admin Channel on endpoint:activemq:topic:ducc.admin.channel
26 Mar 2014 18:22:05,005 1  INFO WS.WebServerComponent - startAdminChannel     N/A Admin Channel Activated on endpoint:activemq:topic:ducc.admin.channel
26 Mar 2014 18:22:05,005 1  INFO WS.WebServerComponent - start     N/A .....Starting Camel Context
26 Mar 2014 18:22:07,722 1 ERROR WS.WebServerComponent - null     N/A
org.apache.camel.FailedToCreateRouteException: Failed to create route route6: Route[[From[no uri or ref supplied!]] -> [process[org.apache... because of Either 'uri' or 'ref' must be specified on: org.apache.camel.impl.DefaultRouteContext@52ea8917
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:176)
        at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:722)
        at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1779)
        at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1572)
        at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1437)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
        at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1405)
        at org.apache.uima.ducc.common.component.AbstractDuccComponent.start(AbstractDuccComponent.java:283)
        at org.apache.uima.ducc.ws.WebServerComponent.start(WebServerComponent.java:74)
        at org.apache.uima.ducc.common.component.AbstractDuccComponent.start(AbstractDuccComponent.java:263)
        at org.apache.uima.ducc.common.main.DuccService.boot(DuccService.java:141)
        at org.apache.uima.ducc.common.main.DuccService.main(DuccService.java:212)
Caused by: java.lang.IllegalArgumentException: Either 'uri' or 'ref' must be specified on: org.apache.camel.impl.DefaultRouteContext@52ea8917
        at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:129)
        at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
        at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:89)
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:851)
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:171)
        ... 11 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)