Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3075

Client error: 08001 Error connecting to server.. throws SQLTransientConnectionException instead of SQLNonTransientConnectionException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.2.1, 10.4.1.3
    • JDBC
    • None
    • JDK 6 - JDBC 4.0

    Description

      Running attached program WITHOUT first starting the Network Server shows the incorrect (Transient) Exception. Without action by the user rerunning the program will continue to fail so should throw NonTransient Exception.

      > > > java DerbyClientException
      08001:java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
      Exception in thread "main" java.sql.SQLTransientConnectionException: java.net.ConnectException : Err
      or connecting to server localhost on port 1527 with message Connection refused: connect.
      at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
      at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
      at org.apache.derby.client.ClientPooledConnection.<init>(Unknown Source)
      at org.apache.derby.client.ClientPooledConnection40.<init>(Unknown Source)
      at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newClientPooledConnection(Unknown Source)
      at org.apache.derby.jdbc.ClientConnectionPoolDataSource.getPooledConnectionX(Unknown Source)

      at org.apache.derby.jdbc.ClientConnectionPoolDataSource.getPooledConnection(Unknown Source)
      at DerbyClientException.main(DerbyClientException.java:19)
      Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException : Error connect
      ing to server localhost on port 1527 with message Connection refused: connect.

      Attachments

        1. DerbyClientException.java
          1 kB
          Sun Seng David Tan

        Issue Links

          Activity

            People

              kmarsden Katherine Marsden
              stan Sun Seng David Tan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: