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
223
if (i == 3) {
218
-
Log.info(c, thisMethod, "Login still failed after " + i + " attempts");
219
224
StringerrorMsg = "Exception was caught while trying to create a SPNEGO token. Due to LoginException: " + e.getMessage();
220
225
Log.error(c, thisMethod, e, errorMsg);
221
226
e.printStackTrace();
222
227
throw (newException(errorMsg, e));
223
228
}
224
229
Thread.sleep(2000);
225
230
} catch (Exceptione2) {
231
+
// Check if this is a KrbException with status code 0 on z/OS
232
+
if (!retriedWithEbcdic && isZOS() && isKrbExceptionWithStatusCode0(e2)) {
233
+
Log.info(c, thisMethod, "Caught KrbException with status code 0 on z/OS. Attempting to convert krb5 config to EBCDIC and retry.");
234
+
try {
235
+
convertKrb5ConfigToEbcdic(configFile);
236
+
retriedWithEbcdic = true;
237
+
// Retry the token creation after conversion
238
+
continue;
239
+
} catch (IOExceptionioEx) {
240
+
Log.error(c, thisMethod, ioEx, "Failed to convert krb5 config file to EBCDIC: " + ioEx.getMessage());
241
+
// Fall through to throw the original exception
242
+
}
243
+
}
226
244
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