Re: Troubles packaging cayenne in a java GUI exe for windows

From: Troy McKinnon (TroyMcKinno..otmail.com)
Date: Tue Sep 16 2003 - 15:14:19 EDT

  • Next message: Holger Hoffstätte: "Re: Troubles packaging cayenne in a java GUI exe for windows"

    Holger,

    I gave it a try but it still gets an NPE. Different spot tho. ;)

    Exception in thread "main" java.lang.NullPointerException
            at
    org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.jav
    a:152)
            at com.myStuff.test.MainFrame.<init>(MainFrame.java:196)

    Is there anything else I can do on my side to make sure the data context is
    set?

    Troy

    ----- Original Message -----
    From: "Holger Hoffstätte" <holge..izards.de>
    To: "cayenne-user" <cayenne-use..bjectstyle.org>
    Sent: Monday, September 15, 2003 9:25 AM
    Subject: Re: Troubles packaging cayenne in a java GUI exe for windows

    > Holger Hoffstätte wrote:
    > > Troy McKinnon wrote:
    > > > I was trying to make a all inclusive package of the app to email a
    > > > friend but I can't seem to get it runnable. I even tried including all
    > > > resources and required libs. The package seems to have everything.
    (even
    > > > the .cayenne directory) Is what I am doing doable? Or am I missing
    > > > something obvious?
    > >
    > > An NPE should definitely not happen, even if there's something missing.
    > > I'll look into it.
    >
    > The NPE was caused by getClassLoader() returning null, which is actually
    > allowed but wasn't checked (I've never seen it before). I've just
    > committed a simple fix to resort to the system class loader if this
    > happens; please test the nightly build tomorrow and let us know if this
    > fixes your problem.
    >
    > Holger
    >



    This archive was generated by hypermail 2.0.0 : Tue Sep 16 2003 - 15:12:39 EDT