try {
input.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("exception occured in checkStartup "+e);
}
}
}
try {
input.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("exception occured in checkStartup "+e);
}
}
}
return false;
}
logger.info("Published to Topic :" + this.topicname + " Successfully");
- response = topicUtil.subscribeTopic(topicURL, topicname, "1", response, response);
+ response = topicUtil.subscribeTopic(topicURL, topicname, "1", mechid, password);
if (response != null && response.startsWith("ERROR:")) {
logger.error("Problem subscribing to topic, please verify the config " + this.topicname + " MR URL is:"
+ this.topicURL + " Error is: " + response);
prop.store(out, "");
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("exception occured in checkPropertiesFile "+e);
}
} finally {
if (input != null) {
try {
out.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("exception occured in checkPropertiesFile "+e);
}
}
}