hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-763) ClassCastException from RowResult.get(String)
Date Wed, 23 Jul 2008 02:01:31 GMT

     [ https://issues.apache.org/jira/browse/HBASE-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Purtell updated HBASE-763:
---------------------------------

    Attachment: RowResult.patch

I know the get(Object) method is required by the Map interface, but a HBaseMapWritable is
not a generic map. I think at least a convenience method for RowResult.get(String) should
go into 0.2.0 because it represents a pretty big WTF moment for a user trying to do something
basic with the client API, since there are other convenience methods that take String keys.
I know I had one. 



> ClassCastException from RowResult.get(String)
> ---------------------------------------------
>
>                 Key: HBASE-763
>                 URL: https://issues.apache.org/jira/browse/HBASE-763
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Andrew Purtell
>         Attachments: RowResult.patch, simpletest.java
>
>
> [hadoop@sjdc-atr-dns column-test]$ hbase net.iridiant.simpletest.Main --master=10.30.94.1:60000
> Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast
to [B
>         at org.apache.hadoop.hbase.util.Bytes$1.compare(Bytes.java:32)
>         at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351)
>         at java.util.TreeMap.getEntry(TreeMap.java:322)
>         at java.util.TreeMap.get(TreeMap.java:255)
>         at org.apache.hadoop.hbase.io.HbaseMapWritable.get(HbaseMapWritable.java:112)
>         at org.apache.hadoop.hbase.io.RowResult.get(RowResult.java:79)
>         at net.iridiant.simpletest.Main.main(Unknown Source)
> Please see attached testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message