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

From: Cris Daniluk (cris.danilu..mail.com)
Date: Thu Feb 16 2006 - 09:29:08 EST

  • Next message: Andrus Adamchik: "Re: [OS-JIRA] Created: (CAY-448) NPE when shutting down DataDomain"

    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-noreply@objectstyle.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.destroyBean(AbstractBeanFactory.java:1014)
    > at org.springframework.beans.factory.support.AbstractBeanFactory.destroyDisposableBean(AbstractBeanFactory.java:986)
    > at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingletons(AbstractBeanFactory.java:557)
    > at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:530)
    > at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:339)
    > at org.springframework.web.context.ContextLoaderListener.contextDestroyed(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 - 09:29:17 EST