Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-955 Get derbyall on jdk1.6
  3. DERBY-1061

SqlException while fetching message results in recursive calls between SqlException.getSQLException and Sqlca.getJDBCMessage

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 10.2.1.6
    • Network Client
    • None

    Description

      stored procedure is used to fetch localised message in net work client
      because of issue 1059 the call to the stored prcedures fails resulting in SqlException. When SqlException.getSQLException, to set exceptionThrownOnStoredProcInvocation_, is called it again results in a call to SqlException.getMessage which call Sqlca.getJDBCMessage.
      The cycle repeats and finally ends up with StackOverfilowError

      fixing 1059 will solve this problem temporarily but some other situaltion may cause it again.

      Isuggest seting SqlException itself to exceptionThrownOnStoredProcInvocation_ to break this loop.

      Attachments

        1. derby-1061-david.stat
          0.1 kB
          Knut Anders Hatlen
        2. derby-1061-david.diff
          2 kB
          Knut Anders Hatlen
        3. JDBC4StackOverflowErrorReproduction.java
          0.5 kB
          Kristian Waagan
        4. derby-1061_2-unix.diff
          1 kB
          Kristian Waagan
        5. derby-1061_2.diff
          1 kB
          Anurag Aggarwal
        6. derbyall_report.txt
          274 kB
          Richard N. Hillegas
        7. derby-1061.diff
          1 kB
          Anurag Aggarwal

        Activity

          People

            anurag Anurag Aggarwal
            anurag Anurag Aggarwal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: