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

NPE when reading from stream/reader after commit or connection close

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.3.3.0, 10.4.2.0, 10.5.1.1, 10.6.1.0
    • Fix Version/s: None
    • Component/s: JDBC
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached

      Description

      If a stream with a LOB as source is obtained through one of the result set getXStream methods, a NullPointerException is thrown if an attempt to read from the stream after connection commit or close is made.
      Derby should fail more gracefully by informing the user that the LOB has been closed or made unavailable due to a commit/rollback.

      1. Derby3967.java
        2 kB
        Kristian Waagan

        Activity

        Hide
        kristwaa Kristian Waagan added a comment -

        'Derby3967.java' demonstrates the issue.

        Show
        kristwaa Kristian Waagan added a comment - 'Derby3967.java' demonstrates the issue.
        Hide
        kmarsden Kathey Marsden added a comment -

        Sabari, are you working on this issue? Please post if you are, otherwise I will unassign it so someone else can pick it up.

        Thanks

        Kathey

        Show
        kmarsden Kathey Marsden added a comment - Sabari, are you working on this issue? Please post if you are, otherwise I will unassign it so someone else can pick it up. Thanks Kathey
        Hide
        knutanders Knut Anders Hatlen added a comment -

        Triaged for 10.5.2.

        Show
        knutanders Knut Anders Hatlen added a comment - Triaged for 10.5.2.

          People

          • Assignee:
            Unassigned
            Reporter:
            kristwaa Kristian Waagan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development