Browse Source

DEC-3942

1、添加mutable校验器,用于自定义的mutable检查
2、有很多"ERROR null"的无效错误日志,全部改成打印堆栈
research/10.0
ju 6 years ago
parent
commit
a9b74787c1
  1. 2
      designer-base/src/main/java/com/fr/design/DesignerEnvManager.java
  2. 4
      designer-base/src/main/java/com/fr/design/RestartHelper.java
  3. 2
      designer-base/src/main/java/com/fr/design/actions/help/FeedBackPane.java
  4. 2
      designer-base/src/main/java/com/fr/design/actions/help/alphafine/AlphaFineConfigPane.java
  5. 6
      designer-base/src/main/java/com/fr/design/bbs/BBSLoginUtils.java
  6. 2
      designer-base/src/main/java/com/fr/design/condition/LiteConditionPane.java
  7. 2
      designer-base/src/main/java/com/fr/design/data/DesignTableDataManager.java
  8. 2
      designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java
  9. 4
      designer-base/src/main/java/com/fr/design/data/datapane/ChoosePaneSupportFormula.java
  10. 2
      designer-base/src/main/java/com/fr/design/data/tabledata/wrapper/StoreProcedureDataWrapper.java
  11. 2
      designer-base/src/main/java/com/fr/design/data/tabledata/wrapper/StoreProcedureNameWrapper.java
  12. 2
      designer-base/src/main/java/com/fr/design/dialog/UIDialog.java
  13. 4
      designer-base/src/main/java/com/fr/design/extra/LoginWebBridge.java
  14. 2
      designer-base/src/main/java/com/fr/design/extra/PluginOperateUtils.java
  15. 2
      designer-base/src/main/java/com/fr/design/extra/PluginUtils.java
  16. 6
      designer-base/src/main/java/com/fr/design/extra/PluginWebBridge.java
  17. 2
      designer-base/src/main/java/com/fr/design/extra/QQLoginWebPane.java
  18. 2
      designer-base/src/main/java/com/fr/design/extra/WebViewDlgHelper.java
  19. 2
      designer-base/src/main/java/com/fr/design/extra/exe/GetPluginFromStoreExecutor.java
  20. 2
      designer-base/src/main/java/com/fr/design/extra/exe/ReadUpdateOnlineExecutor.java
  21. 2
      designer-base/src/main/java/com/fr/design/extra/exe/SearchOnlineExecutor.java
  22. 2
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java
  23. 2
      designer-base/src/main/java/com/fr/design/mainframe/loghandler/DesignerLogHandler.java
  24. 6
      designer-base/src/main/java/com/fr/design/mainframe/templateinfo/TemplateInfoCollector.java
  25. 2
      designer-base/src/main/java/com/fr/design/style/color/ColorPicker.java
  26. 10
      designer-base/src/main/java/com/fr/env/RemoteEnvUtils.java
  27. 2
      designer-chart/src/main/java/com/fr/design/chart/series/PlotSeries/UIGroupExtensionPane.java
  28. 6
      designer-chart/src/main/java/com/fr/van/chart/custom/CustomPlotDesignerPaneFactory.java
  29. 2
      designer-chart/src/main/java/com/fr/van/chart/custom/component/VanChartCustomPlotSelectPane.java
  30. 14
      designer-chart/src/main/java/com/fr/van/chart/designer/PlotFactory.java
  31. 2
      designer-form/src/main/java/com/fr/design/designer/creator/CRPropertyDescriptorPane.java
  32. 2
      designer-form/src/main/java/com/fr/design/designer/creator/XWidgetCreator.java
  33. 2
      designer-form/src/main/java/com/fr/design/designer/creator/cardlayout/TabMoveAction.java
  34. 2
      designer-form/src/main/java/com/fr/design/designer/properties/FRAbsoluteBodyLayoutPropertiesGroupModel.java
  35. 2
      designer-form/src/main/java/com/fr/design/designer/properties/FRFitLayoutPropertiesGroupModel.java
  36. 2
      designer-form/src/main/java/com/fr/design/designer/properties/mobile/BodyAppRelayoutTable.java
  37. 2
      designer-form/src/main/java/com/fr/design/designer/properties/mobile/ElementCasePropertyTable.java
  38. 2
      designer-form/src/main/java/com/fr/design/widget/ui/designer/layout/FRAbsoluteBodyLayoutDefinePane.java
  39. 2
      designer-form/src/main/java/com/fr/design/widget/ui/designer/layout/FRFitLayoutDefinePane.java
  40. 2
      designer-realize/src/main/java/com/fr/design/cell/editor/RichTextToolBar.java
  41. 2
      designer-realize/src/main/java/com/fr/design/mainframe/CellWidgetPropertyPane.java
  42. 20
      designer-realize/src/main/java/com/fr/design/mainframe/InformationCollector.java
  43. 2
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/cell/model/ActionModel.java
  44. 4
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/cell/model/DocumentModel.java
  45. 2
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/cell/model/FileModel.java
  46. 2
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/cell/model/PluginModel.java
  47. 20
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java
  48. 4
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java
  49. 2
      designer-realize/src/main/java/com/fr/design/mainframe/bbs/BBSDialog.java
  50. 4
      designer-realize/src/main/java/com/fr/design/mainframe/bbs/BBSLoginDialog.java
  51. 4
      designer-realize/src/main/java/com/fr/design/mainframe/bbs/UserInfoLabel.java
  52. 4
      designer-realize/src/main/java/com/fr/design/mainframe/bbs/UserInfoPane.java
  53. 2
      designer-realize/src/main/java/com/fr/design/mainframe/form/FormElementCaseDesigner.java
  54. 2
      designer-realize/src/main/java/com/fr/design/parameter/ParameterDefinitePane.java
  55. 2
      designer-realize/src/main/java/com/fr/design/present/CellWriteAttrPane.java
  56. 2
      designer-realize/src/main/java/com/fr/design/report/RichTextEditingPane.java
  57. 4
      designer-realize/src/main/java/com/fr/design/report/RichTextPane.java
  58. 2
      designer-realize/src/main/java/com/fr/design/report/share/ConfusionTableDataPane.java
  59. 2
      designer-realize/src/main/java/com/fr/design/write/submit/SubmitVisitorListPane.java
  60. 2
      designer-realize/src/main/java/com/fr/start/Designer.java

