If there is a wrong service entry then the DriverManager can't init

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: core-libs
    • None
    • 6
    • b74
    • generic
    • generic
    • Verified

      If there is a wrong service entry then the DriverManager can't init and the method getConnection() does not work (see stacktrace below). A wrong entry should be skip. If an error message is print then is should also include the jar file where the entry is loaded.
       
      We have switch a large application from JDK 1.5 to JDK 1.6 and it does not work and the follow exception occur. We have search in over 100 jar files. The problem was a mistake in a cvs and a build script.
       

       
       
      sun.misc.ServiceConfigurationError: java.sql.Driver: Provider com.inet.pool.PoolDriver not found
       at sun.misc.Service.fail(Unknown Source)
       at sun.misc.Service.access$000(Unknown Source)
       at sun.misc.Service$LazyIterator.next(Unknown Source)
       at java.sql.DriverManager.loadInitialDrivers(Unknown Source)
       at java.sql.DriverManager.initialize(Unknown Source)
       at java.sql.DriverManager.getDriver(Unknown Source)

            Assignee:
            Amit Handa (Inactive)
            Reporter:
            Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: