PDA

View Full Version : NullPointer: Destroy Exception with JackRabbit TransientRepositoryFactoryBean



alokeshweta
Nov 7th, 2006, 04:51 PM
Hi,

I am using spring-module 0.6 with JackRabbit 1.1 and Spring 2.0. I am getting the following exception after I am done working with jackrabbit:

ERROR: Couldn't invoke destroy method of bean with name 'repository'

java.lang.NullPointerException
at org.springmodules.jcr.jackrabbit.TransientReposito ryFactoryBean.destroy(TransientRepositoryFactoryBe an.java:67)
at org.springframework.beans.factory.support.Disposab leBeanAdapter.destroy(DisposableBeanAdapter.java:1 02)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.destroyBean(DefaultSingletonB eanRegistry.java:332)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.destroySingleton(DefaultSingl etonBeanRegistry.java:305)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.destroySingletons(DefaultSing letonBeanRegistry.java:281)
at org.springframework.context.support.AbstractApplic ationContext.doClose(AbstractApplicationContext.ja va:612)
at org.springframework.context.support.AbstractApplic ationContext$1.run(AbstractApplicationContext.java :550)


Any ideas???

Costin Leau
Nov 12th, 2006, 09:28 AM
Can you please raise an issue on JIRA - it seems that somehow an internal field in TransientRFB is being nullified before the destruction method is actually called.
Do you have a test case or any idea on what are the conditions in which the exception pops up?