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.


[jira] Closed: (COCOON-1980) Build error with Java 6

2007-01-12 Thread Alfred Nathaniel (JIRA)

 [ 
https://issues.apache.org/jira/browse/COCOON-1980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alfred Nathaniel closed COCOON-1980.


   Resolution: Fixed
Fix Version/s: 2.1.11-dev (Current SVN)

Added dummy implementations of JDBC4 unwrap / isWrapperFor methods.

http://svn.apache.org/viewvc?view=revrev=495744


 Build error with Java 6
 ---

 Key: COCOON-1980
 URL: https://issues.apache.org/jira/browse/COCOON-1980
 Project: Cocoon
  Issue Type: Bug
  Components: Blocks: Databases
Affects Versions: 2.1.10
Reporter: Markus Wolf
Priority: Minor
 Fix For: 2.1.11-dev (Current SVN)


 Building the database block with Java 6 results in the following exception:
 .../cocoon-2.1.10/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java:82:
  
 org.apache.cocoon.databases.ibatis.ExcaliburDataSourceFactory.DataSourceWrapper
  is not abstract and does not override abstract method 
 isWrapperFor(java.lang.Class?) in java.sql.Wrapper
 protected static final class DataSourceWrapper implements DataSource {
^
 Note: Some input files use unchecked or unsafe operations.
 Note: Recompile with -Xlint:unchecked for details.
 1 error
 BUILD FAILED

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira