托盘 - 连接被拒绝

时间:2014-02-24 09:08:18

标签: android opentok tokbox

我尝试在android opentok中测试示例应用。我复制了API密钥,会话ID和令牌,当我在Android 4.1上启动应用程序时,我得到了这个日志:

02-24 09:39:12.601 17820-17820/com.marcinmichalek.tokboxtest D/dalvikvm﹕ Trying to load lib /data/data/com.marcinmichalek.tokboxtest/lib/libopentok.so 0x41b06ee8
02-24 09:39:13.112 17820-17820/com.marcinmichalek.tokboxtest D/dalvikvm﹕ Added shared lib /data/data/com.marcinmichalek.tokboxtest/lib/libopentok.so 0x41b06ee8
02-24 09:39:13.122 17820-17820/com.marcinmichalek.tokboxtest D/opentok-jni﹕ JNI_OnLoad called
02-24 09:39:13.172 17820-17820/com.marcinmichalek.tokboxtest D/WEBRTC﹕ JNI:SetAndroidAudioDeviceObjects
02-24 09:39:13.182 17820-17820/com.marcinmichalek.tokboxtest D/opentok-jni﹕ ***** OpenTok Android SDK : 20131112225450-otkit-android *****
02-24 09:39:13.392 17820-17820/com.marcinmichalek.tokboxtest E/SensorManager﹕ thread start
02-24 09:39:13.482 17820-17820/com.marcinmichalek.tokboxtest D/SensorManager﹕ registerListener :: handle = 0 name= MPU-6050 Accelerometer delay= 66667 Trklfufi 9 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,*a.b-a8
02-24 09:39:13.482 17820-17870/com.marcinmichalek.tokboxtest D/opentok-jni﹕ ot_session_create
02-24 09:39:13.562 17820-17866/com.marcinmichalek.tokboxtest D/opentok-native﹕ [ERROR] jni/../src/ot_websvc_xml.c:636: errno: Connection refused ot_websvc_xml_request[*(ot_websvc_xml_req** ppwebsvc_xml_req)=0x58e71368]
02-24 09:39:13.562 17820-17866/com.marcinmichalek.tokboxtest D/opentok-native﹕ [ERROR] jni/../src/ot_websvc_client.c:1291: errno: Connection refused ot_websvc_client_create_ios_sdk_version_request[*(ot_websvc_client_ios_sdk_version_info** ppRequestInfo)=0x58e71348]
02-24 09:39:13.562 17820-17866/com.marcinmichalek.tokboxtest D/opentok-jni﹕ --------------------my_on_session_error 3 The session failed to connect.
02-24 09:39:13.662 17820-17820/com.marcinmichalek.tokboxtest I/demo-hello-world﹕ Session exception: The session failed to connect.
02-24 09:39:13.902 17820-17820/com.marcinmichalek.tokboxtest D/libEGL﹕ loaded /system/lib/egl/libEGL_mali.so
02-24 09:39:13.962 17820-17820/com.marcinmichalek.tokboxtest D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_mali.so
02-24 09:39:13.972 17820-17820/com.marcinmichalek.tokboxtest D/libEGL﹕ loaded /system/lib/egl/libGLESv2_mali.so
02-24 09:39:14.012 17820-17820/com.marcinmichalek.tokboxtest D/OpenGLRenderer﹕ Enabling debug mode 0

任何人都知道如何解决它?我在清单中启用了所有必需的权限。

2 个答案:

答案 0 :(得分:0)

你的Android上有互联网访问权限吗? Android设备是否连接到wifi的蜂窝网络?似乎OpenTok很难与这些线路的服务器交谈:

errno: Connection refused ot_websvc_xml_request[*(ot_websvc_xml_req** ppwebsvc_xml_req)=0x58e71368]

ERROR] jni/../src/ot_websvc_client.c:1291: errno: Connection refused ot_websvc_client_create_ios_sdk_version_request[*(ot_websvc_client_ios_sdk_version_info** ppRequestInfo)=0x58e71348]

答案 1 :(得分:0)

是的我有互联网接入(wifi)。这似乎是一个临时的服务器问题。一段时间后我尝试了相同的应用程序,它运行正常。