wso2esb和wso2dss中的分析错误

wso2esb和wso2dss中的分析错误,wso2,wso2esb,wso2dss,Wso2,Wso2esb,Wso2dss,我正在使用wso2esb 4.7.0和wso2dss 3.1.0.my.dbs文件在wso2dss中工作,但当我将其访问到wso2esb时,它会显示esb终端中的pasing错误,如: LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:0b6a1043-5904-4550-ba27-8e91da337bdd, Direction

我正在使用wso2esb 4.7.0和wso2dss 3.1.0.my.dbs文件在wso2dss中工作,但当我将其访问到wso2esb时,它会显示esb终端中的pasing错误,如:

LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:0b6a1043-5904-4550-ba27-8e91da337bdd, Direction: response, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><Fault><faultcode>soapenv:Server</faultcode><faultstring>java.lang.RuntimeException: Error obtaining parser from data source:DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: logindataservice
Location: /logindataservice.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: select_all_test_operation
Current Params: {limit=}
Nested Exception:-
java.lang.NumberFormatException: For input string: ""
</faultstring><detail/></Fault></soapenv:Body></soapenv:Envelope>
在客户端或curl命令中显示:

 {"Fault":{"faultcode":"soapenv:Server","faultstring":"java.lang.RuntimeException: Error obtaining parser from data source:DS Fault Message: Error in 'SQLQuery.processNormalQuery'\nDS Code: DATABASE_ERROR\nSource Data Service:-\nName: logindataservice\nLocation: \/logindataservice.dbs\nDescription: N\/A\nDefault Namespace: http:\/\/ws.wso2.org\/dataservice\nCurrent Request Name: select_all_test_operation\nCurrent Params: {limit=}\nNested Exception:-\njava.lang.NumberFormatException: For input string: \"\"\n","detail":""}}* Closing connection #0

我不知道的解析错误,但我无法重新爱上它。我该怎么办?

我相信问题在于您的数据服务或您发送的请求。确保请求包含元素“limit”。数据服务服务器似乎认为它找不到输入映射“limit”的值,所以它为它分配了一个空字符串。但是sql查询需要一个整数。因此,字符串->int转换失败


另外,请查看dbs中的
查询
部分的行,重点是。确保输入映射中设置的
sqlType
属性正确。根据您的描述,它应该是一个
整数

,请添加您的代理配置。
 {"Fault":{"faultcode":"soapenv:Server","faultstring":"java.lang.RuntimeException: Error obtaining parser from data source:DS Fault Message: Error in 'SQLQuery.processNormalQuery'\nDS Code: DATABASE_ERROR\nSource Data Service:-\nName: logindataservice\nLocation: \/logindataservice.dbs\nDescription: N\/A\nDefault Namespace: http:\/\/ws.wso2.org\/dataservice\nCurrent Request Name: select_all_test_operation\nCurrent Params: {limit=}\nNested Exception:-\njava.lang.NumberFormatException: For input string: \"\"\n","detail":""}}* Closing connection #0