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

NullPointerException or ClassCastException if UPDATE or DELETE is performed on a diagnostic VTI

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.0.2.0, 10.1.1.0
    • 10.2.1.6
    • SQL
    • None

    Description

      UPDATE and DELETE statements on read-only vtis will hit NullPointerException in insane mode, and ClassCastException in sane mode.

      ij> delete from new org.apache.derby.diag.TransactionTable();
      ERROR XJ001: Java exception: ': java.lang.NullPointerException'.

      While these statements make no sense, a more graceful error should be returned, especially as in insane mode this causes the engine to shutdown. Code already exists to detect this situation but is not being called.

      Found through adding negative tests for DERBY-571

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            djd Daniel John Debrunner
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment