信任锚认证路径没有找到。
解决方法:增加setSecurityMode()方法。
XMPPTCPConnectionConfiguration.Builder configBuilder = XMPPTCPConnectionConfiguration.builder(); configBuilder.setHost("192.168.1.222"); configBuilder.setPort(5222); configBuilder.setServiceName("192.168.1.222"); configBuilder.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled); final AbstractXMPPConnection connection =new XMPPTCPConnection(configBuilder.build());