You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Camel Guy (JIRA)" <ji...@apache.org> on 2014/11/24 03:59:12 UTC
[jira] [Updated] (CAMEL-8077) NullPointerException in
getRouteDefinition before context is started
[ https://issues.apache.org/jira/browse/CAMEL-8077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Camel Guy updated CAMEL-8077:
-----------------------------
Description:
Not sure if this occurs in 2.14.0.
I am extending CamelSpringTestSupport with:
@Override
public boolean isUseAdviceWith() {
return true;
}
In a @Before method I call context.getRouteDefintion("some.id")
It throws an exception:
org.apache.camel.impl.DefaultCamelContext.getRouteDefinition(DefaultCamelContext.java:1464)
If I put context.start() at the top of the @Before method, it works.
Does not occur in 2.13.3
was:
Not sure if this occurs in 2.14.0.
I am extending CamelSpringTestSupport with:
@Override
public boolean isUseAdviceWith() {
return true;
}
In a @Before method I call context.getRouteDefintion("some.id")
It throws an exception:
org.apache.camel.impl.DefaultCamelContext.getRouteDefinition(DefaultCamelContext.java:1464)
If I put context.start() at the top of the @Before method, it works.
> 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.1
> Reporter: Camel Guy
>
> Not sure if this occurs in 2.14.0.
> I am extending CamelSpringTestSupport with:
> @Override
> public boolean isUseAdviceWith() {
> return true;
> }
> In a @Before method I call context.getRouteDefintion("some.id")
> It throws an exception:
> org.apache.camel.impl.DefaultCamelContext.getRouteDefinition(DefaultCamelContext.java:1464)
> If I put context.start() at the top of the @Before method, it works.
> Does not occur in 2.13.3
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)