Re: [OS-JIRA] Created: (CAY-448) NPE when shutting down DataDomain

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Feb 16 2006 - 11:29:19 EST

  • Next message: Tore Halset: "Re: cayenne-jpa - volunteer help?"

    It probably is. Independent from that Malcolm just emailed me Cayenne/
    Click/Spring example that he wrote. I'll put it on Wiki.

    Andrus

    On Feb 16, 2006, at 9:29 AM, Cris Daniluk wrote:

    > I think this is related to the Spring integration... not sure if he's
    > using that or ot, but whenever I use the Spring module I get this.
    > Otherwise, I do not.
    >
    > On 2/16/06, jira-norepl..bjectstyle.org <jira-
    > norepl..bjectstyle.org> wrote:
    >> Message:
    >>
    >> A new issue has been created in JIRA.
    >>
    >> ---------------------------------------------------------------------
    >> View the issue:
    >>
    >> http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-448
    >>
    >>
    >> Here is an overview of the issue:
    >> ---------------------------------------------------------------------
    >> Key: CAY-448
    >> Summary: NPE when shutting down DataDomain
    >> Type: Bug
    >>
    >> Status: Assigned
    >> Priority: Major
    >>
    >> Project: Cayenne
    >> Components:
    >> Cayenne Core Library
    >> Versions:
    >> 1.2 [DEV]
    >>
    >> Assignee: Andrus Adamchik
    >> Reporter: Malcolm Edgar
    >>
    >> Created: Thu, 16 Feb 2006 12:00 AM
    >> Updated: Thu, 16 Feb 2006 12:00 AM
    >> Environment: cayenne 1.2M9
    >>
    >> Description:
    >> Hi,
    >>
    >> there is a NPE on the sharedSnapshotCache on the when shutting
    >> down the DataDomain.
    >>
    >> regards Malcolm Edgar
    >>
    >>
    >> public void shutdown() {
    >> this.sharedSnapshotCache.shutdown();
    >>
    >> Collection dataNodes = getDataNodes();
    >> for (Iterator i = dataNodes.iterator(); i.hasNext();) {
    >> DataNode node = (DataNode) i.next();
    >> try {
    >> node.shutdown();
    >> }
    >> catch (Exception ex) {
    >> }
    >> }
    >> }
    >>
    >> --------------------------
    >>
    >> java.lang.NullPointerException
    >> at org.objectstyle.cayenne.access.DataDomain.shutdown
    >> (DataDomain.java:701)
    >> at org.objectstyle.cayenne.conf.Configuration.shutdown
    >> (Configuration.java:646)
    >> at
    >> org.springframework.orm.cayenne.ConfigurationFactory.destroy
    >> (ConfigurationFactory.java:39)
    >> at
    >> org.springframework.beans.factory.support.AbstractBeanFactory
    >> $1.destroy(AbstractBeanFactory.java:923)
    >> at
    >> org.springframework.beans.factory.support.AbstractBeanFactory.destroy
    >> Bean(AbstractBeanFactory.java:1014)
    >> at
    >> org.springframework.beans.factory.support.AbstractBeanFactory.destroy
    >> DisposableBean(AbstractBeanFactory.java:986)
    >> at
    >> org.springframework.beans.factory.support.AbstractBeanFactory.destroy
    >> Singletons(AbstractBeanFactory.java:557)
    >> at
    >> org.springframework.context.support.AbstractApplicationContext.close(
    >> AbstractApplicationContext.java:530)
    >> at
    >> org.springframework.web.context.ContextLoader.closeWebApplicationCont
    >> ext(ContextLoader.java:339)
    >> at
    >> org.springframework.web.context.ContextLoaderListener.contextDestroye
    >> d(ContextLoaderListener.java:73)
    >>
    >>
    >> ---------------------------------------------------------------------
    >> JIRA INFORMATION:
    >> This message is automatically generated by JIRA.
    >>
    >> If you think it was sent incorrectly contact one of the
    >> administrators:
    >> http://objectstyle.org/jira/secure/Administrators.jspa
    >>
    >> If you want more information on JIRA, or have a bug to report see:
    >> http://www.atlassian.com/software/jira
    >>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Thu Feb 16 2006 - 11:29:21 EST