我正在9443端口上运行wso2 api管理器,并在9445中运行密钥管理器。但是,当我尝试调用API时,它将返回,并出现以下错误。
{
"fault": {
"code": 900900,
"message": "Unclassified Authentication Failure",
"description": "Error while accessing backend services for API key validation"
}}
这是API管理器的 wso2carbon.log ,版本: wso2telcohub-3.0.2
[2018-12-02 23:02:59,745]警告-由于未分类的身份验证失败,APIAuthenticationHandler API身份验证失败 [2018-12-02 23:02:59,745]错误-APIAuthenticationHandler API身份验证失败,错误900900 org.wso2.carbon.apimgt.gateway.handlers.security.APISecurityException:访问后端服务进行API密钥验证时出错 在org.wso2.carbon.apimgt.gateway.handlers.security.keys.WSAPIKeyDataStore.getAllURITemplates(WSAPIKeyDataStore.java:77) 在org.wso2.carbon.apimgt.gateway.handlers.security.APIKeyValidator.getAllURITemplates(APIKeyValidator.java:635) 在org.wso2.carbon.apimgt.gateway.handlers.security.APIKeyValidator.doGetAPIInfo(APIKeyValidator.java:487) 在org.wso2.carbon.apimgt.gateway.handlers.security.APIKeyValidator.findMatchingVerb(APIKeyValidator.java:459) 在org.wso2.carbon.apimgt.gateway.handlers.security.APIKeyValidator.getResourceAuthenticationScheme(APIKeyValidator.java:251) 在org.wso2.carbon.apimgt.gateway.handlers.security.oauth.OAuthAuthenticator.authenticate(OAuthAuthenticator.java:119) 在org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:117) 在org.apache.synapse.rest.API.process(API.java:325) 在org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:90) 在org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:69) 在org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:300) 在org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:75) 在org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) 在org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:319) 在org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:152) 在org.apache.axis2.transport.base.threads.NativeWorkerPool $ 1.run(NativeWorkerPool.java:172) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624) 在java.lang.Thread.run(Thread.java:748) 由以下原因引起:org.wso2.carbon.apimgt.gateway.handlers.security.APISecurityException:访问后端服务进行API密钥验证时出错 在org.wso2.carbon.apimgt.gateway.handlers.security.keys.APIKeyValidatorClient.getAllURITemplates(APIKeyValidatorClient.java:171) 在org.wso2.carbon.apimgt.gateway.handlers.security.keys.WSAPIKeyDataStore.getAllURITemplates(WSAPIKeyDataStore.java:75) ...另外18个 由以下原因引起:org.apache.axis2.AxisFault:找不到端点引用(EPR)https://mig.mife.wso2telco.com:9445/services/APIKeyValidationService的服务 在org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) 在org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) 在org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445) 在org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) 在org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) 在org.wso2.carbon.apimgt.keymgt.stub.validator.APIKeyValidationServiceStub.getAllURITemplates(APIKeyValidationServiceStub.java:516) 在org.wso2.carbon.apimgt.gateway.handlers.security.keys.APIKeyValidatorClient.getAllURITemplates(APIKeyValidatorClient.java:159) ...另外19个 [2018-12-02 23:02:59,753]调试-标头http-incoming-2 << HTTP / 1.1 500 Internal Server Error
我已经检查了repository / conf / api-manager.xml,它的配置很好。 有谁知道如何解决以下错误?
Caused by: org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) https://mig.mife.wso2telco.com:9445/services/APIKeyValidationService
我刚刚注意到密钥管理器中的以下错误。版本: wso2telcoids-2.2.0
TID:[-1234] [] [2018-12-02 23:02:59,737]错误{org.apache.axis2.engine.AxisEngine}-找不到端点引用(EPR)服务{ 3}} org.apache.axis2.AxisFault:找不到端点引用(EPR)https://mig.mife.wso2telco.com:9445/services/APIKeyValidationService的服务 在org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:78) 在org.apache.axis2.engine.Phase.invoke(Phase.java:329) 在org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) 在org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) 在org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173) 在org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) 在org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:650) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 在org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) 在org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) 在org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 在org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) 在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) 在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) 在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) 在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 在org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99) 在org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve $ 1.invoke(CarbonTomcatValve.java:47) 在org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57) 在org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) 在org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) 在org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) 在org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) 在org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) 在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) 在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442) 在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082) 在org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:623) 在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1756) 在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.run(NioEndpoint.java:1715) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624) 在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61) 在java.lang.Thread.run(Thread.java:748)