2014-07-21 4 views
0

워크 라이트 어댑터를 배치하려고 할 때이 오류가 발생합니다. 나는 이미 코드를 정리하고 구문을 검사한다. 오류는 없다.IBM Worklight - 어댑터 배치 실패 : 어댑터 'BIIOwnAccountFundTransferAdapter.xml'에 오류가 있습니다.

[2014-07-21 12:04:22]    Starting adapter deployment on Worklight Server 
[2014-07-21 12:04:22]    Starting build of adapter: BIIOwnAccountFundTransferAdapter.xml 
[2014-07-21 12:04:22]    Adapter deployment failed: Adapter 'BIIOwnAccountFundTransferAdapter.xml' contains errors 

내 XML 코드가

<?xml version="1.0" encoding="UTF-8"?> 
<!-- 
    Licensed Materials - Property of IBM 
    5725-I43 (C) Copyright IBM Corp. 2011, 2013. All Rights Reserved. 
    US Government Users Restricted Rights - Use, duplication or 
    disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
--> 
<wl:adapter name="BIIOwnAccountFundTransferAdapter" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:wl="http://www.worklight.com/integration" 
    xmlns:http="http://www.worklight.com/integration/http"> 

    <displayName>BIIOwnAccountFundTransferAdapter</displayName> 
    <description>BIIOwnAccountFundTransferAdapter</description> 
    <connectivity> 
     <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> 
      <protocol>http</protocol> 
      <domain>xxx.xxx.xx.xx</domain> 
      <port>9083</port> 
      <!-- Following properties used by adapter's key manager for choosing specific certificate from key store 
      <sslCertificateAlias></sslCertificateAlias> 
      <sslCertificatePassword></sslCertificatePassword> 
      -->  
     </connectionPolicy> 
     <loadConstraints maxConcurrentConnectionsPerNode="2" /> 
    </connectivity> 

    <procedure name="processTransferDetails"/> 
    <procedure name="proceedOwnTransferConfirm"/> 
    <procedure name="proceedOwnTransferResult"/> 

</wl:adapter> 

내 JS 코드가

function processTransferDetails(userId) { 
    path = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
    var input = { 
     method: 'post', 
     returnedContentType: 'json', 
     path: path, 
     body: { 
      contentType: 'application/json; charset=UTF-8', 
      content: JSON.stringify({ 
       "locale": "en", 
       "userId": userId, 
       "serviceInfoType": "FUNOWN" 
      }) 
     } 
    }; 
    return WL.Server.invokeHttp(input); 
} 

function proceedOwnTransferConfirm(userAlias, password, toCurrency, toAmount, 
    fromCurrency, selectedCurrency, payMode) { 
    path = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
    var input = { 
     method: 'post', 
     returnedContentType: 'json', 
     path: path, 
     body: { 
      contentType: 'application/json; charset=UTF-8', 
      content: JSON.stringify({ 
       "locale": "en", 
       "serviceInfoName": "Transfer Own Account", 
       "fromAccountNumber": fromAccountNumber, 
       "toAccountNumber": toAccountNumber, 
       "toCurrency": toCurrency, 
       "toAmount": toAmount, 
       "fromCurrency": fromCurrency, 
       "sessionId": "20140703104656008130", 
       "selectedCurrency": selectedCurrency, 
       "isTacRequired": false, 
       "isStandingInstruction": false, 
       "payMode": payMode 
      }) 
     } 
    }; 
    return WL.Server.invokeHttp(input); 
} 

function proceedOwnTransferResult(userAlias, remoteIPAddress) { 
    path = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
    var input = { 
     method: 'post', 
     returnedContentType: 'json', 
     path: path, 
     body: { 
      contentType: 'application/json; charset=UTF-8', 
      content: JSON.stringify({ 
       "userAlias": userAlias, 
       "locale": "en", 
       "channel": "2", 
       "userAgent": "mobile", 
       "remoteIPAddress": remoteIPAddress, 
       "sessionId": "", 
      }) 
     } 
    }; 
    return WL.Server.invokeHttp(input); 
} 

조언을 주시기 바랍니다 콘솔 내부

오류 메시지가

+0

서버를 다시 시작하고 다시 배포 해보십시오. 내 컴퓨터에서 오류없이 동일한 코드를 작성할 수 있습니다. 따라서 이것은 서버 인스턴스에 문제가 될 수 있습니다. – Bluewings

답변

3

나는 문제를 컴파일/어떤 빌드를하지 않았다 너와 함께 dapter (복사 - 빈 프로젝트에 붙여 넣기).

Worklight Studio (다른 Eclipse 플러그인과 마찬가지로)가 분명한 이유없이 일관성없는 상태가되어 개인적으로 경험했습니다. 그런 일이 발생하면 보통 <workspace>/<project>/bin 디렉토리의 내용을 삭제하려고 시도하고 응용 프로그램과 어댑터를 다시 작성하려고합니다. wlBuildResources 폴더를 삭제하여 temp 폴더 (Windows, OS X)

  • 를 찾습니다

    1. 닫기 스튜디오
    2. : 그 문제가 해결되지 않으면

      , 최후의 수단은 일반적으로 빌드 임시 파일을 삭제하는 것입니다

    3. Studio를 다시 열고 앱과 어댑터를 다시 작성해보십시오.
  • 관련 문제