This is an automated email from the ASF dual-hosted git repository.

jiriondrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/camel-main by this push:
     new ea53e3545c Workaround for jt400 native failure
ea53e3545c is described below

commit ea53e3545ca7ae1f2a28860a5c7778c8a4abc9d0
Author: Jiri Ondrusek <ondrusek.j...@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

Reply via email to