2014-11-25 67 views
0

我是Jboss Fuse和Jboss開發工作室的新成員。我必須使用ActiveMQ端點開發一條到Fuse ESB的路線。使用ActiveMQ執行駱駝藍圖作爲「本地駱駝上下文(無測試)」

我可以執行並測試Demo和以前的演示。

然而,當我嘗試執行更complex route爲「本地駱駝背景(沒有測試)」我得到了以下錯誤:

[ERROR] Terminal initialization failed; falling back to unsupported 
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected 
    at jline.TerminalFactory.create(TerminalFactory.java:101) 
    at org.apache.karaf.shell.console.jline.TerminalFactory.init(TerminalFactory.java:37) 
    at org.apache.karaf.shell.console.jline.TerminalFactory.getTerminal(TerminalFactory.java:30) 
    at org.apache.karaf.shell.console.jline.ConsoleFactory.doStart(ConsoleFactory.java:125) 
    at org.apache.karaf.shell.console.jline.ConsoleFactory$1.run(ConsoleFactory.java:98) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:67) 
    at org.apache.karaf.shell.console.jline.ConsoleFactory.start(ConsoleFactory.java:96) 
    at org.apache.karaf.shell.console.jline.ConsoleFactory.registerCommandProcessor(ConsoleFactory.java:76) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297) 
    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:573) 
    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:555) 
    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:450) 
    at org.apache.aries.blueprint.container.ReferenceRecipe.bind(ReferenceRecipe.java:164) 
    at org.apache.aries.blueprint.container.ReferenceRecipe.retrack(ReferenceRecipe.java:132) 
    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.updateListeners(AbstractServiceReferenceRecipe.java:442) 
    at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:111) 
    at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88) 
    at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245) 
    at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183) 
    at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:676) 
    at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:374) 
    at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106) 
    at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) 
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 
    at java.lang.Thread.run(Thread.java:695) 

[ERROR] Terminal initialization failed; falling back to unsupported 
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected 
    at jline.TerminalFactory.create(TerminalFactory.java:101) 
    at org.apache.karaf.shell.console.jline.TerminalFactory.init(TerminalFactory.java:37) 
    at org.apache.karaf.shell.console.jline.TerminalFactory.getTerminal(TerminalFactory.java:30) 
    at org.apache.karaf.shell.console.jline.ConsoleFactory.doStart(ConsoleFactory.java:125) 
    at org.apache.karaf.shell.console.jline.ConsoleFactory$1.run(ConsoleFactory.java:98) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:67) 
    at org.apache.karaf.shell.console.jline.ConsoleFactory.start(ConsoleFactory.java:96) 
    at org.apache.karaf.shell.console.jline.ConsoleFactory.registerCommandProcessor(ConsoleFactory.java:76) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297) 
    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:573) 
    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:555) 
    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:450) 
    at org.apache.aries.blueprint.container.ReferenceRecipe.bind(ReferenceRecipe.java:164) 
    at org.apache.aries.blueprint.container.ReferenceRecipe.retrack(ReferenceRecipe.java:132) 
    at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.updateListeners(AbstractServiceReferenceRecipe.java:442) 
    at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:111) 
    at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88) 
    at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245) 
    at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183) 
    at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:676) 
    at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:374) 
    at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106) 
    at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) 
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 
    at java.lang.Thread.run(Thread.java:695) 
+0

實際上,我可以管理這個通過更改fabric8版本來解決問題。 – user1032817 2014-12-16 03:21:41

回答

0

檢查SBT和SBT發射使用相同的版本,看sbt 0.13.0 JLine incompatibility detected

如果你使用Maven作爲構建工具,您可以測試這個如下:

mvn dependency:tree 

或者,在Karaf控制檯,檢查功能與:

features:list