2
designer-base/src/main/java/com/fr/design/DesignerEnvManager.java

@ -621,7 +621,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
fout.flush(); fout.flush();
fout.close(); fout.close();
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }

4
designer-base/src/main/java/com/fr/design/RestartHelper.java

@ -166,7 +166,7 @@ public class RestartHelper {
FineLoggerFactory.getLogger().error("restart lock null!"); FineLoggerFactory.getLogger().error("restart lock null!");
} }
}catch (Exception e){ }catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
if (OperatingSystem.isMacOS()) { if (OperatingSystem.isMacOS()) {
restartInMacOS(installHome, filesToBeDelete); restartInMacOS(installHome, filesToBeDelete);
@ -174,7 +174,7 @@ public class RestartHelper {
restartInWindows(installHome, filesToBeDelete); restartInWindows(installHome, filesToBeDelete);
} }
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} finally { } finally {
DesignerContext.getDesignerFrame().exit(); DesignerContext.getDesignerFrame().exit();
} }

2
designer-base/src/main/java/com/fr/design/actions/help/FeedBackPane.java

@ -279,7 +279,7 @@ public class FeedBackPane extends BasicPane {
try { try {
return DesignUtils.sendFeedBack(feedBackInfo); return DesignUtils.sendFeedBack(feedBackInfo);
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
return false; return false;
} }
} }

2
designer-base/src/main/java/com/fr/design/actions/help/alphafine/AlphaFineConfigPane.java

@ -207,7 +207,7 @@ public class AlphaFineConfigPane extends BasicPane {
DesignerEnvManager.loadLogSetting(); DesignerEnvManager.loadLogSetting();
DesignerEnvManager.getEnvManager().saveXMLFile(); DesignerEnvManager.getEnvManager().saveXMLFile();
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }

6
designer-base/src/main/java/com/fr/design/bbs/BBSLoginUtils.java

@ -32,7 +32,7 @@ public class BBSLoginUtils {
}); });
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
@ -58,7 +58,7 @@ public class BBSLoginUtils {
}); });
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
@ -71,7 +71,7 @@ public class BBSLoginUtils {
try { try {
MarketConfig.getInstance().setBBsAttr(bbsAttr); MarketConfig.getInstance().setBBsAttr(bbsAttr);
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
} }

2
designer-base/src/main/java/com/fr/design/condition/LiteConditionPane.java

@ -966,7 +966,7 @@ public abstract class LiteConditionPane<T extends Condition> extends BasicBeanPa
try{ try{
newCondition = (Condition)joinCondition.getCondition().clone(); newCondition = (Condition)joinCondition.getCondition().clone();
}catch (CloneNotSupportedException e){ }catch (CloneNotSupportedException e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return newCondition; return newCondition;
} }

2
designer-base/src/main/java/com/fr/design/data/DesignTableDataManager.java

@ -488,7 +488,7 @@ public abstract class DesignTableDataManager {
} }
rs.release(); rs.release();
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-base/src/main/java/com/fr/design/data/datapane/ChoosePane.java

@ -278,7 +278,7 @@ public class ChoosePane extends BasicBeanPane<DataBaseItems> implements Refresha
schemaBox.setSelectedIndex(index); schemaBox.setSelectedIndex(index);
} }
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
schemaBox.setRefreshingModel(false); schemaBox.setRefreshingModel(false);
schemaBox.removePopupMenuListener(listener); schemaBox.removePopupMenuListener(listener);

4
designer-base/src/main/java/com/fr/design/data/datapane/ChoosePaneSupportFormula.java

@ -113,7 +113,7 @@ public class ChoosePaneSupportFormula extends ChoosePane {
selectedDSName = Utils.objectToString(ca.eval(BaseFormula.createFormulaBuilder().build(item))); selectedDSName = Utils.objectToString(ca.eval(BaseFormula.createFormulaBuilder().build(item)));
// selectedDSName = ParameterHelper.analyzeCurrentContextTableData4Templatee(item, parameters); // selectedDSName = ParameterHelper.analyzeCurrentContextTableData4Templatee(item, parameters);
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} else { } else {
selectedDSName = item; selectedDSName = item;
@ -156,7 +156,7 @@ public class ChoosePaneSupportFormula extends ChoosePane {
dsName = dsItem.startsWith("=") ? Utils.objectToString(ca.eval(BaseFormula.createFormulaBuilder().build(dsItem))) : dsItem; dsName = dsItem.startsWith("=") ? Utils.objectToString(ca.eval(BaseFormula.createFormulaBuilder().build(dsItem))) : dsItem;
tableName = tableItem.startsWith("=") ? Utils.objectToString(ca.eval(BaseFormula.createFormulaBuilder().build(tableItem))) : tableItem; tableName = tableItem.startsWith("=") ? Utils.objectToString(ca.eval(BaseFormula.createFormulaBuilder().build(tableItem))) : tableItem;
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
ori_ds_name = dsName; ori_ds_name = dsName;
ori_table_name = tableName; ori_table_name = tableName;

2
designer-base/src/main/java/com/fr/design/data/tabledata/wrapper/StoreProcedureDataWrapper.java

@ -146,7 +146,7 @@ public final class StoreProcedureDataWrapper implements TableDataWrapper {
} }
return true; return true;
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
return false; return false;
} }

2
designer-base/src/main/java/com/fr/design/data/tabledata/wrapper/StoreProcedureNameWrapper.java

@ -77,7 +77,7 @@ public final class StoreProcedureNameWrapper implements TableDataWrapper {
try { try {
procedureDataModel = DesignTableDataManager.createLazyDataModel(storeProcedure, needLoadingBar)[0]; procedureDataModel = DesignTableDataManager.createLazyDataModel(storeProcedure, needLoadingBar)[0];
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-base/src/main/java/com/fr/design/dialog/UIDialog.java

@ -166,7 +166,7 @@ public abstract class UIDialog extends JDialog {
l.doOk(); l.doOk();
} catch (RuntimeException e) { } catch (RuntimeException e) {
isDoOKSucceed = false; isDoOKSucceed = false;
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }
if (isDoOKSucceed) { if (isDoOKSucceed) {

4
designer-base/src/main/java/com/fr/design/extra/LoginWebBridge.java

@ -150,7 +150,7 @@ public class LoginWebBridge {
try { try {
Thread.sleep(millis); Thread.sleep(millis);
} catch (InterruptedException e) { } catch (InterruptedException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }
@ -306,7 +306,7 @@ public class LoginWebBridge {
} }
} }
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-base/src/main/java/com/fr/design/extra/PluginOperateUtils.java

@ -116,7 +116,7 @@ public class PluginOperateUtils {
JSONArray jsonArray = new JSONArray(result); JSONArray jsonArray = new JSONArray(result);
resultArray = PluginUtils.filterPluginsFromVersion(jsonArray); resultArray = PluginUtils.filterPluginsFromVersion(jsonArray);
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return resultArray.toString(); return resultArray.toString();
} }

2
designer-base/src/main/java/com/fr/design/extra/PluginUtils.java

@ -59,7 +59,7 @@ public class PluginUtils {
httpClient.asGet(); httpClient.asGet();
result = httpClient.getResponseText(); result = httpClient.getResponseText();
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} else { } else {
result = PluginConstants.CONNECTION_404; result = PluginConstants.CONNECTION_404;

6
designer-base/src/main/java/com/fr/design/extra/PluginWebBridge.java

@ -350,7 +350,7 @@ public class PluginWebBridge {
Task<Void> task = new PluginTask<>(webEngine, callback, new GetPluginFromStoreExecutor(new JSONObject(info))); Task<Void> task = new PluginTask<>(webEngine, callback, new GetPluginFromStoreExecutor(new JSONObject(info)));
threadPoolExecutor.submit(task); threadPoolExecutor.submit(task);
} catch (JSONException e) { } catch (JSONException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
@ -486,10 +486,10 @@ public class PluginWebBridge {
} }
} catch (NullPointerException e) { } catch (NullPointerException e) {
//此为uri为空时抛出异常 //此为uri为空时抛出异常
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} catch (IOException e) { } catch (IOException e) {
//此为无法获取系统默认浏览器 //此为无法获取系统默认浏览器
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
} }

2
designer-base/src/main/java/com/fr/design/extra/QQLoginWebPane.java

@ -149,7 +149,7 @@ public class QQLoginWebPane extends JFXPanel {
} }
}); });
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-base/src/main/java/com/fr/design/extra/WebViewDlgHelper.java

@ -123,7 +123,7 @@ public class WebViewDlgHelper {
try { try {
CommonIOUtils.copy(new File(mainJsPath), new File(installHome)); CommonIOUtils.copy(new File(mainJsPath), new File(installHome));
} catch (IOException e) { } catch (IOException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-base/src/main/java/com/fr/design/extra/exe/GetPluginFromStoreExecutor.java

@ -72,7 +72,7 @@ public class GetPluginFromStoreExecutor implements Executor {
JSONArray resultJSONArray = PluginUtils.filterPluginsFromVersion(resultArr); JSONArray resultJSONArray = PluginUtils.filterPluginsFromVersion(resultArr);
result = resultJSONArray.toString(); result = resultJSONArray.toString();
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} else { } else {
result = PluginConstants.CONNECTION_404; result = PluginConstants.CONNECTION_404;

2
designer-base/src/main/java/com/fr/design/extra/exe/ReadUpdateOnlineExecutor.java

@ -42,7 +42,7 @@ public class ReadUpdateOnlineExecutor implements Executor {
} }
result = jsonArray.toString(); result = jsonArray.toString();
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
} }

2
designer-base/src/main/java/com/fr/design/extra/exe/SearchOnlineExecutor.java

@ -50,7 +50,7 @@ public class SearchOnlineExecutor implements Executor {
JSONArray resultJSONArray = PluginUtils.filterPluginsFromVersion(jsonArray); JSONArray resultJSONArray = PluginUtils.filterPluginsFromVersion(jsonArray);
result = resultJSONArray.toString(); result = resultJSONArray.toString();
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
} }

2
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -520,7 +520,7 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
// return false; // return false;
// } // }
// } catch (Exception e) { // } catch (Exception e) {
// FineLoggerFactory.getLogger().error(e.getMessage()); // FineLoggerFactory.getLogger().error(e.getMessage(), e);
// } // }

2
designer-base/src/main/java/com/fr/design/mainframe/loghandler/DesignerLogHandler.java

@ -257,7 +257,7 @@ public class DesignerLogHandler {
try { try {
doc.insertString(doc.getLength(), str, attrSet); doc.insertString(doc.getLength(), str, attrSet);
} catch (BadLocationException e) { } catch (BadLocationException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }

6
designer-base/src/main/java/com/fr/design/mainframe/templateinfo/TemplateInfoCollector.java

@ -132,11 +132,11 @@ public class TemplateInfoCollector<T extends BaseBook> implements Serializable,
} }
xmlInputStream.close(); xmlInputStream.close();
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} catch (IOException e) { } catch (IOException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} catch (XMLStreamException e) { } catch (XMLStreamException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-base/src/main/java/com/fr/design/style/color/ColorPicker.java

@ -73,7 +73,7 @@ public class ColorPicker extends JDialog implements ActionListener
try { try {
Thread.sleep(100); // 等待弹窗关闭 Thread.sleep(100); // 等待弹窗关闭
} catch (InterruptedException e) { } catch (InterruptedException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
colorPickerPanel.captureScreen(); colorPickerPanel.captureScreen();
} }

10
designer-base/src/main/java/com/fr/env/RemoteEnvUtils.java vendored

@ -67,7 +67,7 @@
// .build(); // .build();
// inputStream = httpClient.execute(request, responseHandler); // inputStream = httpClient.execute(request, responseHandler);
// } catch (IOException e) { // } catch (IOException e) {
// FRContext.getLogger().error(e.getMessage()); // FRContext.getLogger().error(e.getMessage(), e);
// } // }
// return inputStream; // return inputStream;
// } // }
@ -90,7 +90,7 @@
// .build(); // .build();
// inputStream = httpClient.execute(request, responseHandler); // inputStream = httpClient.execute(request, responseHandler);
// } catch (IOException e) { // } catch (IOException e) {
// FRContext.getLogger().error(e.getMessage()); // FRContext.getLogger().error(e.getMessage(), e);
// } // }
// return inputStream; // return inputStream;
// } // }
@ -112,7 +112,7 @@
// inputStream = httpClient.execute(request, responseHandler); // inputStream = httpClient.execute(request, responseHandler);
// //
// } catch (IOException e) { // } catch (IOException e) {
// FRContext.getLogger().error(e.getMessage()); // FRContext.getLogger().error(e.getMessage(), e);
// } // }
// return inputStream; // return inputStream;
// } // }
@ -137,7 +137,7 @@
// .build(); // .build();
// inputStream = httpClient.execute(request, responseHandler); // inputStream = httpClient.execute(request, responseHandler);
// } catch (IOException e) { // } catch (IOException e) {
// FRContext.getLogger().error(e.getMessage()); // FRContext.getLogger().error(e.getMessage(), e);
// } // }
// //
// return inputStream; // return inputStream;
@ -158,7 +158,7 @@
// .build(); // .build();
// inputStream = httpClient.execute(request, responseHandler); // inputStream = httpClient.execute(request, responseHandler);
// } catch (IOException e) { // } catch (IOException e) {
// FRContext.getLogger().error(e.getMessage()); // FRContext.getLogger().error(e.getMessage(), e);
// } // }
// return inputStream; // return inputStream;
// } // }

2
designer-chart/src/main/java/com/fr/design/chart/series/PlotSeries/UIGroupExtensionPane.java

@ -477,7 +477,7 @@ public class UIGroupExtensionPane extends BasicPane {
try { try {
list.setSelectedIndices(null); list.setSelectedIndices(null);
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
} }

6
designer-chart/src/main/java/com/fr/van/chart/custom/CustomPlotDesignerPaneFactory.java

@ -59,7 +59,7 @@ public class CustomPlotDesignerPaneFactory {
Constructor<? extends BasicBeanPane<Plot> > constructor = cl.getConstructor(); Constructor<? extends BasicBeanPane<Plot> > constructor = cl.getConstructor();
return constructor.newInstance(); return constructor.newInstance();
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return null; return null;
@ -89,7 +89,7 @@ public class CustomPlotDesignerPaneFactory {
Constructor<? extends AbstractTableDataContentPane > constructor = cl.getConstructor(ChartDataPane.class); Constructor<? extends AbstractTableDataContentPane > constructor = cl.getConstructor(ChartDataPane.class);
return constructor.newInstance(parent); return constructor.newInstance(parent);
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new CategoryPlotTableDataContentPane(parent); return new CategoryPlotTableDataContentPane(parent);
@ -125,7 +125,7 @@ public class CustomPlotDesignerPaneFactory {
return constructor.newInstance(plot, parent); return constructor.newInstance(plot, parent);
} }
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new VanChartAxisPane(plot,parent); return new VanChartAxisPane(plot,parent);

2
designer-chart/src/main/java/com/fr/van/chart/custom/component/VanChartCustomPlotSelectPane.java

@ -250,7 +250,7 @@ public class VanChartCustomPlotSelectPane extends BasicBeanPane<Chart> {
} }
} }
} catch (CloneNotSupportedException e) { } catch (CloneNotSupportedException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }

14
designer-chart/src/main/java/com/fr/van/chart/designer/PlotFactory.java

@ -198,7 +198,7 @@ public class PlotFactory {
Constructor<? extends VanChartPlotLabelPane > constructor = cl.getConstructor(Plot.class, VanChartStylePane.class); Constructor<? extends VanChartPlotLabelPane > constructor = cl.getConstructor(Plot.class, VanChartStylePane.class);
return constructor.newInstance(plot, stylePane); return constructor.newInstance(plot, stylePane);
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new VanChartPlotLabelPane(plot, stylePane); return new VanChartPlotLabelPane(plot, stylePane);
@ -218,7 +218,7 @@ public class PlotFactory {
Constructor<? extends VanChartPlotLegendPane > constructor = cl.getConstructor(VanChartStylePane.class); Constructor<? extends VanChartPlotLegendPane > constructor = cl.getConstructor(VanChartStylePane.class);
return constructor.newInstance(stylePane); return constructor.newInstance(stylePane);
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new VanChartPlotLegendPane(stylePane); return new VanChartPlotLegendPane(stylePane);
@ -238,7 +238,7 @@ public class PlotFactory {
Constructor<? extends VanChartPlotTooltipPane > constructor = cl.getConstructor(Plot.class, VanChartStylePane.class); Constructor<? extends VanChartPlotTooltipPane > constructor = cl.getConstructor(Plot.class, VanChartStylePane.class);
return constructor.newInstance(plot, stylePane); return constructor.newInstance(plot, stylePane);
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new VanChartPlotTooltipPane(plot, stylePane); return new VanChartPlotTooltipPane(plot, stylePane);
@ -259,7 +259,7 @@ public class PlotFactory {
Constructor<? extends VanChartTooltipContentPane > constructor = cl.getConstructor(VanChartStylePane.class, JPanel.class); Constructor<? extends VanChartTooltipContentPane > constructor = cl.getConstructor(VanChartStylePane.class, JPanel.class);
return constructor.newInstance(parent, showOnPane); return constructor.newInstance(parent, showOnPane);
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new VanChartLabelContentPane(parent, showOnPane); return new VanChartLabelContentPane(parent, showOnPane);
@ -280,7 +280,7 @@ public class PlotFactory {
Constructor<? extends VanChartTooltipContentPane > constructor = cl.getConstructor(VanChartStylePane.class, JPanel.class); Constructor<? extends VanChartTooltipContentPane > constructor = cl.getConstructor(VanChartStylePane.class, JPanel.class);
return constructor.newInstance(parent, showOnPane); return constructor.newInstance(parent, showOnPane);
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new VanChartTooltipContentPane(parent, showOnPane); return new VanChartTooltipContentPane(parent, showOnPane);
@ -301,7 +301,7 @@ public class PlotFactory {
Constructor<? extends VanChartPlotTooltipPane > constructor = cl.getConstructor(Plot.class); Constructor<? extends VanChartPlotTooltipPane > constructor = cl.getConstructor(Plot.class);
return constructor.newInstance(plot); return constructor.newInstance(plot);
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new VanChartPlotRefreshTooltipPane(plot); return new VanChartPlotRefreshTooltipPane(plot);
@ -321,7 +321,7 @@ public class PlotFactory {
Constructor<? extends VanChartTooltipContentPane > constructor = cl.getConstructor(VanChartStylePane.class, JPanel.class); Constructor<? extends VanChartTooltipContentPane > constructor = cl.getConstructor(VanChartStylePane.class, JPanel.class);
return constructor.newInstance(parent, showOnPane); return constructor.newInstance(parent, showOnPane);
} catch (Exception e){ } catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return new VanChartRefreshTooltipContentPane(parent, showOnPane); return new VanChartRefreshTooltipContentPane(parent, showOnPane);

2
designer-form/src/main/java/com/fr/design/designer/creator/CRPropertyDescriptorPane.java

@ -103,7 +103,7 @@ public class CRPropertyDescriptorPane {
} }
}); });
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
return component; return component;
} }

2
designer-form/src/main/java/com/fr/design/designer/creator/XWidgetCreator.java

@ -139,7 +139,7 @@ public abstract class XWidgetCreator extends XCreator {
this.setRolloverIcon(new ImageIcon(image1)); this.setRolloverIcon(new ImageIcon(image1));
this.setPressedIcon(new ImageIcon(image));//按下去的图标 this.setPressedIcon(new ImageIcon(image));//按下去的图标
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-form/src/main/java/com/fr/design/designer/creator/cardlayout/TabMoveAction.java

@ -40,7 +40,7 @@ public class TabMoveAction extends FormUndoableAction {
FormHierarchyTreePane.getInstance().refreshDockingView(); FormHierarchyTreePane.getInstance().refreshDockingView();
}catch (Exception e){ }catch (Exception e){
xwCardTagLayout.setSwitchingTab(false); xwCardTagLayout.setSwitchingTab(false);
FRLogger.getLogger().error(e.getMessage()); FRLogger.getLogger().error(e.getMessage(), e);
return false; return false;
} }
return true; return true;

2
designer-form/src/main/java/com/fr/design/designer/properties/FRAbsoluteBodyLayoutPropertiesGroupModel.java

@ -170,7 +170,7 @@ public class FRAbsoluteBodyLayoutPropertiesGroupModel extends FRAbsoluteLayoutPr
return true; return true;
} }
catch (Exception e){ catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
return false; return false;
} }
} }

2
designer-form/src/main/java/com/fr/design/designer/properties/FRFitLayoutPropertiesGroupModel.java

@ -175,7 +175,7 @@ public class FRFitLayoutPropertiesGroupModel implements GroupModel {
FormSelectionUtils.rebuildSelection(xfl, new Widget[]{xfl.toData()})); FormSelectionUtils.rebuildSelection(xfl, new Widget[]{xfl.toData()}));
} }
}catch (Exception e){ }catch (Exception e){
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
return false; return false;
} }
layout.setLayoutType(WBodyLayoutType.parse(state)); layout.setLayoutType(WBodyLayoutType.parse(state));

2
designer-form/src/main/java/com/fr/design/designer/properties/mobile/BodyAppRelayoutTable.java

@ -50,7 +50,7 @@ public class BodyAppRelayoutTable extends AbstractPropertyTable {
try { try {
propertyTableEditor = supportedDescriptor(); propertyTableEditor = supportedDescriptor();
}catch (IntrospectionException e) { }catch (IntrospectionException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
groups.add(new PropertyGroup(new ReportAppPropertyGroupModel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Properties_Mobile"), xCreator, propertyTableEditor, designer))); groups.add(new PropertyGroup(new ReportAppPropertyGroupModel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Properties_Mobile"), xCreator, propertyTableEditor, designer)));

2
designer-form/src/main/java/com/fr/design/designer/properties/mobile/ElementCasePropertyTable.java

@ -92,7 +92,7 @@ public class ElementCasePropertyTable extends AbstractPropertyTable{
try { try {
propertyTableEditor = supportedDescriptor(); propertyTableEditor = supportedDescriptor();
} catch (IntrospectionException e) { } catch (IntrospectionException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }

2
designer-form/src/main/java/com/fr/design/widget/ui/designer/layout/FRAbsoluteBodyLayoutDefinePane.java

@ -193,7 +193,7 @@ public class FRAbsoluteBodyLayoutDefinePane extends FRAbsoluteLayoutDefinePane {
formDesigner.getSelectionModel().setSelectedCreator(xfl); formDesigner.getSelectionModel().setSelectedCreator(xfl);
return true; return true;
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
return false; return false;
} }
} }

