[英]WSO2AM with WSO2DAS - null apiPublisher for API_DESTINATION_SUMMARY
Connecting wso2am-2.0.0 and wso2am-analytics-2.0.0 on PGSQL (9.5) database (having common WSO2AM_STATS_DB database), we receive a following exception: 在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
full exception is here . 完全例外在这里 。
According to the logs the direct cause is that the apipublisher field is null what should not happen. 根据日志,直接原因是apipublisher字段为null,这不应该发生。
So now I have a few questions: 所以现在我有几个问题:
How do I prevent that? 我该如何预防? How do I configure the apipublisher value?. 如何配置apipublisher值? And How do I get rid of the invalid data 以及如何摆脱无效数据
Thank you for any hint 谢谢你的提示
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.