0 Replies Latest reply on May 3, 2010 9:22 AM by Sasa Skevin

    Examples from documentation doesn't work

    Sasa Skevin Newbie

      Hi!

       

      I have been trying to run OSGI examples from these links:

       

      http://fusesource.com/docs/esb/4.2/deploy_osgi/DeploySimple-Publish.html

      http://fusesource.com/docs/esb/4.2/deploy_osgi/DeploySimple-Access.html

       

      But both doesn't work. When installing in Karaf they both had errors like this:

       

      15:04:56,390 | ERROR | pool-2-thread-1  | BlueprintContainerImpl           | container.BlueprintContainerImpl  337 | Unable to start blueprint contain

      er 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)

       

      By searching different forums I had succeeded to make first example install successfully. The error is on example page where id tag is missing. Instead of:

       

       

       

      After that first example installs successful. I tried to find a solution for second example but without success.

       

      As I'm a newbie with OSGI, any help is appreciated.

      Thanks!

       

      Sasa