mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Added an error message when gpl siddhi extension is not configured
This commit is contained in:
parent
c7a751b1ef
commit
8548e911aa
@ -227,7 +227,14 @@ public class GeoServcieManagerImpl implements GeoService {
|
||||
eventprocessorStub.deployExecutionPlan(parsedTemplate);
|
||||
}
|
||||
} else {
|
||||
log.error("Execution plan validation failed: " + validationResponse);
|
||||
if (validationResponse.startsWith(
|
||||
"'within' is neither a function extension nor an aggregated attribute extension"
|
||||
)) {
|
||||
log.error("GPL Siddhi Geo Extension is not configured. Please execute maven script " +
|
||||
"`siddhi-geo-extention-deployer.xml` in $IOT_HOME/analytics/scripts");
|
||||
} else {
|
||||
log.error("Execution plan validation failed: " + validationResponse);
|
||||
}
|
||||
throw new GeoServiceException(
|
||||
"Error occurred while " + action + " geo " + executionPlanType + " alert for " +
|
||||
identifier.getType() + " with id: " + identifier.getId());
|
||||
@ -235,13 +242,13 @@ public class GeoServcieManagerImpl implements GeoService {
|
||||
return true;
|
||||
} catch (AxisFault axisFault) {
|
||||
throw new GeoServiceException(
|
||||
"Event processor admin service stub initialization failed while " + action + " geo alert '" +
|
||||
"Event processor admin service initialization failed while " + action + " geo alert '" +
|
||||
executionPlanType + "' for " + identifier.getType() + " " +
|
||||
"device with id: " + identifier.getId(), axisFault
|
||||
);
|
||||
} catch (IOException e) {
|
||||
throw new GeoServiceException(
|
||||
"Event processor admin service stub invocation failed while " + action + " geo alert '" +
|
||||
"Event processor admin service failed while " + action + " geo alert '" +
|
||||
executionPlanType + "' for " + identifier.getType() + " " +
|
||||
"device with id: " + identifier.getId(), e);
|
||||
} catch (JWTClientException e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user