0


ほとんどの場合、アプリを実行しているときにダイアログボックスが開き、 「アプリケーション はサービスへの接続に失敗し
ました」という予期しない問題に直面しています。スナップショットを参照してください。

ここに画像の説明を入力

ただし、このダイアログの [再読み込み] ボタンを 2 ~ 3 回押すと、アプリが WL サーバーに接続され、アプリが正常に動作します。しかし、アプリを強制終了してから再実行すると、再び同じダイアログが表示されます。

デバイスにインストールした後、初めてアプリを実行したときにも表示されます。

私のアプリは 2 か月前から問題なく動作していました。

私が行った唯一の新しいことは、プッシュ通知です。これは
、アプリに追加した唯一の新機能です。

これに関する提案はありますか?

  1. この問題の根本的な原因は何ですか? どうすれば追跡できますか?
  2. そして、このダイアログを無効にして、代わり
    に画面にカスタム メッセージ (アラート) を表示したい場合。このダイアログ ボックスには、
    実行中のサービス / WL サーバーの URL が表示されるためです。

コンソールには、「アプリケーションがサービスへの接続に失敗しました」のみが表示されます

また、ダイアログ ボックスの [詳細] オプションをクリックしている間。WL Server の正しいアドレスが表示されます。そして、3/4回リロードした後、アプリをサーバーに接続して正常に動作し、その後正常に動作して何も表示されません。

ログは以下のとおりです。

Apr 15 14:24:51 iPhone myApp[2746] <Warning>: [LOG] ondeviceready event dispatched
Apr 15 14:24:51 iPhone myApp [2746] <Warning>: {
        appVersionPref = "1.0";
        freeSpace = 13572620288;
        wlSkinLoaderChecksum = "(null)";
        wlSkinName = default;
    }
Apr 15 14:24:51 iPhone myApp [2746] <Warning>: [LOG] Application did not define an i18n messages object, skipping translation.
Apr 15 14:24:51 iPhone myApp [2746] <Warning>: [LOG] wlclient init started
Apr 15 14:24:51 iPhone myApp [2746] <Warning>: [LOG] Read cookies: null
Apr 15 14:24:51 iPhone myApp [2746] <Warning>: [LOG] CookieMgr read cookies: {}
Apr 15 14:24:57 iPhone myApp [2746] <Warning>: [LOG] Connection went Down: Mon Apr 15 2013 14:24:57 GMT+0300 (AST)
Apr 15 14:24:57 iPhone myApp [2746] <Warning>: [ERROR] Client init failed. Connection to the service is not available.
Apr 15 14:25:07 iPhone myApp [2746] <Warning>: [LOG] ondeviceready event dispatched
Apr 15 14:25:07 iPhone myApp [2746] <Warning>: {
        appVersionPref = "1.0";
        freeSpace = 13572620288;
        wlSkinLoaderChecksum = "(null)";
        wlSkinName = default;
}

[詳細] をクリックして:

Apr 15 2013 23:55:17 GMT+0300 (AST)
Apr 15 23:55:17 iPhone myApp[3116] <Warning>: [ERROR] Client init failed. Connection to the service is not available.
Apr 15 23:55:19 iPhone myApp[3116] <Warning>: WLReachability Flag Status: -R -----l- networkStatusForFlags
Apr 15 23:55:59 iPhone kernel[0] <Debug>: launchd[3120] Builtin profile: MobileSafari (sandbox)
Apr 15 23:56:02 iPhone kernel[0] <Debug>: launchd[3121] Builtin profile: syncdefaultsd (sandbox)
Apr 15 23:56:21 iPhone myApp[3116] <Warning>: Copied text: 'App Diagnostics

    Time : Mon Apr 15 2013 23:55:19 GMT+0300 (AST)
    Application Name : myApp
    Application Version : 1.0
    Service URL : https://www.mydomain.com.bh:443/AppProject/apps/services/api/myApp/iphone/
    Device Platform : iPhone
    Device Version : 6.1
    Screen Resolution : 320x480
    Airplane Mode : Not available
    Using Network : WIFI
    Wifi Name : Not available
    Mobile Network Type : Not available
    Carrier Name : Not available
    IP Address : 192.168.109.101
    Error Code : UNRESPONSIVE_HOST
    Error Message : Connection to the service is not available.
    HTTP Status : 
4

1 に答える 1