Re: Strange container error

2007-01-12 Thread Leszek Gawron
Leszek Gawron wrote:
 When using a bean defined like this:
 
  bean name=org.apache.cocoon.generation.Generator/contractors 
 class=com.mobilebox.smart.generation.ContractorsGenerator 
 scope=prototype
   property name=contractorService ref=contractorService/
   property name=mobileConfigService ref=mobileConfigService/
   property name=priceListDefinitionDao 
 ref=priceListDefinitionDao/
  /bean
 
 I get a NPE while referencing priceListDefinitionDao. Some experiments
 show that I may also do:
 
 property name=priceListDefinitionDaoBlahBlah
 ref=priceListDefinitionDao/
 
 and spring context configured by cocoon also won't notice. Does anyone
 have a clue?
 
I have tried to create beans without cocoon (just startup the context
standalone). When they are not wrapped with PoolableProxyHandler
dependency injection works fine.

I've been trying to make some sense out of PoolableFactoryBean but the
only place it communicates with beanFactory to create pool target is
'this.beanFactory.getBean( this.name )'. The dependency injection should
work fine here.

Please advise.

-- 
Leszek GawronCTO at MobileBox Ltd.


Strange container error

2007-01-11 Thread Leszek Gawron
When using a bean defined like this:

   bean name=org.apache.cocoon.generation.Generator/contractors 
 class=com.mobilebox.smart.generation.ContractorsGenerator scope=prototype
   property name=contractorService ref=contractorService/
   property name=mobileConfigService ref=mobileConfigService/
   property name=priceListDefinitionDao 
 ref=priceListDefinitionDao/
   /bean

I get a NPE while referencing priceListDefinitionDao. Some experiments
show that I may also do:

property name=priceListDefinitionDaoBlahBlah
ref=priceListDefinitionDao/

and spring context configured by cocoon also won't notice. Does anyone
have a clue?

-- 
Leszek GawronCTO at MobileBox Ltd.