camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Camel Guy (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-8077) NullPointerException in getRouteDefinition before context is started
Date Sun, 30 Nov 2014 16:00:13 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229140#comment-14229140
] 

Camel Guy edited comment on CAMEL-8077 at 11/30/14 4:00 PM:
------------------------------------------------------------

For all routes? This exception doesn't occur in 2.13. The route with the id it's looking for
exists. Code works as-is if I call context.start() (or downgrade to 2.13 but I need the CamelFreemarkerDataModel
feature).


was (Author: camelguy):
For all routes? This exception doesn't occur in 2.13.

> NullPointerException in getRouteDefinition before context is started
> --------------------------------------------------------------------
>
>                 Key: CAMEL-8077
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8077
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.14.0
>            Reporter: Camel Guy
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.14.1, 2.15.0
>
>
> Not sure if this occurs in 2.14.0. Does not occur in 2.13.3.
> I am extending CamelSpringTestSupport with:
> @Override
> public boolean isUseAdviceWith() {
>     return true;
> }
> In a @Before method I call context.getRouteDefintion("some.id")
> It throws a NullPointerException:
> org.apache.camel.impl.DefaultCamelContext.getRouteDefinition(DefaultCamelContext.java:1464)
> If I put context.start() at the top of the @Before method, it works.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message