private InternalApplicationLink retrieveApplicationLink(final ApplicationId id) throws TypeNotInstalledException { final ApplicationLinkProperties properties = propertyService.getApplicationLinkProperties(Preconditions.checkNotNull(id)); TypeId typeId = properties.getType(); if (typeId == null) { LOG.warn("Couldn't find type id for application link with id {}. Link is corrupted", id.get()); throw new TypeNotInstalledException("unknown", properties.getName(), properties.getRpcUrl()); } final ApplicationType type = typeAccessor.loadApplicationType(typeId); if (type == null) { LOG.debug("Couldn't load type {} for application link with id {}, name {}, rpc.url {} . The type may not be installed.", new Object[]{typeId, id.get(), properties.getName(), properties.getRpcUrl()}); throw new TypeNotInstalledException(typeId.get(), properties.getName(), properties.getRpcUrl()); } return new DefaultApplicationLink(id, type, properties, requestFactoryFactory, eventPublisher); }
try { if (typeAccessor.loadApplicationType(manifest.getTypeId()) == null) { throw new TypeNotInstalledException(manifest.getTypeId().get(), manifest.getName(), manifest.getUrl());
if (applicationType == null) { LOG.warn(String.format("Couldn't load type %s for application link. Type is not installed?", applicationLink.getTypeId())); throw new TypeNotInstalledException(applicationLink.getTypeId().get(), applicationLink.getName(), applicationLink.getRpcUrl());
if (applicationType == null) { LOG.warn(String.format("Couldn't load type %s for application link. Type is not installed?", applicationLink.getTypeId())); throw new TypeNotInstalledException(applicationLink.getTypeId().get(), applicationLink.getName(), applicationLink.getRpcUrl());
LOG.warn("Couldn't load type {} for application link id {}, name {}, rpc.url {}. Type is not installed?", applicationLink.getTypeId(), applicationLink.getId(), applicationLink.getName(), applicationLink.getRpcUrl()); throw new TypeNotInstalledException(applicationLink.getTypeId().get(), applicationLink.getName(), applicationLink.getRpcUrl());
throw new TypeNotInstalledException(applicationLink.getTypeId().get(), applicationLink.getName(), applicationLink.getRpcUrl());