@Override public void run() { try { if (!reader.read()) { // here we started and won't throw any exceptions! LOG.error("Calling read() on Reader '{}' ({}) returned false.", reader.getName(), reader.getPluginName()); AnalysisController.this.terminate(true); } } catch (final Throwable t) { // NOPMD NOCS (we also want errors) LOG.error("Exception while reading on Reader '{}' ({}).", reader.getName(), reader.getPluginName(), t); AnalysisController.this.terminate(true); } finally { readerLatch.countDown(); } } }).start();
@Override public void run() { try { if (!reader.read()) { // here we started and won't throw any exceptions! LOG.error("Calling read() on Reader '" + reader.getName() + "' (" + reader.getPluginName() + ") returned false."); AnalysisController.this.terminate(true); } } catch (final Throwable t) { // NOPMD NOCS (we also want errors) LOG.error("Exception while reading on Reader '" + reader.getName() + "' (" + reader.getPluginName() + ").", t); AnalysisController.this.terminate(true); } finally { readerLatch.countDown(); } } }).start();
throw new AnalysisConfigurationException("Reader '" + reader.getName() + "' (" + reader.getPluginName() + ") has unconnected repositories."); throw new AnalysisConfigurationException("Reader '" + reader.getName() + "' (" + reader.getPluginName() + ") failed to initialize.");
throw new AnalysisConfigurationException("Reader '" + reader.getName() + "' (" + reader.getPluginName() + ") has unconnected repositories."); throw new AnalysisConfigurationException("Reader '" + reader.getName() + "' (" + reader.getPluginName() + ") failed to initialize.");