是否有指向WSO2数据服务错误代码的链接或引用?
我得到了错误代码'401000',500000,我需要知道这个错误代码的确切含义我正在向后端发送错误代码,但我还需要在WSO2ESB中发送确切的消息我们有paroperty调用get- property ('ERROR_MESSAGE') .is在WSO2DSS中有任何属性可以显示确切的错误消息
ERROR_CODE = 500000, ERROR_MESSAGE = null,并将此消息直接发送到后台
{"insert_dept_operation":{"deptno":"","deptname":"hr","deptid":"7"}}实际上,dss错误如下
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.发布于 2013-03-28 01:20:50
您引用的错误代码实际上是由ESB定义的错误代码,而不是来自DSS的错误代码。在决策支持系统中,我们没有提供这样的代码,而只是在故障消息中给出了一个"DS代码“,在这里它是"DATABASE_ERROR”。ESB错误代码及其含义可以在这里找到1。
1
干杯,安佳娜。
https://stackoverflow.com/questions/15402606
复制相似问题