Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有WSO2DAS的WSO2AM-API\u目的地\u摘要的空APIPPublisher_Wso2_Wso2 Am_Wso2 Das - Fatal编程技术网

带有WSO2DAS的WSO2AM-API\u目的地\u摘要的空APIPPublisher

带有WSO2DAS的WSO2AM-API\u目的地\u摘要的空APIPPublisher,wso2,wso2-am,wso2-das,Wso2,Wso2 Am,Wso2 Das,在PGSQL 9.5数据库上连接wso2am-2.0.0和wso2am-analytics-2.0.0,该数据库具有公共wso2am_STATS_DB数据库,我们收到以下异常: TID: [-1] [] ERROR {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} - Error in executing task: Error while saving dat a to the table API_DESTINATION_SUMMA

在PGSQL 9.5数据库上连接wso2am-2.0.0和wso2am-analytics-2.0.0,该数据库具有公共wso2am_STATS_DB数据库,我们收到以下异常:

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
完全例外是

根据日志,直接原因是APIPISHER字段为空,这是不应该发生的

现在我有几个问题:

我如何防止这种情况?如何配置apipublisher值?。我如何处理无效数据


感谢您的任何提示

对此有一个报告。您可以应用jira通知单中提到的修复。

您是用http还是https调用api?您的意思是我需要从源代码重新构建WSO2AM服务器O或-我看到它与匿名模式有关。模式意味着什么?客户端没有经过身份验证?我们可以强制执行,谢谢您的回答,我看到WSO2AM 2.1中解决了这个问题,我们将尝试。仍然-如何清除无效数据?哪个表是事件流,所以我们可以删除数据?您可以创建一个补丁并应用它-我认为如果您更新spark脚本,您可以更新数据。谢谢:D我看到所有补丁都已经在WSO2APIM 2.1.0中实现了:我将尝试一下。如果没有,我将修补。谢谢你提供的资源