Results 1 to 2 of 2

Thread: NullPointer: Destroy Exception with JackRabbit TransientRepositoryFactoryBean

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    2

    Default NullPointer: Destroy Exception with JackRabbit TransientRepositoryFactoryBean

    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???

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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?
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •