You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gi...@apache.org on 2025/01/30 01:45:46 UTC
(camel-quarkus) 11/25: Workaround for jt400 native failure
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 54eb9c26343a732ff2782f326d4b77ede54158ce
Author: Jiri Ondrusek <on...@gmail.com>
AuthorDate: Mon Jan 6 15:48:08 2025 +0100
Workaround for jt400 native failure
---
.../camel/quarkus/component/jt400/graal/JT400Substitutions.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/extensions/jt400/runtime/src/main/java/org/apache/camel/quarkus/component/jt400/graal/JT400Substitutions.java b/extensions/jt400/runtime/src/main/java/org/apache/camel/quarkus/component/jt400/graal/JT400Substitutions.java
index 96afbfd320..221c070eea 100644
--- a/extensions/jt400/runtime/src/main/java/org/apache/camel/quarkus/component/jt400/graal/JT400Substitutions.java
+++ b/extensions/jt400/runtime/src/main/java/org/apache/camel/quarkus/component/jt400/graal/JT400Substitutions.java
@@ -39,6 +39,12 @@ final class SubstituteAS400 {
//skip verification, because it cen end with GUi dialog
return false;
}
+
+ @Substitute
+ //workaround because of https://github.com/apache/camel-quarkus/issues/6889
+ synchronized void signon(boolean keepConnection) throws AS400SecurityException, IOException {
+ throw new RuntimeException("Signon is not supported in the native mode.");
+ }
}
//even if gui is turned off, the presence of code in Dialogs, which references awt object, causes the java.lang.Thread