You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log.info(c, thisMethod, "Login still failed after " + i + " attempts");
217
224
if (i == 3) {
218
-
Log.info(c, thisMethod, "Login still failed after " + i + " attempts");
219
225
StringerrorMsg = "Exception was caught while trying to create a SPNEGO token. Due to LoginException: " + e.getMessage();
220
226
Log.error(c, thisMethod, e, errorMsg);
221
227
e.printStackTrace();
222
228
throw (newException(errorMsg, e));
223
229
}
224
230
Thread.sleep(2000);
225
231
} catch (Exceptione2) {
232
+
// Check if this is a KrbException with status code 0 on z/OS
233
+
if (!retriedWithEbcdic && isZOS() && isKrbExceptionWithStatusCode0(e2)) {
234
+
Log.info(c, thisMethod, "Caught KrbException with status code 0 on z/OS. Attempting to convert krb5 config to EBCDIC and retry.");
235
+
try {
236
+
convertKrb5ConfigToEbcdic(configFile);
237
+
retriedWithEbcdic = true;
238
+
// Retry the token creation after conversion
239
+
continue;
240
+
} catch (IOExceptionioEx) {
241
+
Log.error(c, thisMethod, ioEx, "Failed to convert krb5 config file to EBCDIC: " + ioEx.getMessage());
242
+
// Fall through to throw the original exception
243
+
}
244
+
}
226
245
StringerrorMsg = "Exception was caught while trying to create a SPNEGO token. Ensuing tests requiring use of this token might fail. " + e2.getMessage();
0 commit comments