camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonin Stefanutti <anto...@stefanutti.fr>
Subject Re: Canot start DefaultCamelContext for Camel-core 2.18.0
Date Wed, 07 Dec 2016 09:00:48 GMT
It is likely related to https://issues.apache.org/jira/browse/CAMEL-10562.

Antonin

> On 30 Nov 2016, at 15:07, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> 
> Hi
> 
> Make sure you use Java 8 and that you do not have mixed versions of
> Camel on the classpath.
> 
> On Wed, Nov 30, 2016 at 2:58 PM, imben1109 <imben1109@gmail.com> wrote:
>> I simply create DefaultCamelContext and start for camel-core-2.18.0
>> 
>> public class Appl {
>>  public static void main(String[] args) throws Exception{
>>    CamelContext context = new DefaultCamelContext();
>>    context.start();
>>  }
>> }
>> 
>> However, it throws UnsupportedOperationException. It works fine in
>> camel-core-2.14.4.
>> 
>> Exception in thread "main" java.lang.UnsupportedOperationException
>> at
>> java.util.concurrent.CopyOnWriteArrayList$COWIterator.set(CopyOnWriteArrayList.java:1185)
>> at java.util.Collections.sort(Collections.java:234)
>> at
>> org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3525)
>> at
>> org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3308)
>> at
>> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3162)
>> at
>> org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:182)
>> at
>> org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2957)
>> at
>> org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2953)
>> at
>> org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2976)
>> at
>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2953)
>> at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>> at
>> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2920)
>> at com.techoffice.example.Appl.main(Appl.java:18)
>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Canot-start-DefaultCamelContext-for-Camel-core-2-18-0-tp5790801.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2


Mime
View raw message