You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Himanshu Vashishtha (JIRA)" <ji...@apache.org> on 2011/03/26 00:51:05 UTC

[jira] [Created] (HBASE-3702) Exec throws a npe while writing a method that has a null value argument

Exec throws a npe while writing a method that has a null value argument
-----------------------------------------------------------------------

                 Key: HBASE-3702
                 URL: https://issues.apache.org/jira/browse/HBASE-3702
             Project: HBase
          Issue Type: Bug
          Components: coprocessors
            Reporter: Himanshu Vashishtha


Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use it this array.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (HBASE-3702) Exec throws a npe while writing a method that has a null value argument

Posted by "Gary Helmling (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Helmling resolved HBASE-3702.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.92.0

Committed trivial fix and additional test coverage to trunk.

> Exec throws a npe while writing a method that has a null value argument
> -----------------------------------------------------------------------
>
>                 Key: HBASE-3702
>                 URL: https://issues.apache.org/jira/browse/HBASE-3702
>             Project: HBase
>          Issue Type: Bug
>          Components: coprocessors
>            Reporter: Himanshu Vashishtha
>            Assignee: Gary Helmling
>             Fix For: 0.92.0
>
>         Attachments: HBASE-3702.patch
>
>
> Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use this array.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3702) Exec throws a npe while writing a method that has a null value argument

Posted by "Himanshu Vashishtha (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Himanshu Vashishtha updated HBASE-3702:
---------------------------------------

    Description: Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use this array.  (was: Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use it this array.)

> Exec throws a npe while writing a method that has a null value argument
> -----------------------------------------------------------------------
>
>                 Key: HBASE-3702
>                 URL: https://issues.apache.org/jira/browse/HBASE-3702
>             Project: HBase
>          Issue Type: Bug
>          Components: coprocessors
>            Reporter: Himanshu Vashishtha
>
> Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use this array.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3702) Exec throws a npe while writing a method that has a null value argument

Posted by "Himanshu Vashishtha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020497#comment-13020497 ] 

Himanshu Vashishtha commented on HBASE-3702:
--------------------------------------------

A similar bug is there in ExecResult.write(DataOutput) when it is writing a null value, it throws a npe.

There should be a check that in case of null value one should use Writable else invoke .getClass().

> Exec throws a npe while writing a method that has a null value argument
> -----------------------------------------------------------------------
>
>                 Key: HBASE-3702
>                 URL: https://issues.apache.org/jira/browse/HBASE-3702
>             Project: HBase
>          Issue Type: Bug
>          Components: coprocessors
>            Reporter: Himanshu Vashishtha
>            Assignee: Gary Helmling
>             Fix For: 0.92.0
>
>         Attachments: HBASE-3702.patch
>
>
> Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use this array.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3702) Exec throws a npe while writing a method that has a null value argument

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011714#comment-13011714 ] 

Hudson commented on HBASE-3702:
-------------------------------

Integrated in HBase-TRUNK #1816 (See [https://hudson.apache.org/hudson/job/HBase-TRUNK/1816/])
    HBASE-3702  Fix NPE in Exec method parameter serialization


> Exec throws a npe while writing a method that has a null value argument
> -----------------------------------------------------------------------
>
>                 Key: HBASE-3702
>                 URL: https://issues.apache.org/jira/browse/HBASE-3702
>             Project: HBase
>          Issue Type: Bug
>          Components: coprocessors
>            Reporter: Himanshu Vashishtha
>            Assignee: Gary Helmling
>             Fix For: 0.92.0
>
>         Attachments: HBASE-3702.patch
>
>
> Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use this array.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3702) Exec throws a npe while writing a method that has a null value argument

Posted by "Gary Helmling (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Helmling updated HBASE-3702:
---------------------------------

    Attachment: HBASE-3702.patch

Trivial fix for NPE in Exec.write() parameter serialization.

> Exec throws a npe while writing a method that has a null value argument
> -----------------------------------------------------------------------
>
>                 Key: HBASE-3702
>                 URL: https://issues.apache.org/jira/browse/HBASE-3702
>             Project: HBase
>          Issue Type: Bug
>          Components: coprocessors
>            Reporter: Himanshu Vashishtha
>            Assignee: Gary Helmling
>         Attachments: HBASE-3702.patch
>
>
> Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use this array.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (HBASE-3702) Exec throws a npe while writing a method that has a null value argument

Posted by "Gary Helmling (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Helmling reassigned HBASE-3702:
------------------------------------

    Assignee: Gary Helmling

> Exec throws a npe while writing a method that has a null value argument
> -----------------------------------------------------------------------
>
>                 Key: HBASE-3702
>                 URL: https://issues.apache.org/jira/browse/HBASE-3702
>             Project: HBase
>          Issue Type: Bug
>          Components: coprocessors
>            Reporter: Himanshu Vashishtha
>            Assignee: Gary Helmling
>         Attachments: HBASE-3702.patch
>
>
> Exec write method invokes getClass() on its arguments list for finding the argument's class, which gives a npe in case the argument is null. There is already an parameterClasses array in Invoker (its super class), which is populated with correct values (by method.getParameterTypes()). One can use this array.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira