You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Daniel John Debrunner (JIRA)" <de...@db.apache.org> on 2005/11/17 21:51:41 UTC

[jira] Created: (DERBY-714) NullPointerException or ClassCastException if UPDATE or DELETE is performed on a diagnostic VTI

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

         Key: DERBY-714
         URL: http://issues.apache.org/jira/browse/DERBY-714
     Project: Derby
        Type: Bug
  Components: SQL  
    Versions: 10.1.1.0, 10.0.2.0    
    Reporter: Daniel John Debrunner
 Assigned to: Daniel John Debrunner 
    Priority: Trivial
     Fix For: 10.2.0.0


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DERBY-714) NullPointerException or ClassCastException if UPDATE or DELETE is performed on a diagnostic VTI

Posted by "Daniel John Debrunner (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-714?page=all ]
     
Daniel John Debrunner resolved DERBY-714:
-----------------------------------------

    Resolution: Fixed

svn revision 345577  	

> NullPointerException or ClassCastException if UPDATE or DELETE is performed on a diagnostic VTI
> -----------------------------------------------------------------------------------------------
>
>          Key: DERBY-714
>          URL: http://issues.apache.org/jira/browse/DERBY-714
>      Project: Derby
>         Type: Bug
>   Components: SQL
>     Versions: 10.1.1.0, 10.0.2.0
>     Reporter: Daniel John Debrunner
>     Assignee: Daniel John Debrunner
>     Priority: Trivial
>      Fix For: 10.2.0.0

>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DERBY-714) NullPointerException or ClassCastException if UPDATE or DELETE is performed on a diagnostic VTI

Posted by "Daniel John Debrunner (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-714?page=all ]
     
Daniel John Debrunner closed DERBY-714:
---------------------------------------


submission contained tests.

> NullPointerException or ClassCastException if UPDATE or DELETE is performed on a diagnostic VTI
> -----------------------------------------------------------------------------------------------
>
>          Key: DERBY-714
>          URL: http://issues.apache.org/jira/browse/DERBY-714
>      Project: Derby
>         Type: Bug
>   Components: SQL
>     Versions: 10.1.1.0, 10.0.2.0
>     Reporter: Daniel John Debrunner
>     Assignee: Daniel John Debrunner
>     Priority: Trivial
>      Fix For: 10.2.0.0

>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira