Commit 8ce08718 by WeiCong

将原bd事件触发异常产生的dump文件信息,同时进行日志打印

parent 9073e3a1
package org.sss.presentation.noui.context;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.gson.Gson;
import log.Log;
import log.LogFactory;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.sss.common.impl.AbstractNullPresentation;
import org.sss.common.impl.ProxyDatafield;
import org.sss.common.model.CodetableItem;
import org.sss.common.model.IAttribute;
import org.sss.common.model.IAttributeValue;
import org.sss.common.model.IBaseObject;
import org.sss.common.model.ICodetable;
import org.sss.common.model.IDatafield;
import org.sss.common.model.IFilter;
import org.sss.common.model.II18n;
import org.sss.common.model.IModuleList;
import org.sss.common.model.IPanel;
import org.sss.common.model.MessageType;
import org.sss.common.model.RowOpType;
import org.sss.common.model.ViewType;
import org.sss.common.model.*;
import org.sss.exception.ContainerException;
import org.sss.presentation.noui.api.request.NoUiRequest;
import org.sss.presentation.noui.api.response.ErrorCodes;
import org.sss.presentation.noui.common.Constants;
import org.sss.presentation.noui.util.NoUiUtils;
import org.sss.presentation.noui.util.RedisUtil;
import org.sss.util.ContainerUtils;
import com.google.gson.Gson;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class NoUiPresentation extends AbstractNullPresentation {
private static final Log log = LogFactory.getLog(NoUiPresentation.class);
......@@ -241,6 +226,7 @@ public class NoUiPresentation extends AbstractNullPresentation {
((Throwable) paramObject).printStackTrace(localPrintStream);
localPrintStream.close();
str1 = String.format(getI18nValue("eibs", "error.message"), new Object[] { ((Throwable) paramObject).getMessage(), str2 });
log.error("事件触发异常:"+((Throwable) paramObject).getMessage(),(Throwable)paramObject);
} else if (paramObject != null) {
str1 = paramObject.toString();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment