IBM工作灯 - "客户端初始化失败。连接到服务不可&QUOT。 [英] IBM Worklight - "Client init failed. Connection to the service is not available."

查看:135
本文介绍了IBM工作灯 - "客户端初始化失败。连接到服务不可&QUOT。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建的工作灯开发版的Andr​​oid应用程序。
当我在 connectOnStartup 属性更改为真正 initOptions.js 文件,然后在设备上安装应用程序,在启动时,在LogCat中我看到的:

I've created an Android app in Worklight Developer Edition. When I change the connectOnStartup property to true in the initOptions.js file and then install the application on the device, on startup, in LogCat I see:

Client init failed. Connection to the service is not available.

和在应用程序中有一个对话框:

And in the app there's a dialog with:

The application failed connecting to the service.

谁能帮我?

推荐答案

请确保您的设备和主机都使用相同的WiFi网络...

Make sure your device and host are using the same WiFi network...

要验证您的设备能够连接到服务器上,打开手机浏览器的应用程序(无论是股票应用程序或Chrome或其他方式,无所谓),并负载 HTTP://您的服务器地址:10080 /你的项目名称/控制台

To verify your device is able to connect to the server, open a mobile browser app (either the stock app or Chrome or otherwise, doesn't matter) and load http://your-server-address:10080/your-project-name/console


  • 如果您没有看到工作灯控制台,那么你有一个网络的问题,在这里,可能不会使用相同的网络,或者你堵某些端口等

  • 如果您确实看到工作灯控制台,那么我们这里有一个问题...

这篇关于IBM工作灯 - "客户端初始化失败。连接到服务不可&QUOT。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