2016-06-02 1 views
1

우리의 설치 :생성의 OAuth 키 1.10.0

  • WSO2의 API 관리자 : 1.10.0
  • MySQL은 : 5.7.12
  • WSO2의 API DAS : 3.0.1
  • OS : 우분투 14.04 LTS

우리는 구성 및 파일이 GitHub의 사이트를 기반으로, 아니 부하 분산 (일시적으로)와 API를 관리자의 분산 설치를 사용하고 있습니다 :

https://github.com/nuwanbando/wso2-apim-distributed-deployment

을하지만 우리는 응용 프로그램을 생성 할 때마다 가입 된 API의 키, 우리는 다음과 같은 오류 얻을 : 우리가 얻을 게이트웨이의 로그에서

API Store Error

을 (나는 가장 중요한 ASP를 보여주기 위해 로그를 조직 한 ECTS) :

ERROR - AMDefaultKeyManagerImpl Can not create OAuth application : coreApp_PRODUCTION 
org.wso2.carbon.apimgt.keymgt.stub.subscriber.APIKeyMgtSubscriberServiceAPIManagementException: APIKeyMgtSubscriberServiceAPIManagementException 


ERROR - APIUtil Error occurred while executing SubscriberKeyMgtClient. 
org.wso2.carbon.apimgt.api.APIManagementException: Can not create OAuth application : coreApp_PRODUCTION 

     Caused by: org.wso2.carbon.apimgt.keymgt.stub.subscriber.APIKeyMgtSubscriberServiceAPIManagementException: APIKeyMgtSubscriberServiceAPIManagementException 


ERROR - ApplicationRegistrationSimpleWorkflowExecutor Error occured when updating the status of the Application creation process 
org.wso2.carbon.apimgt.api.APIManagementException: Error occurred while executing SubscriberKeyMgtClient. 

     Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Can not create OAuth application : coreApp_PRODUCTION 

     Caused by: org.wso2.carbon.apimgt.keymgt.stub.subscriber.APIKeyMgtSubscriberServiceAPIManagementException: APIKeyMgtSubscriberServiceAPIManagementException 


ERROR - APIConsumerImpl Could not execute Workflow  
org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error occured when updating the status of the Application creation process 

     Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error occurred while executing SubscriberKeyMgtClient. 

     Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Can not create OAuth application : coreApp_PRODUCTION 

     Caused by: org.wso2.carbon.apimgt.keymgt.stub.subscriber.APIKeyMgtSubscriberServiceAPIManagementException: APIKeyMgtSubscriberServiceAPIManagementException 


ERROR - APIStoreHostObject Error while obtaining the application access token for the application:coreApp 
org.wso2.carbon.apimgt.api.APIManagementException: Could not execute Workflow  

     Caused by: org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error occured when updating the status of the Application creation process 

     Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error occurred while executing SubscriberKeyMgtClient. 

     Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Can not create OAuth application : coreApp_PRODUCTION 

     Caused by: org.wso2.carbon.apimgt.keymgt.stub.subscriber.APIKeyMgtSubscriberServiceAPIManagementException: APIKeyMgtSubscriberServiceAPIManagementException 


ERROR - subscription-add:jag org.jaggeryjs.scriptengine.exceptions.ScriptException: Error while obtaining the application access token for the application:coreApp 

그리고 키 관리자의 로그 (I)는도를 정리 한 :

ERROR - CarbonContextDataHolder Cannot retrieve UserRealm for tenant -1 
org.wso2.carbon.user.core.UserStoreException: Error occurred while getting tenant user realm for tenant id : -1 

     Caused by: java.lang.IllegalStateException: Tenant ID cannot be -1 

ERROR - APIUtil Error occurred while creating OAuthApp admin_coreApp_PRODUCTION 
java.lang.NullPointerException 
    at org.wso2.carbon.identity.application.mgt.ApplicationMgtUtil.createAppRole(ApplicationMgtUtil.java:142) 
    at org.wso2.carbon.identity.application.mgt.ApplicationManagementServiceImpl.createApplication(ApplicationManagementServiceImpl.java:129) 
    at org.wso2.carbon.apimgt.keymgt.service.APIKeyMgtSubscriberService.createOAuthApplicationByApplicationInfo(APIKeyMgtSubscriberService.java:137) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
... 

우리는이 문제를 해결하기 위해 무엇을 할 것인가?

답변

2

우리는 다음 위치

/저장소/배포/서버/시냅스-CONFIGS/기본/API를

AuthorizeAPI .XML

RevokeAPI에서의 KeyManager 호스트 및 포트를 구성해야 .xml

TokenAPI .xml