-
Notifications
You must be signed in to change notification settings - Fork 138
/
CULoggerInfo.java
268 lines (221 loc) · 11.5 KB
/
CULoggerInfo.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
/*
* Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation.
* Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.sun.enterprise.util;
import java.text.MessageFormat;
import java.util.logging.Logger;
import org.glassfish.logging.annotation.LogMessageInfo;
import org.glassfish.logging.annotation.LogMessagesResourceBundle;
import org.glassfish.logging.annotation.LoggerInfo;
/**
* Logger information for the common-util module.
*
* @author Tom Mueller
*/
/* Module private */
public class CULoggerInfo {
private static final String LOGMSG_PREFIX = "NCLS-COMUTIL";
@LogMessagesResourceBundle
private static final String SHARED_LOGMESSAGE_RESOURCE = "com.sun.enterprise.util.LogMessages";
@LoggerInfo(subsystem = "COMMON", description = "Common Utilities", publish = true)
private static final String UTIL_LOGGER = "jakarta.enterprise.system.util";
private static final Logger utilLogger = Logger.getLogger(UTIL_LOGGER, SHARED_LOGMESSAGE_RESOURCE);
public static Logger getLogger() {
return utilLogger;
}
public static String getString(String key) {
return utilLogger.getResourceBundle().getString(key);
}
public static String getString(String key, Object... args) {
return MessageFormat.format(getString(key), args);
}
@LogMessageInfo(
message = "Some IOException occurred",
cause = "An unexpected exception occurred.",
action = "Check the system logs and contact Oracle support.",
level = "SEVERE")
public static final String exceptionIO = LOGMSG_PREFIX + "-00031";
@LogMessageInfo(
message = "Failed to process class {0} with bytecode preprocessor {1}",
cause = "Unknown",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String preprocessFailed = LOGMSG_PREFIX + "-00001";
@LogMessageInfo(
message = "Class {0} is being reset to its original state",
cause = "Unknown",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String resettingOriginal = LOGMSG_PREFIX + "-00002";
@LogMessageInfo(
message = "Class {0} is being reset to the last successful preprocessor",
cause = "Unknown",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String resettingLastGood = LOGMSG_PREFIX + "-00003";
@LogMessageInfo(
message = "The supplied preprocessor class {0} is not an instance of org.glassfish.api.BytecodePreprocessor",
cause = "Unknown",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String invalidType = LOGMSG_PREFIX + "-00004";
@LogMessageInfo(
message = "Bytecode preprocessor disabled",
cause = "Unknown",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String disabled = LOGMSG_PREFIX + "-00005";
@LogMessageInfo(
message = "Initialization failed for bytecode preprocessor {0}",
cause = "Unknown",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String failedInit = LOGMSG_PREFIX + "-00006";
@LogMessageInfo(
message = "Error setting up preprocessor",
cause = "Unknown",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String setupEx = LOGMSG_PREFIX + "-00007";
@LogMessageInfo(message = "Illegal max-entries [{0}]; please check your cache configuration.")
public static final String illegalMaxEntries = LOGMSG_PREFIX + "-00008";
@LogMessageInfo(message = "Illegal MaxSize value [{0}]")
public static final String boundedMultiLruCacheIllegalMaxSize = LOGMSG_PREFIX + "-00009";
@LogMessageInfo(
message = "Error closing zip file for class path entry {0}",
level = "INFO")
public static final String exceptionClosingURLEntry = LOGMSG_PREFIX + "-00010";
@LogMessageInfo(
message = "An error occurred while adding URL [{0}] to the EJB class loader. Please check the content of this URL.",
cause = "An unexpected exception occurred while processing a URL.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String badUrlEntry = LOGMSG_PREFIX + "-00011";
@LogMessageInfo(
message = "The URL entry is missing while constructing the classpath.",
level = "INFO")
public static final String missingURLEntry = LOGMSG_PREFIX + "-00012";
@LogMessageInfo(
message = "Error closing zip file for duplicate class path entry {0}",
level = "INFO")
public static final String exceptionClosingDupUrlEntry = LOGMSG_PREFIX + "-00013";
@LogMessageInfo(
message = "Exception in ASURLClassLoader",
level = "INFO")
public static final String exceptionInASURLClassLoader = LOGMSG_PREFIX + "-00014";
@LogMessageInfo(
message = "ASURLClassLoader {1} was requested to find resource {0} after done was invoked from the following stack trace",
level = "WARNING")
public static final String findResourceAfterDone = LOGMSG_PREFIX + "-00015";
@LogMessageInfo(
message = "Error: Request made to load class or resource [{0}] on an ASURLClassLoader instance that has already been shutdown. [{1}]",
level = "WARNING")
public static final String doneAlreadyCalled = LOGMSG_PREFIX + "-00016";
@LogMessageInfo(
message = "{0} actually got transformed",
level = "INFO")
public static final String actuallyTransformed = LOGMSG_PREFIX + "-00017";
@LogMessageInfo(
message = "ASURLClassLoader {1} was requested to find class {0} after done was invoked from the following stack trace",
level = "WARNING")
public static final String findClassAfterDone = LOGMSG_PREFIX + "-00018";
@LogMessageInfo(
message = "Illegal call to close() detected",
level = "WARNING")
public static final String illegalCloseCall = LOGMSG_PREFIX + "-00019";
@LogMessageInfo(
message = "Error processing file with path {0} in {1}",
cause = "An unexpected exception occurred while processing a file.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String exceptionProcessingFile = LOGMSG_PREFIX + "-00020";
@LogMessageInfo(
message = "Error checking for existing of {0} in {1}",
cause = "An unexpected exception occurred while checking for the existence of a file.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String exceptionCheckingFile = LOGMSG_PREFIX + "-00021";
@LogMessageInfo(
message = "Error closing an open stream during loader clean-up",
level = "WARNING")
public static final String exceptionClosingStream = LOGMSG_PREFIX + "-00022";
@LogMessageInfo(
message = "Input stream has been finalized or forced closed without being explicitly closed; stream instantiation reported in following stack trace",
level = "WARNING")
public static final String inputStreamFinalized = LOGMSG_PREFIX + "-00023";
@LogMessageInfo(
message = "Unable to create client data directory: {0}",
cause = "An unexpected failure occurred while creating the directory for the file.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String errorCreatingDirectory = LOGMSG_PREFIX + "-00024";
@LogMessageInfo(
message = "Exception in invokeApplicationMain [{0}].",
cause = "An unexpected exception occurred.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String exceptionInUtility = LOGMSG_PREFIX + "-00025";
@LogMessageInfo(
message = "The main method signature is invalid.",
cause = "While invoking a main class, an invalid method was found.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String mainNotValid = LOGMSG_PREFIX + "-00026";
@LogMessageInfo(
message = "Error while caching the local string manager - package name may be null.",
cause = "An unexpected exception occurred.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String exceptionCachingStringManager = LOGMSG_PREFIX + "-00027";
@LogMessageInfo(
message = "Error while constructing the local string manager object.",
cause = "An unexpected exception occurred.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String exceptionConstructingStringManager = LOGMSG_PREFIX + "-00028";
@LogMessageInfo(
message = "Error in local string manager - resource bundle is probably missing.",
cause = "An unexpected exception occurred.",
action = "Check the system logs and contact support.",
level = "SEVERE")
public static final String exceptionResourceBundle = LOGMSG_PREFIX + "-00029";
@LogMessageInfo(
message = "Error while formatting the local string.",
level = "WARNING")
public static final String exceptionWhileFormating = LOGMSG_PREFIX + "-00030";
@LogMessageInfo(
message = "Failed to open jar file: {0}",
level = "WARNING")
public static final String exceptionJarOpen = LOGMSG_PREFIX + "-00038";
@LogMessageInfo(
message = "Attempt to use non-existent auth token {0}",
level = "WARNING")
public static final String useNonexistentToken = LOGMSG_PREFIX + "-00039";
@LogMessageInfo(
message = "File Lock not released on {0}",
level = "WARNING")
public static final String fileLockNotReleased = LOGMSG_PREFIX + "-00040";
@LogMessageInfo(
message = "Bad Network Configuration. DNS can not resolve the hostname: \n{0}",
cause = "The hostname can't be resolved.",
action = "Set the hostname correctly.",
level = "WARNING")
public static final String badNetworkConfig = LOGMSG_PREFIX + "-00041";
@LogMessageInfo(
message = "BundleTracker.removedBundle null bundleID for {0}",
level="WARNING")
public static final String NULL_BUNDLE = LOGMSG_PREFIX + "-00042";
}