가면을 4.2.0으로 업그레이드 한 후 연결 문제가 발생했습니다.실패 원인 : de.measite.minidns.hla.ResolutionUnsuccessfulException : xxxx를 요구합니다. t IN t AAAA가 오류 응답 NX_DOMAIN을 산출했습니다.
The following addresses failed: 'xxxx:5222' failed because:
de.measite.minidns.hla.ResolutionUnsuccessfulException: Asking for xxxx. IN A yielded an error response NX_DOMAIN, '52.90.233.38:5222' failed because: de.measite.minidns.hla.ResolutionUnsuccessfulException: Asking for xxxx. IN AAAA yielded an error response NX_DOMAIN
호스트가 연결 구성 빌더에서 설정되면 문제가 발생합니다.
예 :
.setHost(ServiceConstants.CHAT_SERVER)
참조는 https://github.com/igniterealtime/Smack/wiki/Smack-4.2-Readme-and-Upgrade-Guide
이 내 최종 구성, 그것은 Davood Falahati 도움이 후 일입니다!
InetAddress inetAddress = InetAddress.getByName(ServiceConstants.CHAT_SERVER);
XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder()
.setXmppDomain(JidCreate.from(ServiceConstants.CHAT_SERVER).asDomainBareJid())
.setPort(5222)
.setHostAddress(inetAddress)
.setDebuggerEnabled(true)
.setSendPresence(true)
가능한 중복
setHostAddress(InetAddress address)
내 대답을 참조 사용 (http://stackoverflow.com/questions/43143359/error-on-smack-4-2-0-in-aaaa-yielded-an-error-response-nx-domain) – Flow