Derby
  1. Derby
  2. DERBY-3967

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor 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

        Kristian Waagan created issue -
        Hide
        Kristian Waagan added a comment -

        'Derby3967.java' demonstrates the issue.

        Show
        Kristian Waagan added a comment - 'Derby3967.java' demonstrates the issue.
        Kristian Waagan made changes -
        Field Original Value New Value
        Attachment Derby3967.java [ 12395009 ]
        Sabari S Kumar made changes -
        Assignee Sabari S Kumar [ swordfish333 ]
        Myrna van Lunteren made changes -
        Affects Version/s 10.5.1.1 [ 12313771 ]
        Affects Version/s 10.5.0.0 [ 12313010 ]
        Hide
        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
        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
        Knut Anders Hatlen added a comment -

        Triaged for 10.5.2.

        Show
        Knut Anders Hatlen added a comment - Triaged for 10.5.2.
        Knut Anders Hatlen made changes -
        Assignee Sabari S Kumar [ swordfish333 ]
        Urgency Normal
        Issue & fix info [Repro attached]
        Kristian Waagan made changes -
        Affects Version/s 10.6.0.0 [ 12313727 ]
        Kathey Marsden made changes -
        Labels derby_triage10_5_2
        Gavin made changes -
        Workflow jira [ 12447333 ] Default workflow, editable Closed status [ 12799169 ]

          People

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

            Dates

            • Created:
              Updated:

              Development