2
designer-form/src/main/java/com/fr/design/widget/ui/designer/layout/FRFitLayoutDefinePane.java

@ -201,7 +201,7 @@ public class FRFitLayoutDefinePane extends AbstractDataModify<WFitLayout> {
FormSelectionUtils.rebuildSelection(xWFitLayout, new Widget[]{wAbsoluteBodyLayout})); FormSelectionUtils.rebuildSelection(xWFitLayout, new Widget[]{wAbsoluteBodyLayout}));
} }
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }

2
designer-realize/src/main/java/com/fr/design/cell/editor/RichTextToolBar.java

@ -340,7 +340,7 @@ public class RichTextToolBar extends BasicPane{
try { try {
doc.insertString(start, content, attrs); doc.insertString(start, content, attrs);
} catch (BadLocationException e) { } catch (BadLocationException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }
}).setVisible(true); }).setVisible(true);

2
designer-realize/src/main/java/com/fr/design/mainframe/CellWidgetPropertyPane.java

@ -183,7 +183,7 @@ public class CellWidgetPropertyPane extends BasicPane {
newWidget.setWidgetPrivilegeControl((WidgetPrivilegeControl) oldWidget.getWidgetPrivilegeControl().clone()); newWidget.setWidgetPrivilegeControl((WidgetPrivilegeControl) oldWidget.getWidgetPrivilegeControl().clone());
} }
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return newWidget; return newWidget;
} }

20
designer-realize/src/main/java/com/fr/design/mainframe/InformationCollector.java

