diff --git a/applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/orbital/OrbitalPaymentServices.java b/applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/orbital/OrbitalPaymentServices.java index 80e1d0bfb9..bb08da995f 100644 --- a/applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/orbital/OrbitalPaymentServices.java +++ b/applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/orbital/OrbitalPaymentServices.java @@ -72,8 +72,7 @@ public class OrbitalPaymentServices { try { request = new Request(RequestIF.NEW_ORDER_TRANSACTION); } catch (InitializationException e) { - Debug.logError("Error in request initialization", module); - e.printStackTrace(); + Debug.logError(e, "Error in request initialization", module); } buildAuthOrAuthCaptureTransaction(context, delegator, props, request, results); Map validateResults = validateRequest(context, props, request); @@ -99,8 +98,7 @@ public class OrbitalPaymentServices { try { request = new Request(RequestIF.NEW_ORDER_TRANSACTION); } catch (InitializationException e) { - Debug.logError("Error in request initialization", module); - e.printStackTrace(); + Debug.logError(e, "Error in request initialization", module); } buildAuthOrAuthCaptureTransaction(context, delegator, props, request, results); Map validateResults = validateRequest(context, props, request); @@ -145,8 +143,7 @@ public class OrbitalPaymentServices { try { request = new Request(RequestIF.MARK_FOR_CAPTURE_TRANSACTION); } catch (InitializationException e) { - Debug.logError("Error in request initialization", module); - e.printStackTrace(); + Debug.logError(e, "Error in request initialization", module); } buildCaptureTransaction(context, delegator, props, request, results); Map validateResults = validateRequest(context, props, request); @@ -190,8 +187,7 @@ public class OrbitalPaymentServices { try { request = new Request(RequestIF.NEW_ORDER_TRANSACTION); } catch (InitializationException e) { - Debug.logError("Error in request initialization", module); - e.printStackTrace(); + Debug.logError(e, "Error in request initialization", module); } buildRefundTransaction(context, props, request, results); Map validateResults = validateRequest(context, props, request); @@ -234,8 +230,7 @@ public class OrbitalPaymentServices { try { request = new Request(RequestIF.REVERSE_TRANSACTION); } catch (InitializationException e) { - Debug.logError("Error in request initialization", module); - e.printStackTrace(); + Debug.logError(e, "Error in request initialization", module); } buildReleaseTransaction(context, delegator, props, request, results); Map validateResults = validateRequest(context, props, request); @@ -278,8 +273,7 @@ public class OrbitalPaymentServices { buildConfiguratorContext.putAll(config.getConfigurations()); config.setConfigurations(buildConfiguratorContext); } catch (InitializationException e) { - Debug.logError("Orbital Configurator Initialization Error: " + e.getMessage(), module); - e.printStackTrace(); + Debug.logError(e, "Orbital Configurator Initialization Error: " + e.getMessage(), module); } return buildConfiguratorContext; } @@ -380,7 +374,7 @@ public class OrbitalPaymentServices { } catch (FieldNotFoundException fnfe) { Debug.logError("Unable to find XML field in template", module); } catch (Exception e) { - e.printStackTrace(); + Debug.logError(e, module); } } @@ -419,7 +413,7 @@ public class OrbitalPaymentServices { } catch (FieldNotFoundException fnfe) { Debug.logError("Unable to find XML field in template" + fnfe.getMessage(), module); } catch (Exception e) { - e.printStackTrace(); + Debug.logError(e, module); } } @@ -451,7 +445,7 @@ public class OrbitalPaymentServices { } catch (FieldNotFoundException fnfe) { Debug.logError("Unable to find XML field in template", module); } catch (Exception e) { - e.printStackTrace(); + Debug.logError(e, module); } } @@ -475,7 +469,7 @@ public class OrbitalPaymentServices { } catch (FieldNotFoundException fnfe) { Debug.logError("Unable to find XML field in template" + fnfe.getMessage(), module); } catch (Exception e) { - e.printStackTrace(); + Debug.logError(e, module); } } @@ -641,7 +635,7 @@ public class OrbitalPaymentServices { } } catch (GenericEntityException e) { Debug.logError("Shipping Ref not found returning empty string", module); - e.printStackTrace(); + Debug.logError(e, module); } return shippingRef; } diff --git a/applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/securepay/SecurePayPaymentServices.java b/applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/securepay/SecurePayPaymentServices.java index d829b399cf..5e7bd209d9 100644 --- a/applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/securepay/SecurePayPaymentServices.java +++ b/applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/securepay/SecurePayPaymentServices.java @@ -308,7 +308,7 @@ public class SecurePayPaymentServices { .queryFirst(); referenceNum = paymentGatewayResponse != null ? paymentGatewayResponse.get("referenceNum") : authTransaction.getString("referenceNum"); } catch (GenericEntityException e) { - e.printStackTrace(); + Debug.logError(e, module); } Properties props = buildScProperties(context, delegator); diff --git a/applications/content/src/main/java/org/apache/ofbiz/content/ConvertTree.java b/applications/content/src/main/java/org/apache/ofbiz/content/ConvertTree.java index 69b34011aa..64907bac07 100644 --- a/applications/content/src/main/java/org/apache/ofbiz/content/ConvertTree.java +++ b/applications/content/src/main/java/org/apache/ofbiz/content/ConvertTree.java @@ -358,12 +358,10 @@ In order to make this service active add the following to the service definition } catch (GenericEntityException e) { errMsg = "GenericEntityException "+ UtilMisc.toMap("errMessage", e.toString()); Debug.logError(e, errMsg, module); - e.printStackTrace(); return ServiceUtil.returnError(errMsg); } catch (GenericServiceException e) { errMsg = "GenericServiceException"+ UtilMisc.toMap("errMessage", e.toString()); Debug.logError(e, errMsg, module); - e.printStackTrace(); return ServiceUtil.returnError(errMsg); } } diff --git a/applications/humanres/src/main/java/org/apache/ofbiz/humanres/HumanResEvents.java b/applications/humanres/src/main/java/org/apache/ofbiz/humanres/HumanResEvents.java index 3bfc470345..a2e745119d 100644 --- a/applications/humanres/src/main/java/org/apache/ofbiz/humanres/HumanResEvents.java +++ b/applications/humanres/src/main/java/org/apache/ofbiz/humanres/HumanResEvents.java @@ -63,7 +63,7 @@ public class HumanResEvents { try { categoryList.addAll(getCurrentEmployeeDetails(paramMap)); } catch (GenericEntityException e) { - e.printStackTrace(); + Debug.logError(e, module); return "error"; } @@ -78,7 +78,7 @@ public class HumanResEvents { categoryList.addAll(getEmployeeInComp(paramMap)); } } catch (GenericEntityException e) { - e.printStackTrace(); + Debug.logError(e, module); return "error"; } request.setAttribute("hrTree", categoryList); @@ -153,7 +153,7 @@ public class HumanResEvents { } } } catch (GenericEntityException e) { - e.printStackTrace(); + Debug.logError(e, module); throw new GenericEntityException(e); } @@ -246,7 +246,7 @@ public class HumanResEvents { } } } catch (GenericEntityException e) { - e.printStackTrace(); + Debug.logError(e, module); throw new GenericEntityException(e); } diff --git a/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/taxware/TaxwareServices.java b/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/taxware/TaxwareServices.java index fcfe5ac087..33cae9d6ee 100644 --- a/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/taxware/TaxwareServices.java +++ b/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/taxware/TaxwareServices.java @@ -23,6 +23,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.apache.ofbiz.base.util.Debug; import org.apache.ofbiz.entity.GenericValue; import org.apache.ofbiz.service.DispatchContext; import org.apache.ofbiz.service.ModelService; @@ -33,6 +34,8 @@ import com.ibm.icu.math.BigDecimal; * TaxwareServices */ public class TaxwareServices { + + public static final String module = TaxwareServices.class.getName(); public static Map calcTax(DispatchContext dctx, Map context) { Map result = new HashMap(); @@ -73,7 +76,7 @@ public class TaxwareServices { result.put("itemAdjustments", utl.getItemAdjustments()); } catch (TaxwareException e) { - e.printStackTrace(); + Debug.logError(e, module); result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_ERROR); result.put(ModelService.ERROR_MESSAGE, "ERROR: Taxware problem (" + e.getMessage() + ")."); } diff --git a/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/taxware/TaxwareUTL.java b/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/taxware/TaxwareUTL.java index a327d6e42a..174c752072 100644 --- a/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/taxware/TaxwareUTL.java +++ b/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/taxware/TaxwareUTL.java @@ -124,14 +124,14 @@ public class TaxwareUTL { try { fos = new FileOutputStream(outFile); } catch (FileNotFoundException e) { - e.printStackTrace(); + Debug.logError(e, module); } outHead.writeDataFile(fos); outItem.writeDataFile(fos); try { fos.close(); } catch (IOException e) { - e.printStackTrace(); + Debug.logError(e, module); } outItem.writeDataFile("TaxwareTest.in"); diff --git a/applications/product/groovyScripts/catalog/category/EditCategory.groovy b/applications/product/groovyScripts/catalog/category/EditCategory.groovy index 966161fc77..6d0e6e7caf 100644 --- a/applications/product/groovyScripts/catalog/category/EditCategory.groovy +++ b/applications/product/groovyScripts/catalog/category/EditCategory.groovy @@ -21,6 +21,8 @@ import org.apache.ofbiz.base.util.* import org.apache.ofbiz.base.util.string.* import org.apache.ofbiz.entity.util.EntityUtilProperties +module = "EditCategory.groovy" + if (productCategory) { context.productCategoryType = productCategory.getRelatedOne("ProductCategoryType", false) } @@ -108,7 +110,7 @@ if (fileType) { } file.renameTo(file1) } catch (Exception e) { - e.printStackTrace() + Debug.logError(e, module) } if (imageUrl) { diff --git a/applications/product/groovyScripts/catalog/config/EditProductConfigItemContent.groovy b/applications/product/groovyScripts/catalog/config/EditProductConfigItemContent.groovy index a75fec3a03..81916050e2 100644 --- a/applications/product/groovyScripts/catalog/config/EditProductConfigItemContent.groovy +++ b/applications/product/groovyScripts/catalog/config/EditProductConfigItemContent.groovy @@ -22,6 +22,8 @@ import org.apache.ofbiz.base.util.string.* import org.apache.ofbiz.entity.* import org.apache.ofbiz.entity.util.EntityUtilProperties +module = "EditProductConfigItemContent.groovy" + // make the image file formats context.tenantId = delegator.getDelegatorTenantId() imageFilenameFormat = "configitems/${configItemId}" @@ -118,7 +120,7 @@ if (fileType) { } file.renameTo(file1) } catch (Exception e) { - e.printStackTrace() + Debug.logError(e, module) } if (imageUrl) { diff --git a/applications/product/groovyScripts/catalog/imagemanagement/ImageUpload.groovy b/applications/product/groovyScripts/catalog/imagemanagement/ImageUpload.groovy index 91223dfa2d..608ae068bf 100644 --- a/applications/product/groovyScripts/catalog/imagemanagement/ImageUpload.groovy +++ b/applications/product/groovyScripts/catalog/imagemanagement/ImageUpload.groovy @@ -24,6 +24,8 @@ import org.apache.ofbiz.entity.util.EntityUtilProperties import org.apache.ofbiz.product.image.ScaleImage import org.apache.ofbiz.entity.condition.* +module = "ImageUpload.groovy" + context.nowTimestampString = UtilDateTime.nowTimestamp().toString() // make the image file formats @@ -121,7 +123,7 @@ if (fileType) { } file.renameTo(file1) } catch (Exception e) { - e.printStackTrace() + Debug.logError(e, module) } if (imageUrl && imageUrl.length() > 0) { diff --git a/applications/product/groovyScripts/catalog/imagemanagement/SetDefaultImage.groovy b/applications/product/groovyScripts/catalog/imagemanagement/SetDefaultImage.groovy index b4e26d1c79..b825b0741c 100644 --- a/applications/product/groovyScripts/catalog/imagemanagement/SetDefaultImage.groovy +++ b/applications/product/groovyScripts/catalog/imagemanagement/SetDefaultImage.groovy @@ -31,6 +31,8 @@ import org.apache.ofbiz.base.util.* import org.apache.ofbiz.base.util.string.* import org.apache.ofbiz.product.image.ScaleImage +module = "SetDefaultImage.groovy" + context.nowTimestampString = UtilDateTime.nowTimestamp().toString() imageManagementPath = FlexibleStringExpander.expandString(EntityUtilProperties.getPropertyValue("catalog", "image.management.path", delegator), context) @@ -159,7 +161,7 @@ if (fileType) { } file.renameTo(file1) } catch (Exception e) { - e.printStackTrace() + Debug.logError(e, module) } if (imageUrl && imageUrl.length() > 0) { diff --git a/applications/product/groovyScripts/catalog/product/EditProductContent.groovy b/applications/product/groovyScripts/catalog/product/EditProductContent.groovy index 9371a1a0f6..176ff23a59 100644 --- a/applications/product/groovyScripts/catalog/product/EditProductContent.groovy +++ b/applications/product/groovyScripts/catalog/product/EditProductContent.groovy @@ -23,6 +23,8 @@ import org.apache.ofbiz.base.util.string.* import org.apache.ofbiz.entity.util.EntityUtilProperties import org.apache.ofbiz.product.image.ScaleImage +module = "EditProductContent.groovy" + context.nowTimestampString = UtilDateTime.nowTimestamp().toString() // make the image file formats @@ -138,7 +140,7 @@ if (fileType) { } file.renameTo(file1) } catch (Exception e) { - e.printStackTrace() + Debug.logError(e, module) } if (imageUrl && imageUrl.length() > 0) { diff --git a/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java b/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java index 947d3e0acc..3e62156dd4 100644 --- a/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java +++ b/applications/product/src/main/java/org/apache/ofbiz/product/inventory/InventoryServices.java @@ -866,7 +866,7 @@ public class InventoryServices { try { product = EntityQuery.use(delegator).from("Product").where("productId", productId).queryOne(); } catch (GenericEntityException e) { - e.printStackTrace(); + Debug.logError(e, module); } if (product != null) { if (EntityTypeUtil.hasParentType(delegator, "ProductType", "productTypeId", product.getString( @@ -874,13 +874,13 @@ public class InventoryServices { try { resultOutput = dispatcher.runSync("getMktgPackagesAvailable", contextInput); } catch (GenericServiceException e) { - e.printStackTrace(); + Debug.logError(e, module); } } else { try { resultOutput = dispatcher.runSync("getInventoryAvailableByFacility", contextInput); } catch (GenericServiceException e) { - e.printStackTrace(); + Debug.logError(e, module); } } // filter for quantities @@ -909,7 +909,7 @@ public class InventoryServices { try { productPrices = EntityQuery.use(delegator).from("ProductPrice").where("productId",productId).orderBy("-fromDate").cache(true).queryList(); } catch (GenericEntityException e) { - e.printStackTrace(); + Debug.logError(e, module); } //change this for product price if(productPrices != null) { diff --git a/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductServices.java b/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductServices.java index 06f83df68b..cfe919c7e7 100644 --- a/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductServices.java +++ b/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductServices.java @@ -397,10 +397,10 @@ public class ProductServices { result.put("product", mainProduct); result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_SUCCESS); } catch (GenericEntityException e) { - e.printStackTrace(); Map messageMap = UtilMisc.toMap("errMessage", e.getMessage()); errMsg = UtilProperties.getMessage(resourceError, "productservices.problems_reading_product_entity", messageMap, locale); + Debug.logError(e, errMsg, module); result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_ERROR); result.put(ModelService.ERROR_MESSAGE, errMsg); } diff --git a/applications/product/src/main/java/org/apache/ofbiz/product/store/ProductStoreEvents.java b/applications/product/src/main/java/org/apache/ofbiz/product/store/ProductStoreEvents.java index a90635385c..b76bf3d40a 100644 --- a/applications/product/src/main/java/org/apache/ofbiz/product/store/ProductStoreEvents.java +++ b/applications/product/src/main/java/org/apache/ofbiz/product/store/ProductStoreEvents.java @@ -26,6 +26,7 @@ import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.ofbiz.base.util.Debug; import org.apache.ofbiz.base.util.UtilMisc; import org.apache.ofbiz.base.util.UtilValidate; import org.apache.ofbiz.entity.Delegator; @@ -86,7 +87,7 @@ public class ProductStoreEvents { } } } catch (GenericEntityException e) { - e.printStackTrace(); + Debug.logError(e, module); return "error"; } return "success"; diff --git a/applications/product/src/main/java/org/apache/ofbiz/shipment/thirdparty/usps/UspsServices.java b/applications/product/src/main/java/org/apache/ofbiz/shipment/thirdparty/usps/UspsServices.java index d927809aa5..f501efa73b 100644 --- a/applications/product/src/main/java/org/apache/ofbiz/shipment/thirdparty/usps/UspsServices.java +++ b/applications/product/src/main/java/org/apache/ofbiz/shipment/thirdparty/usps/UspsServices.java @@ -1045,7 +1045,7 @@ public class UspsServices { try { weight = new BigDecimal(weightStr); } catch (NumberFormatException nfe) { - nfe.printStackTrace(); // TODO: handle exception + Debug.logError(nfe, module); // TODO: handle exception } String weightUomId = shipmentPackage.getString("weightUomId"); @@ -1146,7 +1146,7 @@ public class UspsServices { try { postage = new BigDecimal(postageString); } catch (NumberFormatException nfe) { - nfe.printStackTrace(); // TODO: handle exception + Debug.logError(nfe, module); // TODO: handle exception } actualTransportCost = actualTransportCost.add(postage); @@ -1350,7 +1350,7 @@ public class UspsServices { try { weight = new BigDecimal(weightStr); } catch (NumberFormatException nfe) { - nfe.printStackTrace(); // TODO: handle exception + Debug.logError(nfe, module); // TODO: handle exception } String weightUomId = shipmentPackage.getString("weightUomId"); diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/concurrent/ExecutionPool.java b/framework/base/src/main/java/org/apache/ofbiz/base/concurrent/ExecutionPool.java index bfb5597b65..8b48992712 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/concurrent/ExecutionPool.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/concurrent/ExecutionPool.java @@ -112,7 +112,7 @@ public final class ExecutionPool { delayQueue.take().run(); } } catch (InterruptedException e) { - e.printStackTrace(); + Debug.logError(e, module); } } } diff --git a/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java b/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java index d8929fdbba..cbf4b7be4b 100644 --- a/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java +++ b/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java @@ -889,7 +889,6 @@ public class DatabaseUtil { Object result = detection.method.invoke(dbData, detection.params); Debug.logInfo(String.format(goodFormatStr, detection.name, result, requiredFlag), module); } catch (Exception e) { - e.printStackTrace(); Debug.logVerbose(e, module); Debug.logWarning(String.format(badFormatStr, detection.name, requiredFlag), module); } diff --git a/framework/entity/src/main/java/org/apache/ofbiz/entity/transaction/TransactionUtil.java b/framework/entity/src/main/java/org/apache/ofbiz/entity/transaction/TransactionUtil.java index 431b681566..7368a0af05 100644 --- a/framework/entity/src/main/java/org/apache/ofbiz/entity/transaction/TransactionUtil.java +++ b/framework/entity/src/main/java/org/apache/ofbiz/entity/transaction/TransactionUtil.java @@ -1007,7 +1007,7 @@ public final class TransactionUtil implements Status { TransactionUtil.commit(tx); } else { if (printException) { - transactionAbortCause.printStackTrace(); + Debug.logError(transactionAbortCause, module); } TransactionUtil.rollback(tx, ifErrorMessage, transactionAbortCause); } diff --git a/framework/service/src/main/java/org/apache/ofbiz/service/ModelServiceReader.java b/framework/service/src/main/java/org/apache/ofbiz/service/ModelServiceReader.java index e1ab897c22..649d166dda 100644 --- a/framework/service/src/main/java/org/apache/ofbiz/service/ModelServiceReader.java +++ b/framework/service/src/main/java/org/apache/ofbiz/service/ModelServiceReader.java @@ -361,7 +361,9 @@ public class ModelServiceReader implements Serializable { groupElement.setAttribute("name", "_" + service.name + ".group"); service.internalGroup = new GroupModel(groupElement); service.invoke = service.internalGroup.getGroupName(); - if (Debug.verboseOn()) Debug.logVerbose("Created INTERNAL GROUP model [" + service.internalGroup + "]", module); + if (Debug.verboseOn()) { + Debug.logVerbose("Created INTERNAL GROUP model [" + service.internalGroup + "]", module); + } } } @@ -475,7 +477,9 @@ public class ModelServiceReader implements Serializable { // default value String defValue = attribute.getAttribute("default-value"); if (UtilValidate.isNotEmpty(defValue)) { - if (Debug.verboseOn()) Debug.logVerbose("Got a default-value [" + defValue + "] for service attribute [" + service.name + "." + param.name + "]", module); + if (Debug.verboseOn()) { + Debug.logVerbose("Got a default-value [" + defValue + "] for service attribute [" + service.name + "." + param.name + "]", module); + } param.setDefaultValue(defValue.intern()); } @@ -703,11 +707,9 @@ public class ModelServiceReader implements Serializable { x = sxe.getException(); } x.printStackTrace(); - } catch (ParserConfigurationException pce) { + } catch (ParserConfigurationException | IOException e) { // Parser with specified options can't be built - pce.printStackTrace(); - } catch (IOException ioe) { - ioe.printStackTrace(); + Debug.logError(e, module); } return document; diff --git a/framework/webtools/src/main/java/org/apache/ofbiz/webtools/labelmanager/LabelManagerFactory.java b/framework/webtools/src/main/java/org/apache/ofbiz/webtools/labelmanager/LabelManagerFactory.java index a6699a2e0e..7f38215d5d 100644 --- a/framework/webtools/src/main/java/org/apache/ofbiz/webtools/labelmanager/LabelManagerFactory.java +++ b/framework/webtools/src/main/java/org/apache/ofbiz/webtools/labelmanager/LabelManagerFactory.java @@ -228,7 +228,7 @@ public class LabelManagerFactory { label = new LabelInfo(key, keyComment, fileName, localeName, localeValue, localeComment); labels.put(key + keySeparator + fileName, label); } catch (Exception e) { - e.printStackTrace(); + Debug.logError(e, module);; } } else { label.setLabelKeyComment(keyComment); diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/html/HtmlTreeRenderer.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/html/HtmlTreeRenderer.java index 9654481f19..701fff98d5 100644 --- a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/html/HtmlTreeRenderer.java +++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/html/HtmlTreeRenderer.java @@ -26,6 +26,7 @@ import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.ofbiz.base.util.Debug; import org.apache.ofbiz.base.util.StringUtil; import org.apache.ofbiz.base.util.UtilGenerics; import org.apache.ofbiz.base.util.UtilValidate; @@ -342,7 +343,7 @@ public class HtmlTreeRenderer extends HtmlWidgetRenderer implements TreeStringRe try { screenStringRenderer = new MacroScreenRenderer(modelTheme.getType("screen"), modelTheme.getScreenRendererLocation("screen")); } catch (TemplateException | IOException e) { - e.printStackTrace(); + Debug.logError(e, module); } } }