1 Reply Latest reply on Apr 11, 2010 12:31 PM by Peter Thygesen

    OSGi-Service: Error when running example from chap.8 (ESB 4.2)

    Peter Thygesen Novice

      I was trying out the OSGi service example found in then "Deploying into the OSGi Container" Book chap. 8  http://fusesource.com/docs/esb/4.2/deploy_osgi/DeploySimple-Publish.html

       

      After installing the service a list command tells me that the service failed. Checking the log I see that some exceptions were thrown.

       

      20:19:51,129 | ERROR | pool-2-thread-2  | BlueprintContainerImpl           | container.BlueprintContainerImpl  337 | Unable to start blueprint container for bundle null

      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

           at java.util.ArrayList.RangeCheck(ArrayList.java:547)

           at java.util.ArrayList.get(ArrayList.java:322)

           at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.checkDirectives(BlueprintContainerImpl.java:180)

           at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:232)

           at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:211)

           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

           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:207)

           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

           at java.lang.Thread.run(Thread.java:619)

       

      Can anybody help me?