Pentaho

 View Only

 ERROR [KarafBoot] Error starting Karaf

PAUL FLAVIO GRAF's profile image
PAUL FLAVIO GRAF posted 11-30-2022 06:08
Hi everyone.
I'm new to Pentaho and just starting.
But starting is a bit more difficult than expected.
I'm getting the following message in debug mode when launching Spoon. It concerns Karaf:

org.apache.karaf.main.Main launchINFO: Installing and starting initial bundlesorg.apache.karaf.main.Main$1 logSEVERE: Unable to delete archive directory - C:\data-integration\system\karaf\caches\spoon\data-1\cache\bundle6ERROR [KarafBoot] Error starting Karafjava.lang.RuntimeException: Error installing bundle listed in startup.properties with url: mvn:org.apache.karaf.features/org.apache.karaf.features.extension/4.2.15 and startlevel: 1at org.apache.karaf.main.Main.installAndStartBundles(Main.java:580) ~[org.apache.karaf.main-4.2.15.jar:4.2.15]at org.apache.karaf.main.Main.launch(Main.java:275) ~[org.apache.karaf.main-4.2.15.jar:4.2.15]at org.pentaho.platform.osgi.KarafBoot$4.run(KarafBoot.java:263) [pentaho-platform-extensions-9.3.0.0-428.jar:9.3.0.0-428]at java.lang.Thread.run(Unknown Source) [?:?]at org.pentaho.platform.osgi.KarafBoot.startup(KarafBoot.java:272) [pentaho-platform-extensions-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.osgi.registryExtension.OSGIPluginRegistryExtension.init(OSGIPluginRegistryExtension.java:107) [pdi-osgi-bridge-core-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.core.plugins.PluginRegistry.init(PluginRegistry.java:565) [kettle-core-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.core.plugins.PluginRegistry.init(PluginRegistry.java:545) [kettle-core-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironment.java:117) [kettle-core-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironment.java:80) [kettle-core-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:134) [kettle-engine-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:101) [kettle-engine-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:82) [kettle-engine-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:643) [kettle-ui-swt-9.3.0.0-428.jar:9.3.0.0-428]at org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:635) [kettle-ui-swt-9.3.0.0-428.jar:9.3.0.0-428]at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]at java.lang.Thread.run(Unknown Source) [?:?]Caused by: org.osgi.framework.BundleException: Could not create bundle object.at org.apache.felix.framework.Felix.installBundle(Felix.java:3095) ~[?:?]at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167) ~[?:?]at org.apache.karaf.main.Main.installAndStartBundles(Main.java:573) ~[org.apache.karaf.main-4.2.15.jar:4.2.15]... 18 moreCaused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0at jdk.internal.util.Preconditions.outOfBounds(Unknown Source) ~[?:?]at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) ~[?:?]at jdk.internal.util.Preconditions.checkIndex(Unknown Source) ~[?:?]at java.util.Objects.checkIndex(Unknown Source) ~[?:?]at java.util.ArrayList.get(Unknown Source) ~[?:?]at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:516) ~[?:?]at org.apache.felix.framework.Felix.installBundle(Felix.java:3061) ~[?:?]at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167) ~[?:?]at org.apache.karaf.main.Main.installAndStartBundles(Main.java:573) ~[org.apache.karaf.main-4.2.15.jar:4.2.15]

Would someone be able to understand what this is about and what I can do to fix it?

Thanks!
Andres Perez Confortti's profile image
Andres Perez Confortti
Hi Paul,

First advice in order to see if it is a Karaf corruption issue (it could happen in failures initial startups), I'd ask you to do the following:

  • Stop Spoon or any PDI instance execution
  • Delete entire content of C:\data-integration\system\karaf\caches\
  • Start Spoon again (it should take longer this time) and observe if system starts correctly

Regards,
Andrés Pérez​