camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Cheng (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-10545) Canot start DefaultCamelContext
Date Wed, 30 Nov 2016 06:40:58 GMT
Ben Cheng created CAMEL-10545:
---------------------------------

             Summary: Canot start DefaultCamelContext
                 Key: CAMEL-10545
                 URL: https://issues.apache.org/jira/browse/CAMEL-10545
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.18.0
            Reporter: Ben Cheng


I simply create DefaultCamelContext and start. 

public class Appl {
	public static void main(String[] args) throws Exception{
          CamelContext context = new DefaultCamelContext();
          context.start();
        }
}

It throws exception:
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)




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

Mime
View raw message