我使用 wso2 dss 将数据插入到 cassandra 表中。例如这个表: CREATE TABLE logs.test (id int,code int, PRIMARY KEY (id));
在 wso2 dss 中,我使用默认值定义了代码列,如下所示:#{NULL}
当我在没有给出代码参数的情况下尝试这样的 dss 服务时:
<p:test xmlns:p="http://ws.wso2.org/dataservice">
<xs:id xmlns:xs="http://ws.wso2.org/dataservice">1</xs:id>
</p:test>
我收到此错误:
<axis2ns56:source_data_service>
<axis2ns56:data_service_name>Cassandra</axis2ns56:data_service_name>
<axis2ns56:description>N/A</axis2ns56:description>
<axis2ns56:location>\Cassandra.dbs</axis2ns56:location>
<axis2ns56:default_namespace>http://ws.wso2.org/dataservice</axis2ns56:default_namespace>
</axis2ns56:source_data_service>
<axis2ns56:ds_code>UNKNOWN_ERROR</axis2ns56:ds_code>
<axis2ns56:nested_exception>java.lang.NumberFormatException: null</axis2ns56:nested_exception>
嵌套异常:- java.lang.NumberFormatException:对于输入字符串:“null”
最好的问候,尼古拉斯