File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
coherence-visualvm-plugin/src/main
java/com/oracle/coherence/plugin/visualvm/panel
resources/com/oracle/coherence/plugin/visualvm Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
44
44
version :
45
45
- 14.1.1-0-10
46
46
- 14.1.1-0-9
47
- - 21.06.1
48
- - 21.12.4
49
- - 22.06.1
50
47
- 22.06.2
48
+ - 22.09
51
49
52
50
steps :
53
51
- name : Checkout
63
61
- name : Set up JDK 11 for Build
64
62
uses : actions/setup-java@v1
65
63
with :
66
- java-version : ' 11 '
64
+ java-version : ' 17 '
67
65
68
66
- name : Print Versions
69
67
run : mvn -version && ant -version
Original file line number Diff line number Diff line change 26
26
package com .oracle .coherence .plugin .visualvm .panel ;
27
27
28
28
29
+ import com .oracle .coherence .plugin .visualvm .Localization ;
29
30
import com .oracle .coherence .plugin .visualvm .helper .GraphHelper ;
30
31
import com .oracle .coherence .plugin .visualvm .helper .RenderHelper ;
31
32
import com .oracle .coherence .plugin .visualvm .helper .RequestSender ;
@@ -636,12 +637,19 @@ public String getMenuItem()
636
637
/**
637
638
* Return a sanitized message to make common errors more meaningful.
638
639
* @param e {@link Exception} to get message from
640
+ *
639
641
* @return final message
640
642
*/
641
643
private String getSanitizedMessage (Exception e )
642
644
{
643
645
String sError = e .getMessage ();
644
- return sError .contains ("name cannot be null" ) ? "Node no longer available." : sError ;
646
+
647
+ if (sError == null )
648
+ {
649
+ return Localization .getLocalText ("LBL_operation_not_available" );
650
+ }
651
+
652
+ return sError .contains ("name cannot be null" ) ? Localization .getLocalText ("LBL_node_not_available" ) : sError ;
645
653
}
646
654
647
655
// ----- constants ------------------------------------------------------
Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ LBL_thread_dump_completed=Completed.
126
126
LBL_copy_to_clipboard =Copy contents to Clipboard
127
127
LBL_copied =Data has been copied to the Clipboard.
128
128
LBL_data_saved =Thread Dump has been saved to {0}.
129
+ LBL_operation_not_available =Operation is not available in this version.
130
+ LBL_node_not_available =Node no longer available.
129
131
130
132
# CoherencePersistencePanel
131
133
LBL_total_active_space =Total Active Persistence Space Used (MB)
You can’t perform that action at this time.
0 commit comments