camel-examples icon indicating copy to clipboard operation
camel-examples copied to clipboard

Play tests on GitHub CI

Open apupier opened this issue 1 year ago • 1 comments

apupier avatar Aug 19 '24 07:08 apupier

current failure:

 Error:  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 32.41 s <<< FAILURE! -- in org.apache.camel.example.as2.As2Test
Error:  org.apache.camel.example.as2.As2Test.should_consume_and_produce_as2_messages -- Time elapsed: 30.03 s <<< FAILURE!
org.opentest4j.AssertionFailedError: 8 messages should be received by the AS2 server ==> expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
	at org.apache.camel.example.as2.As2Test.should_consume_and_produce_as2_messages(As2Test.java:45)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

apupier avatar Aug 19 '24 08:08 apupier

with the error just before:

---------------------------------------------------------------------------------------------------------------------------------------
Source                                   ID                             Processor                                          Elapsed (ms)
                                         triger-clients-route/triger-cl from[timer://init?repeatCount=1]                             60
	...
                                         enveloped-compressed-signed-me as2://client/send?inBody=ediMessage&targetHostname            0

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.RuntimeCamelException: Error invoking send with {server=Camel AS2 Server Endpoint, apiName=CLIENT, as2Version=1.1, as2MessageStructure=ENCRYPTED_COMPRESSED_SIGNED, encryptingCertificateChain=[Ljava.security.cert.Certificate;@160934, ediMessageTransferEncoding=7bit, subject=Enveloped, Compressed and Signed AS2 Message Example, httpConnectionPoolTtl=PT15M, signingPrivateKey=RSA Private CRT Key [8a:9f:54:d2:80:c8:34:3f:33:9c:6a:1a:f4:32:e0:1d:29:67:4c:77],[56:66:d1:a4]
             modulus: b7065a81f747e4fd3589e8433d2d855f5f1038fe4c98f3768c24236c05eb9e8522886651d737986003c0f182ed5bbbcdab60d695fc0a3f3d26dbbe86d583ad6b5f33c813937ffb3fb8f8be47cdc406c979d618b7303bcfdf55116b88f68e53d95f4f238c579e91ddbfdd6370c49cf7110b0764a2a990d5da221e29cae184cf83
     public exponent: 10001
, signedReceiptMicAlgorithms=sha1,md5, ediMessage=UNB+UNOA:1+005435656:1+006415160:1+060515:14.12.0-SNAPSHOT0000000000778'
UNH+00000000000117+INVOIC:D:97B:UN'
BGM+380+342459+9'
DTM+3:20060515:102'
RFF+ON:521052'
NAD+BY+792820524::16++CUMMINS MID-RANGE ENGINE PLANT'
NAD+SE+005435656::16++GENERAL WIDGET COMPANY'
CUX+1:USD'
LIN+1++157870:IN'
IMD+F++:::WIDGET'
QTY+47:1020:EA'
ALI+US'
MOA+203:1202.58'
PRI+INV:1.179'
LIN+2++157871:IN'
IMD+F++:::DIFFERENT WIDGET'
QTY+47:20:EA'
ALI+JP'
MOA+203:410'
PRI+INV:20.5'
UNS+S'
MOA+39:2137.58'
ALC+C+ABG'
MOA+8:525'
UNT+23+00000000000117'
UNZ+1+00000000000778', as2To=878051556, as2From=878051556, targetHostname=localhost, httpConnectionPoolSize=5, [email protected], serverFqdn=camel.apache.org, [email protected], httpSocketTimeout=PT5S, encryptingAlgorithm=AES128_CBC, ediMessageContentType=application/edifact; charset=US-ASCII, methodName=send, userAgent=Camel AS2 Client Endpoint, requestUri=/, clientFqdn=camel.apache.org, decryptingPrivateKey=RSA Private CRT Key [8a:9f:54:d2:80:c8:34:3f:33:9c:6a:1a:f4:32:e0:1d:29:67:4c:77],[56:66:d1:a4]
             modulus: b7065a81f747e4fd3589e8433d2d855f5f1038fe4c98f3768c24236c05eb9e8522886651d737986003c0f182ed5bbbcdab60d695fc0a3f3d26dbbe86d583ad6b5f33c813937ffb3fb8f8be47cdc406c979d618b7303bcfdf55116b88f68e53d95f4f238c579e91ddbfdd6370c49cf7110b0764a2a990d5da221e29cae184cf83
     public exponent: 10001
, signingAlgorithm=SHA512WITHRSA, compressionAlgorithm=ZLIB, httpConnectionTimeout=PT5S, signingCertificateChain=[Ljava.security.cert.Certificate;@254aa1e5, targetPortNumber=8888}: argument type mismatch
	at org.apache.camel.support.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:532) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at org.apache.camel.support.component.AbstractApiProducer.doInvokeMethod(AbstractApiProducer.java:122) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at org.apache.camel.support.component.AbstractApiProducer$1.run(AbstractApiProducer.java:89) [camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: java.lang.IllegalArgumentException: argument type mismatch
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
	at org.apache.camel.support.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:521) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	... 8 more

apupier avatar Apr 11 '25 15:04 apupier

When playing all tests, several of them are failing (not only the as2 one which is "only" the first module to have test failing::

Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-as2: There are test failures.
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/as2/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-csimple: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/csimple/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-csimple-joor: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/csimple-joor/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-flight-recorder: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/flight-recorder/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-kamelet: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/kamelet/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-loadbalancing: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/loadbalancing/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-main-tiny: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/main-tiny/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-routetemplate: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/routetemplate/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-routetemplate-xml: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/routetemplate-xml/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]

apupier avatar Apr 14 '25 07:04 apupier

a lot less test failure after removal of lightweight mode https://github.com/apache/camel-examples/pull/146 :

Error:  Please refer to /home/runner/work/camel-examples/camel-examples/as2/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project camel-example-loadbalancing: 
Error:  
Error:  Please refer to /home/runner/work/camel-examples/camel-examples/loadbalancing/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]

apupier avatar Apr 14 '25 10:04 apupier

for As2Test failure:

Message History (source location and message history is disabled)
---------------------------------------------------------------------------------------------------------------------------------------
Source                                   ID                             Processor                                          Elapsed (ms)
                                         triger-clients-route/triger-cl from[timer://init?repeatCount=1]                             64
	...
                                         enveloped-compressed-message-r as2://client/send?inBody=ediMessage&targetHostname            0

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.RuntimeCamelException: Error invoking send with {server=Camel AS2 Server Endpoint, apiName=CLIENT, as2Version=1.1, as2MessageStructure=ENCRYPTED_COMPRESSED, encryptingCertificateChain=[Ljava.security.cert.Certificate;@5bcfdc8d, ediMessageTransferEncoding=7bit, subject=Enveloped and Compressed AS2 Message Example, httpConnectionPoolTtl=PT15M, signingPrivateKey=RSA Private CRT Key [37:cd:fa:0a:e5:51:59:95:5d:13:d5:1d:90:68:48:3c:b2:cf:43:04],[56:66:d1:a4]
             modulus: e493a1d5cfa582f2de7b11ec5db9100639ea99d4109c166d7243d10dd58607103dffeca5a00f40105d23649b134e365dd336da15264f611d19500a16f9182b165bba0459a587be3bd2af2f0cf897102cbcd13c236e7cd8d57ebbfb0c30a658a0f7b67802db787c1e23e1e9fdd33073c8454a340325a46b15bc7be8139a0d3c4d
     public exponent: 10001
, signedReceiptMicAlgorithms=sha1,md5, ediMessage=UNB+UNOA:1+005435656:1+006415160:1+060515:14.12.0-SNAPSHOT0000000000778'
UNH+00000000000117+INVOIC:D:97B:UN'
BGM+380+342459+9'
DTM+3:20060515:102'
RFF+ON:521052'
NAD+BY+792820524::16++CUMMINS MID-RANGE ENGINE PLANT'
NAD+SE+005435656::16++GENERAL WIDGET COMPANY'
CUX+1:USD'
LIN+1++157870:IN'
IMD+F++:::WIDGET'
QTY+47:1020:EA'
ALI+US'
MOA+203:1202.58'
PRI+INV:1.179'
LIN+2++157871:IN'
IMD+F++:::DIFFERENT WIDGET'
QTY+47:20:EA'
ALI+JP'
MOA+203:410'
PRI+INV:20.5'
UNS+S'
MOA+39:2137.58'
ALC+C+ABG'
MOA+8:525'
UNT+23+00000000000117'
UNZ+1+00000000000778', as2To=878051556, as2From=878051556, targetHostname=localhost, httpConnectionPoolSize=5, [email protected], serverFqdn=camel.apache.org, [email protected], httpSocketTimeout=PT5S, encryptingAlgorithm=AES128_CBC, ediMessageContentType=application/edifact; charset=US-ASCII, methodName=send, userAgent=Camel AS2 Client Endpoint, requestUri=/, clientFqdn=camel.apache.org, decryptingPrivateKey=RSA Private CRT Key [37:cd:fa:0a:e5:51:59:95:5d:13:d5:1d:90:68:48:3c:b2:cf:43:04],[56:66:d1:a4]
             modulus: e493a1d5cfa582f2de7b11ec5db9100639ea99d4109c166d7243d10dd58607103dffeca5a00f40105d23649b134e365dd336da15264f611d19500a16f9182b165bba0459a587be3bd2af2f0cf897102cbcd13c236e7cd8d57ebbfb0c30a658a0f7b67802db787c1e23e1e9fdd33073c8454a340325a46b15bc7be8139a0d3c4d
     public exponent: 10001
, signingAlgorithm=SHA512WITHRSA, compressionAlgorithm=ZLIB, httpConnectionTimeout=PT5S, signingCertificateChain=[Ljava.security.cert.Certificate;@7e933785, targetPortNumber=8888}: argument type mismatch
	at org.apache.camel.support.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:532) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at org.apache.camel.support.component.AbstractApiProducer.doInvokeMethod(AbstractApiProducer.java:122) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at org.apache.camel.support.component.AbstractApiProducer$1.run(AbstractApiProducer.java:89) [camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
	at java.base/java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.IllegalArgumentException: argument type mismatch
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
	at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
	at org.apache.camel.support.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:521) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	... 8 more
org.opentest4j.AssertionFailedError: 8 messages should be received by the AS2 server ==> expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
	at org.apache.camel.example.as2.As2Test.should_consume_and_produce_as2_messages(As2Test.java:45)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
org.opentest4j.AssertionFailedError: 8 messages should be received by the AS2 server ==> expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
	at org.apache.camel.example.as2.As2Test.should_consume_and_produce_as2_messages(As2Test.java:45)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at java.base/java.util.ArrayList.forEach(Unknown Source)

apupier avatar Apr 14 '25 12:04 apupier

With https://github.com/apache/camel-examples/pull/147 , it remains only as2 test example failure

 Error:  Please refer to /home/runner/work/camel-examples/camel-examples/as2/target/surefire-reports for the individual test results.
Error:  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error:  -> [Help 1]

apupier avatar Apr 14 '25 12:04 apupier

I fixed the error in the conole log related to:

Message History (source location and message history is disabled)
---------------------------------------------------------------------------------------------------------------------------------------
Source                                   ID                             Processor                                          Elapsed (ms)
                                         triger-clients-route/triger-cl from[timer://init?repeatCount=1]                             64
	...
                                         enveloped-compressed-message-r as2://client/send?inBody=ediMessage&targetHostname            0

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.RuntimeCamelException: Error invoking send with {server=Camel AS2 Server Endpoint, apiName=CLIENT, as2Version=1.1, as2MessageStructure=ENCRYPTED_COMPRESSED, encryptingCertificateChain=[Ljava.security.cert.Certificate;@5bcfdc8d, ediMessageTransferEncoding=7bit, subject=Enveloped and Compressed AS2 Message Example, httpConnectionPoolTtl=PT15M, signingPrivateKey=RSA Private CRT Key [37:cd:fa:0a:e5:51:59:95:5d:13:d5:1d:90:68:48:3c:b2:cf:43:04],[56:66:d1:a4]
             modulus: e493a1d5cfa582f2de7b11ec5db9100639ea99d4109c166d7243d10dd58607103dffeca5a00f40105d23649b134e365dd336da15264f611d19500a16f9182b165bba0459a587be3bd2af2f0cf897102cbcd13c236e7cd8d57ebbfb0c30a658a0f7b67802db787c1e23e1e9fdd33073c8454a340325a46b15bc7be8139a0d3c4d
     public exponent: 10001
, signedReceiptMicAlgorithms=sha1,md5, ediMessage=UNB+UNOA:1+005435656:1+006415160:1+060515:14.12.0-SNAPSHOT0000000000778'
UNH+00000000000117+INVOIC:D:97B:UN'
BGM+380+342459+9'
DTM+3:20060515:102'
RFF+ON:521052'
NAD+BY+792820524::16++CUMMINS MID-RANGE ENGINE PLANT'
NAD+SE+005435656::16++GENERAL WIDGET COMPANY'
CUX+1:USD'
LIN+1++157870:IN'
IMD+F++:::WIDGET'
QTY+47:1020:EA'
ALI+US'
MOA+203:1202.58'
PRI+INV:1.179'
LIN+2++157871:IN'
IMD+F++:::DIFFERENT WIDGET'
QTY+47:20:EA'
ALI+JP'
MOA+203:410'
PRI+INV:20.5'
UNS+S'
MOA+39:2137.58'
ALC+C+ABG'
MOA+8:525'
UNT+23+00000000000117'
UNZ+1+00000000000778', as2To=878051556, as2From=878051556, targetHostname=localhost, httpConnectionPoolSize=5, [email protected], serverFqdn=camel.apache.org, [email protected], httpSocketTimeout=PT5S, encryptingAlgorithm=AES128_CBC, ediMessageContentType=application/edifact; charset=US-ASCII, methodName=send, userAgent=Camel AS2 Client Endpoint, requestUri=/, clientFqdn=camel.apache.org, decryptingPrivateKey=RSA Private CRT Key [37:cd:fa:0a:e5:51:59:95:5d:13:d5:1d:90:68:48:3c:b2:cf:43:04],[56:66:d1:a4]
             modulus: e493a1d5cfa582f2de7b11ec5db9100639ea99d4109c166d7243d10dd58607103dffeca5a00f40105d23649b134e365dd336da15264f611d19500a16f9182b165bba0459a587be3bd2af2f0cf897102cbcd13c236e7cd8d57ebbfb0c30a658a0f7b67802db787c1e23e1e9fdd33073c8454a340325a46b15bc7be8139a0d3c4d
     public exponent: 10001
, signingAlgorithm=SHA512WITHRSA, compressionAlgorithm=ZLIB, httpConnectionTimeout=PT5S, signingCertificateChain=[Ljava.security.cert.Certificate;@7e933785, targetPortNumber=8888}: argument type mismatch
	at org.apache.camel.support.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:532) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at org.apache.camel.support.component.AbstractApiProducer.doInvokeMethod(AbstractApiProducer.java:122) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at org.apache.camel.support.component.AbstractApiProducer$1.run(AbstractApiProducer.java:89) [camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
	at java.base/java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.IllegalArgumentException: argument type mismatch
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
	at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
	at org.apache.camel.support.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:521) ~[camel-support-4.12.0-SNAPSHOT.jar:4.12.0-SNAPSHOT]
	... 8 more

but the test itself is still failing with same error and there is no more error in console log :-(

org.opentest4j.AssertionFailedError: 8 messages should be received by the AS2 server ==> expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
	at org.apache.camel.example.as2.As2Test.should_consume_and_produce_as2_messages(As2Test.java:45)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at java.base/java.util.ArrayList.forEach(Unknown Source)

apupier avatar Apr 14 '25 14:04 apupier

I propose to remove the AS2 example as it is not working anyway for at least 9 months now and that there is no error to lead to an easy solution. It will allow to activate launching tests on GitHub CI. If the AS2 example is important, I can open an issue on the JIRA to keep it in sight.

apupier avatar Apr 14 '25 14:04 apupier