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

From: Troy McKinnon (TroyMcKinno..otmail.com)
Date: Tue Sep 16 2003 - 18:38:10 EDT

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

    Well here is the full trace with DEBUG.

    ----------------------------------------------------------------------------
    ------------------------------------------------

    DEBUG Configuration: configured log4j from: file:/C:/Documents and
    Settings/tmckinnon/.cayenne/cayenne-log.properties
    DEBUG DefaultConfiguration: using domain file name: cayenne.xml
    DEBUG DefaultConfiguration: canInitialize started.
    DEBUG DefaultConfiguration: initialize starting.
    DEBUG ResourceLocator: URL found with classloader:
    jar:file:/C:/_dev_/test.exe!/cayenne.xml
    DEBUG RuntimeLoadDelegate: started configuration loading.
    DEBUG RuntimeLoadDelegate: loaded domain: SanteeSpecial
    DEBUG ResourceLocator: URL found with classloader:
    jar:file:/C:/_dev_/test.exe!/testDataMap.map.xml

    DEBUG RuntimeLoadDelegate: loaded <map name='testDataMap'
    location='testDataMap.map.xml'>.
    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
            at
    org.objectstyle.cayenne.util.ResourceLocator.findURLInClassLoader(ResourceLo
    cator.java:248)
            at
    org.objectstyle.cayenne.util.ResourceLocator.findURLInClasspath(ResourceLoca
    tor.java:239)
            at
    org.objectstyle.cayenne.util.ResourceLocator.findResourceInClasspath(Resourc
    eLocator.java:116)
            at
    org.objectstyle.cayenne.dba.TypesHandler.<init>(TypesHandler.java:112)
            at
    org.objectstyle.cayenne.dba.TypesHandler.getHandler(TypesHandler.java:101)
            at
    org.objectstyle.cayenne.dba.TypesHandler.getHandler(TypesHandler.java:92)
            at
    org.objectstyle.cayenne.dba.JdbcAdapter.<init>(JdbcAdapter.java:117)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
            at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
    sorImpl.java:39)
            at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
    torAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at java.lang.Class.newInstance0(Class.java:306)
            at java.lang.Class.newInstance(Class.java:259)
            at
    org.objectstyle.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode(RuntimeL
    oadDelegate.java:280)
            at
    org.objectstyle.cayenne.conf.ConfigLoader$NodeHandler.init(ConfigLoader.java
    :298)
            at
    org.objectstyle.cayenne.conf.ConfigLoader$DomainHandler.startElement(ConfigL
    oader.java:224)
            at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1488)
            at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
            at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
            at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
            at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
            at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
            at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
            at
    org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
            at
    org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:114)
            at
    org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfigur
    ation.java:185)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:268)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:250)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:233)
            at
    org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configurat
    ion.java:196)
            at
    org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.jav
    a:152)
            at com.mystuff.test.MainFrame.<init>(MainFrame.java:195)
            at com.mystuff.test.TestApp.<init>(test.java:22)
            at com.mystuff.test.TestApp.main(test.java:51)
    DEBUG RuntimeLoadDelegate: Parser Exception.
    java.lang.NullPointerException
            at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
            at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
            at
    org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
            at
    org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:114)
            at
    org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfigur
    ation.java:185)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:268)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:250)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:233)
            at
    org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configurat
    ion.java:196)
            at
    org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.jav
    a:152)
            at com.mystuff.test.MainFrame.<init>(MainFrame.java:195)
     at com.mystuff.test.TestApp.<init>(test.java:22)
            at com.mystuff.test.TestApp.main(test.java:51)
    DEBUG DefaultConfiguration: initialize finished.
    DEBUG DefaultConfiguration: didInitialize finished.
    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:195)
     at com.mystuff.test.TestApp.<init>(test.java:22)
            at com.mystuff.test.TestApp.main(test.java:51)



    This archive was generated by hypermail 2.0.0 : Tue Sep 16 2003 - 18:36:30 EDT