Browse Source

fixed stack overflow error

pull/10075/head
YevhenBondarenko 3 years ago
parent
commit
27b5fe52a4
  1. 2
      application/src/main/java/org/thingsboard/server/service/sync/vc/DefaultEntitiesVersionControlService.java
  2. 1
      application/src/main/java/org/thingsboard/server/service/telemetry/DefaultTelemetrySubscriptionService.java
  3. 2
      dao/src/main/java/org/thingsboard/server/dao/attributes/CachedAttributesService.java

2
application/src/main/java/org/thingsboard/server/service/sync/vc/DefaultEntitiesVersionControlService.java

@ -283,7 +283,7 @@ public class DefaultEntitiesVersionControlService implements EntitiesVersionCont
return cachePut(ctx.getRequestId(), result);
} catch (LoadEntityException e) {
return cachePut(ctx.getRequestId(), onError(e.getExternalId(), e.getCause()));
} catch (Exception e) {
} catch (Throwable e) {
log.info("[{}] Failed to process request [{}] due to: ", ctx.getTenantId(), request, e);
return cachePut(ctx.getRequestId(), VersionLoadResult.error(EntityLoadError.runtimeError(e)));
}

1
application/src/main/java/org/thingsboard/server/service/telemetry/DefaultTelemetrySubscriptionService.java

@ -237,7 +237,6 @@ public class DefaultTelemetrySubscriptionService extends AbstractSubscriptionSer
}
@Override
public void saveAndNotify(TenantId tenantId, EntityId entityId, String scope, List<AttributeKvEntry> attributes, FutureCallback<Void> callback) {
saveAndNotify(tenantId, entityId, scope, attributes, true, callback);
}

2
dao/src/main/java/org/thingsboard/server/dao/attributes/CachedAttributesService.java

@ -256,7 +256,7 @@ public class CachedAttributesService implements AttributesService {
@Override
public ListenableFuture<List<String>> save(TenantId tenantId, EntityId entityId, String scope, List<AttributeKvEntry> attributes) {
return save(tenantId, entityId, scope, attributes);
return save(tenantId, entityId, AttributeScope.valueOf(scope), attributes);
}
@Override

Loading…
Cancel
Save