RE: NullPointer Exception Configuration.initializeSharedConfiguration()

From: Gentry, Michael (michael_gentr..anniemae.com)
Date: Wed Sep 29 2004 - 12:26:30 EDT

  • Next message: Andrus Adamchik: "Cayenne presentation by Michael Sacket"

    Line 251 of DataContext.java looks like this:

            return
    Configuration.getSharedConfiguration().getDomain().createDataContext();

    So, you probably don't have a shared configuration (did you define
    multiple DataDomains?) or, if you do, you don't have a DataDomain in
    your model. If you do have those defined, I would look at your
    CLASSPATH again ...

    /dev/mrg

    PS. You can set a breakpoint on that line (at least you can in Eclipse)
    and evaulate what they return.

    -----Original Message-----
    From: Gentry, Michael
    Sent: Wednesday, September 29, 2004 12:18 PM
    To: cayenne-use..bjectstyle.org
    Cc: Dirk Rost
    Subject: FW: NullPointer Exception
    Configuration.initializeSharedConfiguration()

    (please include the group ...)

    -----Original Message-----
    From: Dirk Rost [mailto:d..ppshare.de]
    Sent: Wednesday, September 29, 2004 12:31 PM
    To: Gentry, Michael
    Subject: Re: NullPointer Exception
    Configuration.initializeSharedConfiguration()

    Gentry, Michael wrote:

    >Uhm, could you post the stack trace? What version of Cayenne? What
    >version of Java? Are your cayenne.xml files in your CLASSPATH? Etc
    ...
    >
    >Of course, you could just work on Linux ...
    >
    >/dev/mrg
    >
    >
    >-----Original Message-----
    >From: Dirk Rost [mailto:d..ppshare.de]
    >Sent: Wednesday, September 29, 2004 12:14 PM
    >To: cayenne-use..bjectstyle.org
    >Subject: NullPointer Exception
    >Configuration.initializeSharedConfiguration()
    >
    >
    >Hi there
    >
    >on Linux everything works fine ...
    >
    >But on Win2000 I allways get an NPException in Line 251
    >
    >Thank for any idea
    >
    >Dirk
    >
    >
    >
    >
    Java 1.4.2_04
    Cayenne *Cayenne 1.1 Beta 3

    cayenne.xml is in the CLASSPATH
    *
    EXCEPION: java.lang.NullPointerException
    StackTrace:
    java.lang.NullPointerException
            at
    org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext
    .java:251)
            at
    pdsoft.vis.Components.visMainApplication.checkSystemintegrity(visMainApp
    lication.java:933)
            at
    pdsoft.vis.Components.visMainApplication.GoaBeanInit(visMainApplication.
    java:279)
            at
    cdsoft.globals.GoaGlobal.startApplication(GoaGlobal.java:1876)
            at
    cdsoft.globals.GoaGlobal.startApplication(GoaGlobal.java:1847)
            at cdsoft.CdGoa.init(CdGoa.java:499)
            at cdsoft.CdGoa.main(CdGoa.java:347)



    This archive was generated by hypermail 2.0.0 : Wed Sep 29 2004 - 12:26:52 EDT