根据swagger验证器,我为我的演示终点创建的swagger文件是有效的。不幸的是,当我尝试通过swagger json将API导入GREG时,我告诉它有一个错误。无论我是导入文件还是通过URL访问文件,都会发生故障。消息几乎无用,堆栈跟踪粘贴在下面:
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add resource /_system/governance/apimgt/applicationdata/api-docs/0.0.1/api-docs.json. An exception occurred while executing handler chain. Some or all of the arguments may be null. Cannot add the endpoint to registry.
at org.wso2.carbon.registry.resource.services.utils.AddResourceUtil.addResource(AddResourceUtil.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
GREG期待什么不是我创建的招摇定义的一部分?为什么会抛出错误?
答案 0 :(得分:2)
答案 1 :(得分:2)