logger.info("Will connect local development cdm instance: at port " + devPort);
return devCii.getCdmRemoteSource(devInstance, devPort);
}
- } catch (Exception e) {
+ } catch (CDMServerException e) {
+ logger.error("Can not connect to local development cdm instance at port " + devPort + ". "
+ + "Make sure the cdm instance is running and that the Spring profile \"remoting\" is "
+ + "activated (-Dspring.profiles.active=remoting)", e);
+ //TODO show message dialog only instead of throwing the exception to show the error
+ // dialog is not necessary in this situation
}
logger.error("local development cdm instance at port " + devPort + " is not accessible");
}
super(shell, //conversation,
title, multi, ExtReferenceSelectionDialog.class.getCanonicalName());
this.currentReference = reference;
-
// controller = CdmStore.getCurrentApplicationConfiguration();
-// String currentValue = System.getProperty("cdm.server.dev.port");
- System.setProperty("cdm.server.dev.port", "8080");
remoteSource = CdmServerInfo.getDevServerRemoteSource();
remoteSourceRef = ReferenceFactory.newDatabase();
remoteSourceRef.setTitle(remoteSource.getName());
- System.setProperty("cdm.server.dev.port", "80");
}