eclipse / paho.mqtt.android

MQTT Android
Other
2.92k stars 883 forks source link

connect onFailure() (0) #421

Open wall3001 opened 4 years ago

wall3001 commented 4 years ago

mqtt connect error, the IMqttActionListener callback onFailure shows that "connect onFailure() (0)" It has been called by per 5ms.Then I try to reconnect per 30s ,it still failed.

wall3001 commented 4 years ago

in MqttDefaultFilePersistence.java invoke this method then causes this MqttPersistenceException. private void restoreBackups(File dir) throws MqttPersistenceException { File[] files = dir.listFiles(new PersistanceFileFilter(MESSAGE_BACKUP_FILE_EXTENSION));

    if (files == null) {
        throw new MqttPersistenceException();
    }
BigKarel commented 3 years ago

有解决办法吗?