use of Glacier2.CannotCreateSessionException in project imagej-omero by imagej.
the class OpenTableFromOMERO method run.
@Override
public void run() {
final OMEROCredentials credentials = new OMEROCredentials();
credentials.setServer(getServer());
credentials.setPort(getPort());
credentials.setUser(getUser());
credentials.setPassword(getPassword());
try {
table = ((DefaultOMEROService) omeroService).downloadTable(credentials, tableID);
} catch (ServerError exc) {
log.error(exc);
exc.printStackTrace();
cancel("Error talking to OMERO: " + exc.getMessage());
} catch (PermissionDeniedException exc) {
log.error(exc);
exc.printStackTrace();
cancel("Error talking to OMERO: " + exc.getMessage());
} catch (CannotCreateSessionException exc) {
log.error(exc);
exc.printStackTrace();
cancel("Error talking to OMERO: " + exc.getMessage());
} catch (DSOutOfServiceException exc) {
log.error(exc);
exc.printStackTrace();
cancel("Error talking to OMERO: " + exc.getMessage());
} catch (ExecutionException exc) {
log.error(exc);
exc.printStackTrace();
cancel("Error talking to OMERO: " + exc.getMessage());
} catch (DSAccessException exc) {
log.error(exc);
exc.printStackTrace();
cancel("Error talking to OMERO: " + exc.getMessage());
}
}
use of Glacier2.CannotCreateSessionException in project imagej-omero by imagej.
the class SaveTableToOMERO method run.
@Override
public void run() {
final OMEROCredentials credentials = new OMEROCredentials();
credentials.setServer(getServer());
credentials.setPort(getPort());
credentials.setUser(getUser());
credentials.setPassword(getPassword());
final Table<?, ?> table = tableDisplay.get(0);
try {
((DefaultOMEROService) omeroService).uploadTable(credentials, name, table, imageID);
} catch (ServerError exc) {
log.error(exc);
cancel("Error talking to OMERO: " + exc.message);
} catch (PermissionDeniedException exc) {
log.error(exc);
cancel("Error talking to OMERO: " + exc.getMessage());
} catch (CannotCreateSessionException exc) {
log.error(exc);
cancel("Error talking to OMERO: " + exc.getMessage());
} catch (ExecutionException exc) {
log.error(exc);
cancel("Error attaching table to OMERO image: " + exc.getMessage());
} catch (DSOutOfServiceException exc) {
log.error(exc);
cancel("Error attaching table to OMERO image: " + exc.getMessage());
} catch (DSAccessException exc) {
log.error(exc);
cancel("Error attaching table to OMERO image: " + exc.getMessage());
}
}
Aggregations