我遇到了运行时错误:
12:57:16.627 WARN AnnotationTypeConverterLoader - Ignoring converter type: org.apache.camel.scala.converter.ScalaMutableCollections as a dependent class could not be found: java.lang.NoClassDefFoundError: scala/collection/convert/LowPriorityWrapAsScala
java.lang.NoClassDefFoundError: scala/collection/convert/LowPriorityWrapAsScala
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_73]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_73]
at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_73]
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.loadConverterMethods(AnnotationTypeConverterLoader.java:260) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:128) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:518) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:47) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1824) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:965) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:926) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1114) [camel-core-2.11.4.jar:2.11.4]
at org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1131) [camel-core-2.11.4.jar:2.11.4]
...
这是否与Camel有关,或者我在某处隐藏了某些内容?
答案 0 :(得分:1)
LowPriorityWrapAsScala已弃用,不再包含在Scala 2.11中。