@ -120,11 +120,11 @@ public class InformationCollector implements XMLReadable, XMLWriter {
} }
xmlInputStream.close(); xmlInputStream.close();
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} catch (IOException e) { } catch (IOException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} catch (XMLStreamException e) { } catch (XMLStreamException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }
@ -174,7 +174,7 @@ public class InformationCollector implements XMLReadable, XMLWriter {
try { try {
return content.toString().getBytes(EncodeConstants.ENCODING_UTF_8); return content.toString().getBytes(EncodeConstants.ENCODING_UTF_8);
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
return ArrayUtils.EMPTY_BYTE_ARRAY; return ArrayUtils.EMPTY_BYTE_ARRAY;
} }
} }
@ -225,7 +225,7 @@ public class InformationCollector implements XMLReadable, XMLWriter {
} }
content = getFunctionsContentAsByte(rs); content = getFunctionsContentAsByte(rs);
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} finally { } finally {
DBUtils.closeConnection(conn); DBUtils.closeConnection(conn);
} }
@ -258,7 +258,7 @@ public class InformationCollector implements XMLReadable, XMLWriter {
Delete delete = new Delete(table); Delete delete = new Delete(table);
delete.execute(conn); delete.execute(conn);
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} finally { } finally {
DBUtils.closeConnection(conn); DBUtils.closeConnection(conn);
} }
@ -304,7 +304,7 @@ public class InformationCollector implements XMLReadable, XMLWriter {
try { try {
return content.toString().getBytes(EncodeConstants.ENCODING_UTF_8); return content.toString().getBytes(EncodeConstants.ENCODING_UTF_8);
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
return ArrayUtils.EMPTY_BYTE_ARRAY; return ArrayUtils.EMPTY_BYTE_ARRAY;
} }
} }
@ -356,7 +356,7 @@ public class InformationCollector implements XMLReadable, XMLWriter {
//读取XML的5分钟后开始发请求连接服务器. //读取XML的5分钟后开始发请求连接服务器.
Thread.sleep(SEND_DELAY); Thread.sleep(SEND_DELAY);
} catch (InterruptedException e) { } catch (InterruptedException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
sendFunctionsInfo(); sendFunctionsInfo();
sendUserInfo(); sendUserInfo();
@ -402,7 +402,7 @@ public class InformationCollector implements XMLReadable, XMLWriter {
String encodeCotent = DesUtils.getEncString(fileContent); String encodeCotent = DesUtils.getEncString(fileContent);
writeEncodeContentToFile(encodeCotent, xmlFile); writeEncodeContentToFile(encodeCotent, xmlFile);
}catch (Exception e) { }catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }
@ -418,7 +418,7 @@ public class InformationCollector implements XMLReadable, XMLWriter {
bw = new BufferedWriter(osw); bw = new BufferedWriter(osw);
bw.write(fileContent); bw.write(fileContent);
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} finally { } finally {
if(bw != null){ if(bw != null){
try { try {

2
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/cell/model/ActionModel.java

@ -58,7 +58,7 @@ public class ActionModel extends AlphaCellModel {
modelObject.put("className", getAction().getClass().getName()).put("searchCount", getSearchCount()); modelObject.put("className", getAction().getClass().getName()).put("searchCount", getSearchCount());
object.put("result", modelObject).put("cellType", getType().getTypeValue()); object.put("result", modelObject).put("cellType", getType().getTypeValue());
} catch (JSONException e) { } catch (JSONException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return object; return object;
} }

4
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/cell/model/DocumentModel.java

@ -62,9 +62,9 @@ public class DocumentModel extends AlphaCellModel {
try { try {
Desktop.getDesktop().browse(new URI(getDocumentUrl())); Desktop.getDesktop().browse(new URI(getDocumentUrl()));
} catch (IOException e) { } catch (IOException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} catch (URISyntaxException e) { } catch (URISyntaxException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/cell/model/FileModel.java

@ -42,7 +42,7 @@ public class FileModel extends AlphaCellModel {
modelObject.put("filePath", getFilePath()).put("searchCount", getSearchCount()); modelObject.put("filePath", getFilePath()).put("searchCount", getSearchCount());
object.put("result", modelObject).put("cellType", getType().getTypeValue()); object.put("result", modelObject).put("cellType", getType().getTypeValue());
} catch (JSONException e) { } catch (JSONException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return object; return object;
} }

2
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/cell/model/PluginModel.java

@ -92,7 +92,7 @@ public class PluginModel extends AlphaCellModel {
modelObject.put("name", getName()).put("description", getContent()).put("pic", getImageUrl()).put("version", getVersion()).put("jartime", getJartime()).put("id", getId()).put("pluginid", getPluginId()).put("type", getType().getTypeValue()).put("price", getPrice()).put("link", getLink()).put("searchCount", getSearchCount()); modelObject.put("name", getName()).put("description", getContent()).put("pic", getImageUrl()).put("version", getVersion()).put("jartime", getJartime()).put("id", getId()).put("pluginid", getPluginId()).put("type", getType().getTypeValue()).put("price", getPrice()).put("link", getLink()).put("searchCount", getSearchCount());
object.put("result", modelObject).put("cellType", getType().getTypeValue()); object.put("result", modelObject).put("cellType", getType().getTypeValue());
} catch (JSONException e) { } catch (JSONException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return object; return object;

20
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

@ -526,7 +526,7 @@ public class AlphaFineDialog extends UIDialog {
try { try {
form = FormIO.readForm(fileName); form = FormIO.readForm(fileName);
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return FormIO.exportFormAsImage(form); return FormIO.exportFormAsImage(form);
} }
@ -538,9 +538,9 @@ public class AlphaFineDialog extends UIDialog {
try { try {
rightSearchResultPane.add(new FilePreviewPane(get())); rightSearchResultPane.add(new FilePreviewPane(get()));
} catch (InterruptedException e) { } catch (InterruptedException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} catch (ExecutionException e) { } catch (ExecutionException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
validate(); validate();
repaint(); repaint();
@ -558,7 +558,7 @@ public class AlphaFineDialog extends UIDialog {
try { try {
workBook = (WorkBook) TemplateWorkBookIO.readTemplateWorkBook(fileName); workBook = (WorkBook) TemplateWorkBookIO.readTemplateWorkBook(fileName);
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
BufferedImage bufferedImage = new ImageExporter().exportToImage(workBook); BufferedImage bufferedImage = new ImageExporter().exportToImage(workBook);
return bufferedImage; return bufferedImage;
@ -573,9 +573,9 @@ public class AlphaFineDialog extends UIDialog {
validate(); validate();
repaint(); repaint();
} catch (InterruptedException e) { } catch (InterruptedException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} catch (ExecutionException e) { } catch (ExecutionException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
@ -610,7 +610,7 @@ public class AlphaFineDialog extends UIDialog {
try { try {
bufferedImage = ImageIO.read(getClass().getResource("/com/fr/design/mainframe/alphafine/images/default_product.png")); bufferedImage = ImageIO.read(getClass().getResource("/com/fr/design/mainframe/alphafine/images/default_product.png"));
} catch (IOException e1) { } catch (IOException e1) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
return bufferedImage; return bufferedImage;
@ -626,9 +626,9 @@ public class AlphaFineDialog extends UIDialog {
repaint(); repaint();
} }
} catch (InterruptedException e) { } catch (InterruptedException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} catch (ExecutionException e) { } catch (ExecutionException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
@ -812,7 +812,7 @@ public class AlphaFineDialog extends UIDialog {
try { try {
object.put("uuid", uuid).put("activityKey", activityKey).put("username", username).put("createTime", createTime).put("key", key).put("resultKind", resultKind).put("resultValue", resultValue); object.put("uuid", uuid).put("activityKey", activityKey).put("username", username).put("createTime", createTime).put("key", key).put("resultKind", resultKind).put("resultValue", resultValue);
} catch (JSONException e) { } catch (JSONException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
final HashMap<String, String> para = new HashMap<>(); final HashMap<String, String> para = new HashMap<>();
String date = new SimpleDateFormat("yyyy-MM-dd").format(Calendar.getInstance().getTime()); String date = new SimpleDateFormat("yyyy-MM-dd").format(Calendar.getInstance().getTime());

4
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

@ -107,7 +107,7 @@ public class RecentSearchManager implements AlphaFineSearchProvider {
directory = FSDirectory.open(new File(path)); directory = FSDirectory.open(new File(path));
indexWriter = new IndexWriter(directory, config); indexWriter = new IndexWriter(directory, config);
} catch (IOException e) { } catch (IOException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
@ -121,7 +121,7 @@ public class RecentSearchManager implements AlphaFineSearchProvider {
indexReader = DirectoryReader.open(directory); indexReader = DirectoryReader.open(directory);
indexSearcher = new IndexSearcher(indexReader); indexSearcher = new IndexSearcher(indexReader);
} catch (IOException e) { } catch (IOException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-realize/src/main/java/com/fr/design/mainframe/bbs/BBSDialog.java

@ -63,7 +63,7 @@ public class BBSDialog extends UIDialog {
} }
}); });
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }

4
designer-realize/src/main/java/com/fr/design/mainframe/bbs/BBSLoginDialog.java

@ -281,7 +281,7 @@ public class BBSLoginDialog extends UIDialog {
username = URLEncoder.encode(username, EncodeConstants.ENCODING_GBK); username = URLEncoder.encode(username, EncodeConstants.ENCODING_GBK);
password = URLEncoder.encode(password, EncodeConstants.ENCODING_GBK); password = URLEncoder.encode(password, EncodeConstants.ENCODING_GBK);
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
String url = CloudCenter.getInstance().acquireUrlByKind("bbs.login") + "&username=" + username + "&password=" + password; String url = CloudCenter.getInstance().acquireUrlByKind("bbs.login") + "&username=" + username + "&password=" + password;
String loginSuccessFlag = CloudCenter.getInstance().acquireUrlByKind("bbs"); String loginSuccessFlag = CloudCenter.getInstance().acquireUrlByKind("bbs");
@ -294,7 +294,7 @@ public class BBSLoginDialog extends UIDialog {
return true; return true;
} }
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
} }
} }

4
designer-realize/src/main/java/com/fr/design/mainframe/bbs/UserInfoLabel.java

@ -149,7 +149,7 @@ public class UserInfoLabel extends UILabel {
} }
Thread.sleep(DELAY_TIME); Thread.sleep(DELAY_TIME);
} catch (InterruptedException e) { } catch (InterruptedException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
HttpClient hc = new HttpClient(CloudCenter.getInstance().acquireUrlByKind("bbs.popup")); HttpClient hc = new HttpClient(CloudCenter.getInstance().acquireUrlByKind("bbs.popup"));
if (!hc.isServerAlive()) { if (!hc.isServerAlive()) {
@ -222,7 +222,7 @@ public class UserInfoLabel extends UILabel {
try { try {
Thread.sleep(millis); Thread.sleep(millis);
} catch (InterruptedException e) { } catch (InterruptedException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }

4
designer-realize/src/main/java/com/fr/design/mainframe/bbs/UserInfoPane.java

@ -142,7 +142,7 @@ public class UserInfoPane extends BasicPane {
return dayNew - dayOld; return dayNew - dayOld;
} }
} catch (ParseException e) { } catch (ParseException e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return 1; return 1;
} }
@ -165,7 +165,7 @@ public class UserInfoPane extends BasicPane {
} }
} catch (InterruptedException e) { } catch (InterruptedException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
String userName = MarketConfig.getInstance().getBbsUsername(); String userName = MarketConfig.getInstance().getBbsUsername();

2
designer-realize/src/main/java/com/fr/design/mainframe/form/FormElementCaseDesigner.java

@ -134,7 +134,7 @@ public class FormElementCaseDesigner<T extends FormElementCaseProvider, E extend
this.elementCasePane.paintComponents(g); this.elementCasePane.paintComponents(g);
}catch (Exception e) { }catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
return image; return image;

2
designer-realize/src/main/java/com/fr/design/parameter/ParameterDefinitePane.java

@ -234,7 +234,7 @@ public class ParameterDefinitePane extends JPanel implements ToolBarMenuDockPlus
parameterUI = StableFactory.getMarkedInstanceObjectFromClass(ParameterUI.FORM_XML_TAG, ParameterUI.class); parameterUI = StableFactory.getMarkedInstanceObjectFromClass(ParameterUI.FORM_XML_TAG, ParameterUI.class);
parameterUI.setDefaultSize(); parameterUI.setDefaultSize();
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }

2
designer-realize/src/main/java/com/fr/design/present/CellWriteAttrPane.java

@ -111,7 +111,7 @@ public class CellWriteAttrPane extends BasicPane {
newWidget.setWidgetPrivilegeControl((WidgetPrivilegeControl) oldWidget.getWidgetPrivilegeControl().clone()); newWidget.setWidgetPrivilegeControl((WidgetPrivilegeControl) oldWidget.getWidgetPrivilegeControl().clone());
} }
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
return newWidget; return newWidget;
} }

2
designer-realize/src/main/java/com/fr/design/report/RichTextEditingPane.java

@ -150,7 +150,7 @@ public class RichTextEditingPane extends UITextPane{
doc.remove(formulaStart, formulaContent.length() + WRAPPER_LEN); doc.remove(formulaStart, formulaContent.length() + WRAPPER_LEN);
doc.insertString(formulaStart, content, attrs); doc.insertString(formulaStart, content, attrs);
} catch (BadLocationException e) { } catch (BadLocationException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }
}).setVisible(true); }).setVisible(true);

4
designer-realize/src/main/java/com/fr/design/report/RichTextPane.java

@ -164,7 +164,7 @@ public class RichTextPane extends BasicPane {
lastChar = new RichChar(charStr, style); lastChar = new RichChar(charStr, style);
richText.addContent(lastChar); richText.addContent(lastChar);
}catch (Exception e) { }catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }
} }
@ -214,7 +214,7 @@ public class RichTextPane extends BasicPane {
doc.insertString(doc.getLength(), charStr, attrs); doc.insertString(doc.getLength(), charStr, attrs);
toolBar.addInputListener(); toolBar.addInputListener();
} catch (BadLocationException e) { } catch (BadLocationException e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
} }
} }

