带有WSO2DAS的WSO2AM - 用于API_DESTINATION_SUMMARY的{null} apiPublisher

时间:2017-01-26 15:57:37

标签: wso2 wso2-am wso2-das

在PGSQL(9.5)数据库(具有共同的WSO2AM_STATS_DB数据库)上连接wso2am-2.0.0和wso2am-analytics-2.0.0,我们收到以下异常:

TID: [-1] [] ERROR {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in executing task: Error while saving dat
a to the table API_DESTINATION_SUMMARY : Job aborted due to stage failure: Task 0 in stage 54296.0 failed 1 times, most recent failure: Lost task 0.0
in stage 54296.0 (TID 50425, localhost): java.sql.BatchUpdateException: Batch entry 0 INSERT INTO API_DESTINATION_SUMMARY (api, version, apiPublisher,
 context, destination, total_request_count, hostName, year, month, day, time) VALUES ('test01', 'v1.0.0', NULL, '/test/v1.0.0', 'http://demo6009762.mo
ckable.io', 1, 'wso2apimgr3', 2017, 1, 26, '2017-01-26 15:59') ON CONFLICT (api,version,apiPublisher,context,destination,hostName,year,month,day) DO U
PDATE SET total_request_count=EXCLUDED.total_request_count, time=EXCLUDED.time was aborted: ERROR: null value in column "apipublisher" violates not-nu
ll constraint

完整例外是here

根据日志,直接原因是 apipublisher 字段 null 不应发生的事情。

所以现在我有几个问题:

我该如何预防?如何配置apipublisher值?我如何摆脱无效数据

感谢您提供任何提示

1 个答案:

答案 0 :(得分:1)

据报道有issue。您可以应用jira票证中提到的修复程序。