You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by 茅旭峰 <m9...@gmail.com> on 2011/02/24 03:53:57 UTC

Can not store multiple cell by a single RESTful 'put' request, java.lang.IllegalArgumentException: argument type mismatch replyed.

Hi,

I'm using hbase-0.89.20100924+28. When I was trying to do a multiple cell
store by a single RESTful 'put' request,like

curl -v -X PUT -H "Content-Type: text/xml" -d '<Row
key="resIDfortest2"><Cell column="ebCfOrig:resSize">456</Cell><Cell
column="ebCfOrig:fileType">jpg</Cell><Cell
column="ebCfThumb:jpg-w75h75q80">yyy</Cell></Row>'
http://10.241.67.22:18080/Tables1/xxx

I got
2011-02-24 10:01:16,136 ERROR org.mortbay.log: /Tables1/xxx
java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:168)
        at
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
        at
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:259)

replyed. The API doc
http://archive.apache.org/dist/hadoop/hbase/hbase-0.20.1/docs/api/org/apache/hadoop/hbase/stargate/package-summary.html#operation_cell_store_multiple
suggested to use a false-row-key. Any hint or advice would be appreciated.

Thanks in advance.

Mao Xu-Feng.