簡體   English   中英

IBM Worklight-適配器部署失敗:適配器'BIIOwnAccountFundTransferAdapter.xml'包含錯誤

[英]IBM Worklight - Adapter deployment failed: Adapter 'BIIOwnAccountFundTransferAdapter.xml' contains errors

嘗試部署Worklight適配器時出現此錯誤。 我已經清理了代碼並檢查了語法,完全沒有錯誤。

控制台內的錯誤消息

[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);
}

請指教

我的適配器沒有任何構建/編譯問題(將其復制粘貼到一個空項目中)。

我個人經驗豐富的Worklight Studio(以及其他Eclipse插件)沒有明顯的原因進入不一致狀態。 發生這種情況時,我通常會嘗試刪除<workspace>/<project>/bin目錄的內容,然后嘗試再次構建應用程序和適配器。

如果這樣做沒有幫助,那么最后的方法通常是刪除構建臨時文件:

  1. 關閉工作室
  2. 找到您的temp文件夾( WindowsOS X
  3. 刪除wlBuildResources文件夾
  4. 重新打開Studio,然后嘗試再次構建應用和適配器

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM