Announcement Announcement Module
Collapse
No announcement yet.
Error Codes for Adaptive Server Enterprise not found Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Codes for Adaptive Server Enterprise not found

    how to set the error codes for Sybase Adaptive Enterprise?

    thank you


    [ INFO] 2004-11-23 11:31:18,591 (DriverManagerDataSource.java:setDriverClassName:9 1)
    Loaded JDBC driver: com.sybase.jdbc2.jdbc.SybDriver

    [ INFO] 2004-11-23 11:31:18,591 (DriverManagerDataSource.java:setDriverClassName:9 1)
    Loaded JDBC driver: com.sybase.jdbc2.jdbc.SybDriver

    [ INFO] 2004-11-23 11:31:18,841 (XmlBeanDefinitionReader.java:loadBeanDefinitions: 116)
    Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]

    [ INFO] 2004-11-23 11:31:19,013 (AbstractBeanFactory.java:getBean:200)
    Creating shared instance of singleton bean 'DB2'

    [ INFO] 2004-11-23 11:31:19,107 (AbstractBeanFactory.java:getBean:200)
    Creating shared instance of singleton bean 'HSQL'

    [ INFO] 2004-11-23 11:31:19,107 (AbstractBeanFactory.java:getBean:200)
    Creating shared instance of singleton bean 'MS-SQL'

    [ INFO] 2004-11-23 11:31:19,123 (AbstractBeanFactory.java:getBean:200)
    Creating shared instance of singleton bean 'MySQL'

    [ INFO] 2004-11-23 11:31:19,123 (AbstractBeanFactory.java:getBean:200)
    Creating shared instance of singleton bean 'Oracle'

    [ INFO] 2004-11-23 11:31:19,138 (AbstractBeanFactory.java:getBean:200)
    Creating shared instance of singleton bean 'Informix'

    [ INFO] 2004-11-23 11:31:19,138 (AbstractBeanFactory.java:getBean:200)
    Creating shared instance of singleton bean 'PostgreSQL'

    [ INFO] 2004-11-23 11:31:19,154 (AbstractBeanFactory.java:getBean:200)
    Creating shared instance of singleton bean 'Sybase'

    [ INFO] 2004-11-23 11:31:19,154 (SQLErrorCodesFactory.java:<init>:167)
    SQLErrorCodes loaded: [HSQL Database Engine, Oracle, Sybase SQL Server, Microsoft SQL Server, Informix Dynamic Server, PostgreSQL, DB2*, MySQL]

    [ INFO] 2004-11-23 11:31:19,154 (SQLErrorCodesFactory.java:getErrorCodes:197)
    Looking up default SQLErrorCodes for DataSource

    [ INFO] 2004-11-23 11:31:19,779 (SQLErrorCodesFactory.java:getErrorCodes:263)
    Database Product Name is Adaptive Server Enterprise

    [ INFO] 2004-11-23 11:31:19,795 (SQLErrorCodesFactory.java:getErrorCodes:264)
    Driver Version is jConnect (TM) for JDBC(TM)/5.5(Build 25137)/P/EBF10000/JDK12/Sun Jan 6 21:57:04 2002

    [ INFO] 2004-11-23 11:31:19,795 (SQLErrorCodesFactory.java:getErrorCodes:269)
    Error Codes for Adaptive Server Enterprise not found

  • #2
    You can customize sql-error-codes.xml to add your specific database vendor. Take a look at this [url=http://forum.springframework.org/showthread.php?t=10173[/url].
    You may also need a property "databaseProductName":
    Code:
      <!--
        -  If the Database Product Name contains characters that are invalid
        -  to use in the id attribute (like a space) then we need to 
        -  add a property named "databaseProductName" that holds this value.
        -  If this property is present, then it will be used instead of the id for
        -  looking up the error codes based on the current database.
        -->
    HTH
    Last edited by robyn; May 14th, 2006, 05:15 PM.

    Comment

    Working...
    X