|
|
@ -2515,7 +2515,7 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
log.debug("Get installed applications of device: " + device.getId() + " of type '" + device.getType() + "'");
|
|
|
|
log.debug("Get installed applications of device: " + device.getId() + " of type '" + device.getType() + "'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<Application> applications = new ArrayList<>();
|
|
|
|
List<Application> applications;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
DeviceManagementDAOFactory.openConnection();
|
|
|
|
DeviceManagementDAOFactory.openConnection();
|
|
|
|
applications = applicationDAO.getInstalledApplications(device.getId(), device.getEnrolmentInfo().getId());
|
|
|
|
applications = applicationDAO.getInstalledApplications(device.getId(), device.getEnrolmentInfo().getId());
|
|
|
@ -2671,8 +2671,10 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|
|
|
deviceInformationManager.addDeviceLocation(deviceLocation);
|
|
|
|
deviceInformationManager.addDeviceLocation(deviceLocation);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
//We are not failing the execution since this is not critical for the functionality. But logging as
|
|
|
|
//We are not failing the execution since this is not critical for the functionality. But logging as
|
|
|
|
// an error for reference.
|
|
|
|
// a warning for reference.
|
|
|
|
log.error("Exception occurred while trying to add device location.", e);
|
|
|
|
log.warn("Error occurred while trying to add '" + device.getType() + "' device '" +
|
|
|
|
|
|
|
|
device.getDeviceIdentifier() + "' (id:'" + device.getId() + "') location (lat:" + latitude +
|
|
|
|
|
|
|
|
", lon:" + longitude + ") due to:" + e.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|