@@ -273,9 +273,9 @@ private void addVoltronCommandsControls() {
273
273
serverControls = new GridLayout ();
274
274
serverControls .setWidth (50 , Unit .PERCENTAGE );
275
275
voltronControlLayout .addComponentsAndExpand (serverControls );
276
-
276
+
277
277
HorizontalLayout row1 = new HorizontalLayout ();
278
-
278
+
279
279
Button clusterStartBtn = new Button ();
280
280
clusterStartBtn .setCaption ("Start all servers" );
281
281
clusterStartBtn .addStyleName ("align-bottom" );
@@ -325,9 +325,9 @@ private void addVoltronCommandsControls() {
325
325
326
326
row1 .addComponents (clusterNameTF , clusterConfigBtn , clusterReConfigBtn , clusterBackupBtn , clusterDumpBtn , clusterStopBtn );
327
327
}
328
-
328
+
329
329
voltronControlLayout .addComponentsAndExpand (row1 );
330
-
330
+
331
331
consoles = new TabSheet ();
332
332
mainConsole = addConsole ("Main" , "main" );
333
333
voltronControlLayout .addComponentsAndExpand (consoles );
@@ -558,7 +558,7 @@ private void addVoltronConfigControls() {
558
558
displayWarningNotification ("Folder deleted with success" );
559
559
changeTrashButtonStatus (baseLocation .getValue ());
560
560
} catch (IOException e ) {
561
- displayErrorNotification ("Could not delete the folder" , ExceptionUtils . getRootCauseMessage ( e ) );
561
+ displayErrorNotification ("Could not delete the folder" , e );
562
562
}
563
563
} else {
564
564
displayErrorNotification ("Could not delete the folder" , "Either folder does not exist or does not have logs/ nor data/ in it" );
@@ -1113,7 +1113,7 @@ private void addCacheControls() {
1113
1113
cacheNameField .clear ();
1114
1114
displayWarningNotification ("Cache added with success !" );
1115
1115
} catch (RuntimeException e ) {
1116
- displayErrorNotification ("Cache could not be added !" , ExceptionUtils . getRootCauseMessage ( e ) );
1116
+ displayErrorNotification ("Cache could not be added !" , e );
1117
1117
}
1118
1118
});
1119
1119
@@ -1145,7 +1145,7 @@ private void addCacheControls() {
1145
1145
refreshCacheStuff (listDataProvider );
1146
1146
displayWarningNotification ("Cache removed with success !" );
1147
1147
} catch (RuntimeException e ) {
1148
- displayErrorNotification ("Cache could not be removed !" , ExceptionUtils . getRootCauseMessage ( e ) );
1148
+ displayErrorNotification ("Cache could not be removed !" , e );
1149
1149
refreshCacheStuff (listDataProvider );
1150
1150
}
1151
1151
});
@@ -1158,7 +1158,7 @@ private void addCacheControls() {
1158
1158
refreshCacheStuff (listDataProvider );
1159
1159
displayWarningNotification ("Cache destroyed with success !" );
1160
1160
} catch (Exception e ) {
1161
- displayErrorNotification ("Cache could not be destroyed !" , ExceptionUtils . getRootCauseMessage ( e ) );
1161
+ displayErrorNotification ("Cache could not be destroyed !" , e );
1162
1162
refreshCacheStuff (listDataProvider );
1163
1163
}
1164
1164
});
@@ -1189,6 +1189,11 @@ private void displayWarningNotification(String caption) {
1189
1189
notification .show (Page .getCurrent ());
1190
1190
}
1191
1191
1192
+ private void displayErrorNotification (String caption , Throwable e ) {
1193
+ e .printStackTrace ();
1194
+ displayErrorNotification (caption , ExceptionUtils .getRootCauseMessage (e ));
1195
+ }
1196
+
1192
1197
private void displayErrorNotification (String caption , String message ) {
1193
1198
Notification notification = new Notification (caption ,
1194
1199
message ,
@@ -1293,7 +1298,7 @@ private void addCacheManagerControls() {
1293
1298
cacheManagerConfigTextArea .setValue (cacheManagerBusiness .retrieveHumanReadableConfiguration ());
1294
1299
refreshCacheManagerControls ();
1295
1300
} catch (Exception e ) {
1296
- displayErrorNotification ("CacheManager could not be initialized!" , ExceptionUtils . getRootCauseMessage ( e ) );
1301
+ displayErrorNotification ("CacheManager could not be initialized!" , e );
1297
1302
}
1298
1303
});
1299
1304
@@ -1304,7 +1309,7 @@ private void addCacheManagerControls() {
1304
1309
refreshCacheControls ();
1305
1310
refreshCacheManagerControls ();
1306
1311
} catch (Exception e ) {
1307
- displayErrorNotification ("CacheManager could not be closed!" , ExceptionUtils . getRootCauseMessage ( e ) );
1312
+ displayErrorNotification ("CacheManager could not be closed!" , e );
1308
1313
}
1309
1314
});
1310
1315
Button destroyCacheManager = new Button ("Destroy CacheManager" );
@@ -1315,7 +1320,7 @@ private void addCacheManagerControls() {
1315
1320
refreshCacheManagerControls ();
1316
1321
displayWarningNotification ("CacheManager destroyed with success !" );
1317
1322
} catch (Exception e ) {
1318
- displayErrorNotification ("CacheManager could not be destroyed!" , ExceptionUtils . getRootCauseMessage ( e ) );
1323
+ displayErrorNotification ("CacheManager could not be destroyed!" , e );
1319
1324
}
1320
1325
});
1321
1326
@@ -1385,7 +1390,7 @@ private void addKitControls() {
1385
1390
if (e .getCause () instanceof NoSuchFileException ) {
1386
1391
displayErrorNotification ("Kit path could not update !" , "Make sure the path points to a kit !" );
1387
1392
} else {
1388
- displayErrorNotification ("Kit path could not update !" , ExceptionUtils . getRootCauseMessage ( e ) );
1393
+ displayErrorNotification ("Kit path could not update !" , e );
1389
1394
}
1390
1395
}
1391
1396
});
@@ -1428,7 +1433,7 @@ private void addDatasetManagerControls() {
1428
1433
datasetManagerBusiness .initializeDatasetManager (!clusteredCheckBox .getValue () ? null : terracottaUrlField .getValue ());
1429
1434
refreshDatasetManagerControls ();
1430
1435
} catch (Exception e ) {
1431
- displayErrorNotification ("DatasetManager could not be initialized!" , ExceptionUtils . getRootCauseMessage ( e ) );
1436
+ displayErrorNotification ("DatasetManager could not be initialized!" , e );
1432
1437
}
1433
1438
});
1434
1439
@@ -1439,7 +1444,7 @@ private void addDatasetManagerControls() {
1439
1444
refreshDatasetControls ();
1440
1445
refreshDatasetManagerControls ();
1441
1446
} catch (Exception e ) {
1442
- displayErrorNotification ("DatasetManager could not be closed!" , ExceptionUtils . getRootCauseMessage ( e ) );
1447
+ displayErrorNotification ("DatasetManager could not be closed!" , e );
1443
1448
}
1444
1449
});
1445
1450
@@ -1519,7 +1524,7 @@ private void addDatasetControls() {
1519
1524
datasetNameField .clear ();
1520
1525
displayWarningNotification ("Dataset added with success !" );
1521
1526
} catch (RuntimeException e ) {
1522
- displayErrorNotification ("Dataset could not be added !" , ExceptionUtils . getRootCauseMessage ( e ) );
1527
+ displayErrorNotification ("Dataset could not be added !" , e );
1523
1528
}
1524
1529
});
1525
1530
@@ -1534,7 +1539,7 @@ private void addDatasetControls() {
1534
1539
refreshDatasetStuff (listDataProvider );
1535
1540
displayWarningNotification ("Dataset instance " + datasetInstanceName + " created with success !" );
1536
1541
} catch (Exception e ) {
1537
- displayErrorNotification ("Dataset instance could not be created !" , ExceptionUtils . getRootCauseMessage ( e ) );
1542
+ displayErrorNotification ("Dataset instance could not be created !" , e );
1538
1543
refreshDatasetStuff (listDataProvider );
1539
1544
}
1540
1545
});
@@ -1547,7 +1552,7 @@ private void addDatasetControls() {
1547
1552
refreshDatasetStuff (listDataProvider );
1548
1553
displayWarningNotification ("Dataset destroyed with success !" );
1549
1554
} catch (Exception e ) {
1550
- displayErrorNotification ("Dataset could not be destroyed !" , ExceptionUtils . getRootCauseMessage ( e ) );
1555
+ displayErrorNotification ("Dataset could not be destroyed !" , e );
1551
1556
refreshDatasetStuff (listDataProvider );
1552
1557
}
1553
1558
});
@@ -1570,7 +1575,7 @@ private void addDatasetControls() {
1570
1575
refreshDatasetStuff (listDataProvider );
1571
1576
displayWarningNotification ("Dataset instance closed with success !" );
1572
1577
} catch (Exception e ) {
1573
- displayErrorNotification ("Dataset instance could not be closed !" , ExceptionUtils . getRootCauseMessage ( e ) );
1578
+ displayErrorNotification ("Dataset instance could not be closed !" , e );
1574
1579
refreshDatasetStuff (listDataProvider );
1575
1580
}
1576
1581
});
0 commit comments