2
designer-realize/src/main/java/com/fr/design/report/share/ConfusionTableDataPane.java

@ -193,7 +193,7 @@ public class ConfusionTableDataPane extends BasicBeanPane<ConfusionInfo>{
InputStream in = IOUtils.readResource("/com/fr/design/report/share/shareToolTip.html"); InputStream in = IOUtils.readResource("/com/fr/design/report/share/shareToolTip.html");
return IOUtils.inputStream2String(in); return IOUtils.inputStream2String(in);
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
return StringUtils.EMPTY; return StringUtils.EMPTY;

2
designer-realize/src/main/java/com/fr/design/write/submit/SubmitVisitorListPane.java

@ -137,7 +137,7 @@ public class SubmitVisitorListPane extends ObjectJControlPane {
try { try {
editing = (BuiltInSQLSubmiterProvider) editing.clone(); editing = (BuiltInSQLSubmiterProvider) editing.clone();
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage()); FineLoggerFactory.getLogger().error(e.getMessage(), e);
} }
editing.setDBManipulation(dbManipulation); editing.setDBManipulation(dbManipulation);

2
designer-realize/src/main/java/com/fr/start/Designer.java

@ -180,7 +180,7 @@ public class Designer extends BaseDesigner {
shortCuts.add((ShortCut) DesignModuleFactory.getNewFormAction().newInstance()); shortCuts.add((ShortCut) DesignModuleFactory.getNewFormAction().newInstance());
} }
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage(), e);
} }
return shortCuts.toArray(new ShortCut[shortCuts.size()]); return shortCuts.toArray(new ShortCut[shortCuts.size()]);
} }

Loading…
Cancel
Save