List of usage examples for org.springframework.jms UncategorizedJmsException toString
public String toString()
From source file:com.oneops.daq.AsyncPerfWorker.java
@Override public Void call() { try {/*from ww w .ja v a 2s .c o m*/ long startTime = System.currentTimeMillis(); if (perfEvent.isAggregate()) { perfDao.processAggregate(perfEvent); perfDao.newCount.incrementAndGet(); } else { perfDao.process(perfEvent, ip); perfDao.oldCount.incrementAndGet(); } long duration = System.currentTimeMillis() - startTime; logger.debug( "process " + perfEvent.getCiId() + " " + perfEvent.getGrouping() + " took " + duration + " ms"); long eventCount = perfDao.eventCounter.incrementAndGet(); perfDao.batchDuration.getAndAdd(duration); if (eventCount % PRINT_STATUS_INCREMENT == 0) { writeStats(eventCount); } } catch (HectorException he) { logger.error("invalid message: " + he.toString(), he); long heCount = perfDao.hectorExceptionCount.incrementAndGet(); logger.warn("total hector exceptions: " + heCount); } catch (JMSException je) { logger.error("invalid message: " + je.toString(), je); long jeCount = perfDao.jmsExceptionCount.incrementAndGet(); logger.warn("total jms exceptions: " + jeCount); } catch (UncategorizedJmsException uje) { logger.error("invalid message: " + uje.toString(), uje); long jeCount = perfDao.jmsExceptionCount.incrementAndGet(); logger.warn("total (uncat) jms exceptions: " + jeCount); } catch (Exception e) { // log and ignore logger.error("invalid message: " + e.toString(), e); return null; } return null; }