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

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Sep 16 2003 - 18:53:38 EDT

  • Next message: Troy McKinnon: "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 - 18:49:07 EDT