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

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

  • Next message: Troy McKinnon: "Re: Troubles packaging cayenne in a java GUI exe for windows"

    I checked the jar and there are 8 of these, one for each db type. I believe
    I am using the one under /dba since I am just using a JDataStore.

    Troy

    ----- Original Message -----
    From: "Andrus Adamchik" <andru..bjectstyle.org>
    To: "cayenne-user" <cayenne-use..bjectstyle.org>
    Sent: Tuesday, September 16, 2003 3:53 PM
    Subject: Re: Troubles packaging cayenne in a java GUI exe for windows

    > Troy,
    >
    > do you have all the "types.xml" files bundled with Cayenne? There is
    > one under "....cayenne.dba." package and one per each adapter package.
    > Make sure you include them in the corresponding Java packages. From the
    > stack trace below I conclude that at least
    > org/objectstyle/cayenne/dba/types.xml is missing somehow.
    >
    > Andrus
    >
    > On Tuesday, September 16, 2003, at 06:38 PM, Troy McKinnon wrote:
    >
    > > DEBUG RuntimeLoadDelegate: loading <node name='testDataNode'
    > > datasource='testDataNode.driver.xml' factory='org.o
    > > bjectstyle.cayenne.conf.DriverDataSourceFactory'>.
    > > DEBUG RuntimeLoadDelegate: instantiating adapter failed, using default
    > > adapter.
    > > java.lang.NullPointerException
    > >
    > ....
    > > org.objectstyle.cayenne.dba.TypesHandler.<init>(TypesHandler.java:112)
    > > at
    > > org.objectstyle.cayenne.dba.TypesHandler.getHandler(TypesHandler.java:1
    > > 01)
    > > at
    > > org.objectstyle.cayenne.dba.TypesHandler.getHandler(TypesHandler.java:9
    > > 2)
    > > at
    > > org.objectstyle.cayenne.dba.JdbcAdapter.<init>(JdbcAdapter.java:117)
    > > at
    > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    > > Method)
    > > at
    > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor
    > > Acces
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Sep 16 2003 - 19:15:46 EDT