如何知道 wso2DSS 中的错误消息 [英] How to know ERROR message in wso2DSS

查看:33
本文介绍了如何知道 wso2DSS 中的错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有 WSO2 数据服务错误代码的链接或参考?

Is there any link or reference to WSO2 Data Service error codes ?

我收到错误代码'401000',500000,我需要知道使用这个错误代码的确切含​​义我正在向后端发送错误代码,但我也需要在 WSO2ESB 中发送确切的消息我们有 paroperty 调用 get-property('ERROR_MESSAGE') .WSO2DSS 中是否有任何属性可以向我显示确切的错误消息

I am getting error code '401000',500000, I need to know what exactly mean by that error code using this i am sending errorcode to backend but i need to send exact message also in WSO2ESB we have paroperty call get-property('ERROR_MESSAGE') .is there any property we have in WSO2DSS which will show me exact error message

ERROR_CODE = 500000, ERROR_MESSAGE = null,

并直接将此消息发送到后端

and sending this message to backend directly

{"insert_dept_operation":{"deptno":"","deptname":"hr","deptid":"7"}}

实际上 dss 错误如下

actually dss error is below

 ERROR {org.apache.axis2.transport.http.CommonsHTTPTransportSender} -  DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: emp_DataService
Location: /emp_DataService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: insert_emp_operation
Current Params: {eno=9, esal=45, ename=kk}
Nested Exception:-
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "emp_pkey"
  Detail: Key (eno)=(9) already exists.

org.apache.axis2.AxisFault: DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: emp_DataService
Location: /emp_DataService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: insert_emp_operation
Current Params: {eno=9, esal=45, ename=kk}
Nested Exception:-
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "emp_pkey"
  Detail: Key (eno)=(9) already exists.

推荐答案

您所指的错误代码实际上是 ESB 定义的错误代码,而不是来自 DSS.在DSS中,我们不提供这样的代码,而只在故障信息中给出一个DS代码",这里是DATABASE_ERROR".ESB 错误代码及其含义可在此处找到 [1].

The error codes you're referring is actually the error codes defined by the ESB, not from DSS. In DSS, we do not provide codes such as that, but only give a "DS Code" in the fault message, which here it says "DATABASE_ERROR". The ESB error codes and their meanings can be found here [1].

[1] http://docs.wso2.org/wiki/display/ESB460/Error+Handling+and+Error+Codes

干杯,安佳娜.

这篇关于如何知道 wso2DSS 中的错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