public static void verbosePrint(NSDictionary aDict) { Enumeration allKeys = aDict.keyEnumerator(); while (allKeys.hasMoreElements()) { String key = (String)allKeys.nextElement(); Object value = aDict.valueForKey(key); NSLog.debug.appendln("\tkey = " + key + "\t\tvalue = " + value + " (" + value.getClass().getName() + ")"); } } }
NSLog.debug.appendln("Found a quoted string: " + quotedStringKey + "='" + token + "';");
if (s1 != null) { if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 8388608L)) { NSLog.debug.appendln("<WOHTMLWebObjectTag> will look for " + s1 + " in the java runtime."); NSLog.debug.appendln("<WOHTMLWebObjectTag> will look for com.webobjects.appserver._private." + s1 + " ."); NSLog.err.appendln("WOBundle.lookForClassInAllBundles(" + s1 + ") failed!"); NSLog.debug.appendln("<WOHTMLWebObjectTag> Will initialize object of class " + s1); NSLog.debug.appendln("<WOHTMLWebObjectTag> will look for " + s1 + " in the Compiled Components."); NSLog.debug.appendln("<WOHTMLWebObjectTag> will look for " + s1 + " in the Frameworks.");
NSLog.debug.appendln("calculateNextScheduledShutdown: " + _nextScheduledShutdown);
public WOResponse sendRequestToWotaskd(WORequest aRequest, boolean willChange, boolean isSync) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("!@#$!@#$ sendRequestToWotaskd creates a WOHTTPConnection"); WOResponse aResponse = null; NSLog.err.appendln(localException); isAvailable = false; NSLog.debug.appendln("Cleared sync request for host " + name()); _siteConfig.hostErrorArray.removeObject(this);
NSLog.debug.appendln("!@#$!@#$ getSiteConfigFromHostAndPort creates a WOHTTPConnection"); NSDictionary<String, String> monitorRequest = new NSDictionary<>("SITE", "queryWotaskd"); NSData content = new NSData( (new _JavaMonitorCoder()).encodeRootObjectForKey(monitorRequest, "monitorRequest") );
NSLog.debug.appendln(new StringBuilder().append("value type '").append(_valueTypeChar()).append("' on attribute \"").append(name()).append("\" of entity \"").append(entity().name()).append("\" is invalid.\nYou should fix your EOModel.").toString()); return Integer.class;
aConfig = new MSiteConfig(siteDict); if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("the SiteConfig is \n" + aConfig.generateSiteConfigXML()); } catch (Throwable ex) { if (isWotaskd) {
} catch (ParseException e) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupWebObjects)) { NSLog.debug.appendln(e); } catch (ParseException e) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupWebObjects)) { NSLog.debug.appendln(e);
public void run() { setResult(null); _done = false; _doneAndRefreshed = false; String name = getClass().getName(); if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupWebObjects)) { NSLog.debug.appendln("<"+name+">: creating computation thread"); } // called to start new thread // We need to catch the possible exceptions too. try { setResult(performAction()); } catch (Exception localException) { _setException(localException); NSLog.err.appendln("<"+getClass().getName()+"> long response thread raised : "+localException.toString()); NSLog.err.appendln("STACK TRACE:"); NSLog.err.appendln(localException); } if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupWebObjects)) { NSLog.debug.appendln("<"+name+">: exiting computation thread"); } _done = true; }
public WOActionResults toggleDebugEnabled() { try { WOApplication application = WOApplication.application(); Method setDebugMethod = application.getClass().getMethod("setDebugEnabledForComponent", boolean.class, WOComponent.class); _debugEnabled = !_debugEnabled; setDebugMethod.invoke(application, Boolean.valueOf(_debugEnabled), context().page()); } catch (Throwable t) { NSLog.debug.appendln("Your application does not have a setDebugEnabledForComopnent(boolean, WOComponent) method."); } return context().page(); } }
private static WOElement _elementWithClass(Class class1, WODeclaration wodeclaration, WOElement woelement) { WOElement woelement1 = WOApplication.application().dynamicElementWithName(class1.getName(), wodeclaration.associations(), woelement, null); if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 8388608L)) { NSLog.debug.appendln("<WOHTMLWebObjectTag> Created Dynamic Element with name :" + class1.getName()); NSLog.debug.appendln("Declaration : " + wodeclaration); NSLog.debug.appendln("Element : " + woelement1.toString()); } return woelement1; }
public boolean nearNextScheduledShutdown(NSTimestamp rightNow) { long temp; temp = Math.abs(_nextScheduledShutdown.timeIntervalSinceTimestamp(rightNow)); if (temp < halfHourAsSeconds) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("nearNextScheduledShutdown TRUE"); return true; } if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("nearNextScheduledShutdown FALSE"); return false; }
public void setIsMandatory(Object aValue) { try { _isMandatory = _WOJExtensionsUtil.booleanValue(aValue); } catch (Throwable e) { String error = "WOToOneRelationship (setIsMandatory) - unable to set isMandatory value "+e.getMessage(); NSLog.err.appendln(error); } }