【问题标题】:DEBUG/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocolDEBUG/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocol
【发布时间】:2011-10-18 11:04:48
【问题描述】:

我正在使用 deacon 库在我的 android 应用程序中获取推送通知。我实现了演示应用程序,但我无法从我的办公室连接到我的应用程序中的流星服务器。但是,当我尝试从家里连接时,它可以工作。似乎有什么东西阻止了我工作场所的连接。

当我在办公室以调试模式运行应用程序时,它给出了错误 -

DEBUG/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocol

可能是什么问题?如何检查/调试此问题? 我想知道问题出在哪里,是在连接还是在获得响应?

【问题讨论】:

  • 听起来很可能是您办公室的 TCP 端口被阻塞。

标签: android debugging push-notification socketexception


【解决方案1】:

SNTP 是网络时间协议。模拟器尝试获取实际时间。我认为,这与您的应用无关。

取自:http://developer.appcelerator.com/question/117495/javanetsocketexception-address-family-not-supported-by-protocol

【讨论】:

    猜你喜欢
    • 2011-05-08
    • 2011-07-04
    • 2019-02-07
    • 2021-04-02
    • 1970-01-01
    • 2019-11-06
    • 2013-05-05
    • 1970-01-01
    • 2022-11-22
    相关资源
    最近更新 更多