首次安装后启动Apache Servicemix时出现问题

时间:2013-01-14 10:58:40

标签: installation apache-servicemix

我是apache camel和servicemix的新手。我已在Windows上下载了apache serviceMix(zip),但运行servicemix.bat会在我的cmd上返回错误。错误:

Could not create framework: java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(ArrayList.java:371)
at java.util.ArrayList.get(ArrayList.java:384)
at org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1050)
at org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:859)
at org.apache.felix.framework.Felix.toString(Felix.java:1019)
at org.apache.felix.framework.Logger.doLog(Logger.java:128)
at org.apache.felix.framework.Logger._log(Logger.java:181)
at org.apache.felix.framework.Logger.log(Logger.java:114)
at org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:201)
at org.apache.felix.framework.Felix.<init>(Felix.java:374)
at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
at org.apache.karaf.main.Main.launch(Main.java:266)
at org.apache.karaf.main.Main.main(Main.java:427)

我错过了什么?

2 个答案:

答案 0 :(得分:4)

ServiceMix&lt; = 4.4.2中存在Java 7的已知问题。 您必须切换回Java 6.

答案 1 :(得分:0)

可以通过安装1.6 java,servicemix 4.4支持1.6 java来解决错误。