Hi Emily,

The samples run with different bundle versions than the sample itests (ARIES-765), and the failures you're seeing might be another symptom of that. I'm not at my computer to diagnose, but this sounds likely to be failing because of my recent changes -assuming it worked before them, of course! I think I checked blog sample by hand but not blueprint.

Holly

On 15 May 2012, at 22:23, Emily Jiang <[email protected]> wrote:

I ran blueprint helloworld sample itest and it passed. When I opened the
log, I saw the following error:

[Blueprint Extender: 3] DEBUG
org.apache.aries.blueprint.container.BlueprintContainerImpl - Instantiating components: [blueprintContainer, blueprintBundle, blueprintBundleContext,
blueprintConverter, helloclient]
========>>>>Client HelloWorld: About to execute a method from the Hello
World service
[Blueprint Extender: 3] WARN
org.apache.aries.blueprint.container.BeanRecipe - Object to be destroyed is
not an instance of UnwrapperedBeanHolder, type: null
[Blueprint Extender: 3] ERROR
org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to
start blueprint container for bundle
org.apache.aries.samples.blueprint.helloworld.client
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable
to intialize bean helloclient
   at
org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit (BeanRecipe.java:710)
   at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2 (BeanRecipe.java:820)
   at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate (BeanRecipe.java:783)
   at
org.apache.aries.blueprint.di.AbstractRecipe$1.call (AbstractRecipe.java:71) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java: 314)
   at java.util.concurrent.FutureTask.run(FutureTask.java:149)
   at
org.apache.aries.blueprint.di.AbstractRecipe.create (AbstractRecipe.java:79)
   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:648)
   at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun (BlueprintContainerImpl.java:340)
   at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run (BlueprintContainerImpl.java:242)
   at
org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run( DiscardableRunnable.java:48)
   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java: 452) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java: 314)
   at java.util.concurrent.FutureTask.run(FutureTask.java:149)
   at
java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:109)
   at
java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:218)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:897)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:919)
   at java.lang.Thread.run(Thread.java:736)
Caused by: java.lang.NullPointerException
   at
org.apache.aries.samples.blueprint.helloworld.client.HelloWorldClient.startUp( HelloWorldClient.java:29)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:60)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:37)
   at java.lang.reflect.Method.invoke(Method.java:611)
   at
org.apache.aries.blueprint.utils.ReflectionUtils.invoke (ReflectionUtils.java:238)
   at
org.apache.aries.blueprint.container.BeanRecipe.invoke (BeanRecipe.java:954)
   at
org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit (BeanRecipe.java:708)
   ... 20 more

Obviously, the helloworld client blueprint container was not started. The
tests are not good enough to spot this. Can someone try it out to see
whether you have the same failure?


--
Thanks
Emily
=================
Emily Jiang
[email protected]

Reply via email to