/** * Get a string containing the stack of the current location. * Note This utility is useful in debug scenarios to dump out * the call stack. * * @return String */ public static String callStackToString() { return stackToString(new RuntimeException()); }
/** * Get a string containing the stack of the current location. * Note This utility is useful in debug scenarios to dump out * the call stack. * * @return String */ public static String callStackToString() { return stackToString(new RuntimeException()); }
public void addToAllServicesMap(AxisService axisService) throws AxisFault { String serviceName = axisService.getName(); AxisService oldService = allServices.get(serviceName); if (oldService == null) { if (log.isDebugEnabled()) { log.debug("Adding service to allServices map: [" + serviceName + "] "); } allServices.put(serviceName, axisService); if (log.isTraceEnabled()) { //noinspection ThrowableInstanceNeverThrown log.trace("After adding to allServices map, size is " + allServices.size() + " call stack is " + JavaUtils.stackToString(new Exception())); } } else { // If we were already there, that's fine. If not, fault! if (oldService != axisService) { throw new AxisFault(Messages.getMessage("twoservicecannothavesamename", axisService.getName() + " [" + axisService.getFileName() + "]")); } } }
public void addToAllServicesMap(AxisService axisService) throws AxisFault { String serviceName = axisService.getName(); AxisService oldService = allServices.get(serviceName); if (oldService == null) { if (log.isDebugEnabled()) { log.debug("Adding service to allServices map: [" + serviceName + "] "); } allServices.put(serviceName, axisService); if (log.isTraceEnabled()) { //noinspection ThrowableInstanceNeverThrown log.trace("After adding to allServices map, size is " + allServices.size() + " call stack is " + JavaUtils.stackToString(new Exception())); } } else { // If we were already there, that's fine. If not, fault! if (oldService != axisService) { throw new AxisFault(Messages.getMessage("twoservicecannothavesamename", axisService.getName() + " [" + axisService.getFileName() + "]")); } } }
NhttpConstants.ERROR_MESSAGE, errorMessage.split("\n")[0]); responseMsgCtx.setProperty( NhttpConstants.ERROR_DETAIL, JavaUtils.stackToString(af)); responseMsgCtx.setProperty( NhttpConstants.ERROR_EXCEPTION, af);