DB Adapter Failing to Load

From: Bret Gregory (bret.gregor..ccesspointinc.com)
Date: Thu Jun 24 2004 - 11:10:58 EDT

  • Next message: Andrus Adamchik: "Re: To Dep PK"

    I am running into a problem that I haven't seen before. The stacktrace is
    below.
    It looks like it is running into a problem with the SqlServer adapter. I
    have been running this code without problem for awhile now. Today I added
    some a new DB and Object Entity and now the DB Adapter doesn't seem to like
    the DB.

    I am using Cayenne 1.1M6.

    Any thoughts?

    INFO QueryLogger: Created connection pool:
    jdbc:microsoft:sqlserver://10.30.1.15:1433;DatabaseName=
    Reconciliation
            Driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver
            Min. connections in the pool: 1
            Max. connections in the pool: 100
            Login: loc_recon
            Password: *******
    Exception in thread "main" org.objectstyle.cayenne.ConfigurationException:
    [v.1.0.6 January 26 2004]
     Error during Configuration initialization. [v.1.0.6 January 26 2004] Load
    failures. Main configurat
    ion class: org.objectstyle.cayenne.conf.DefaultConfiguration, details:
            domain.node.name=LOC_RECON,
    domain.node.adapter=org.objectstyle.cayenne.dba.sqlserver.SQLSer
    verAdapter, reason: instantiating adapter failed -
    org.objectstyle.cayenne.dba.sqlserver.SQLServerAd
    apter
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.ja
    va:287)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.ja
    va:261)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.ja
    va:244)
            at
    org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configurat
    ion.java:207)

            at
    org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.jav
    a:151)
            at api.reconciliation2.BdtFile.fetchBdtFile(BdtFile.java:11)
            at
    api.reconciliation2.conversion.BdtConverter.validateFile(BdtConverter.java:7
    3)
            at
    api.reconciliation2.conversion.BdtConverter.<init>(BdtConverter.java:36)
            at api.reconciliation2.Test.main(Test.java:31)
    Caused by: org.objectstyle.cayenne.ConfigurationException: [v.1.0.6 January
    26 2004] Load failures.
    Main configuration class: org.objectstyle.cayenne.conf.DefaultConfiguration,
    details:
            domain.node.name=LOC_RECON,
    domain.node.adapter=org.objectstyle.cayenne.dba.sqlserver.SQLSer
    verAdapter, reason: instantiating adapter failed -
    org.objectstyle.cayenne.dba.sqlserver.SQLServerAd
    apter
            at
    org.objectstyle.cayenne.conf.RuntimeLoadDelegate.finishedLoading(RuntimeLoad
    Delegate.java
    :557)
            at
    org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:117)
            at
    org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfigur
    ation.java:18
    5)
            at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.ja
    va:279)
            ... 8 more
    Press any key to continue...



    This archive was generated by hypermail 2.0.0 : Thu Jun 24 2004 - 11:12:34 EDT