frankframework / frankframework

The Frank!Framework is an easy-to-use, stateless integration framework which allows (transactional) messages to be modified and exchanged between different systems.
https://frankframework.org
Apache License 2.0
130 stars 78 forks source link

HttpSender output not or partly visible in Ladybug when using multiple HttpSenders #6449

Closed jacodg closed 7 months ago

jacodg commented 8 months ago

Describe the issue

When using:

<SenderPipe name="Test 1">
    <HttpSender url="https://www.google.com/"/>
</SenderPipe>
<SenderPipe name="Test 2">
    <HttpSender url="https://www.google.com/"/>
</SenderPipe>
<SenderPipe name="Test 3">
    <HttpSender url="https://www.google.com/"/>
</SenderPipe>
<SenderPipe name="Test 4">
    <HttpSender url="https://www.google.com/"/>
</SenderPipe>
<SenderPipe name="Test 5">
    <HttpSender url="https://www.google.com/"/>
</SenderPipe> 

The first four senders show: image

And the last one shows: image

When using:

<SenderPipe name="Test 1">
    <HttpSender url="http://localhost/"/>
</SenderPipe>
<SenderPipe name="Test 2">
    <HttpSender url="http://localhost/"/>
</SenderPipe>
<SenderPipe name="Test 3">
    <HttpSender url="http://localhost/"/>
</SenderPipe>
<SenderPipe name="Test 4">
    <HttpSender url="http://localhost/"/>
</SenderPipe>
<SenderPipe name="Test 5">
    <HttpSender url="http://localhost/"/>
</SenderPipe>

The first four senders show: image

And the last one shows: image

Environment

FF! 8.1.0-20240308.042334: Frank2Example4
Running on xxx using Apache Tomcat/9.0.84
Java Version: OpenJDK Runtime Environment (21.0.2+13-LTS)
Heap size: 257M, total JVM memory: 293M
nielsm5 commented 7 months ago

I'm unsure how to reproduce this, I've added the provided config, but for me, it all works as it should. I've also tested with an IteratingPipe to send many requests, they all succeed. See #6467

nielsm5 commented 7 months ago

Please try this again once all ladybug fixes have been merged.

jacodg commented 7 months ago

With 8.1.0-20240324.154823 I still see the same problem. I now also tested it under Linux which gives the same result. With a clean clone of the Frank!Runner running Frank2Example1 with only the following changes:

frank-runner$ git diff
diff --git a/examples/Frank2Example1/configurations/Example1a/Configuration.xml b/examples/Frank2Example1/configurations/Example1a/Configuration.xml
index 43f2cfb..70ff35f 100644
--- a/examples/Frank2Example1/configurations/Example1a/Configuration.xml
+++ b/examples/Frank2Example1/configurations/Example1a/Configuration.xml
@@ -7,7 +7,22 @@
                        <ApiListener name="Listener1a" uriPattern="service1a"/>
                </Receiver>
                <Pipeline>
-                       <FixedResultPipe name="HelloWorld" returnString="Hello World!"/>
-               </Pipeline>
+                       <!--FixedResultPipe name="HelloWorld" returnString="Hello World!"/-->
+<SenderPipe name="Test 1">
+       <HttpSender url="http://localhost:8080/"/>
+</SenderPipe>
+<SenderPipe name="Test 2">
+       <HttpSender url="http://localhost:8080/"/>
+</SenderPipe>
+<SenderPipe name="Test 3">
+       <HttpSender url="http://localhost:8080/"/>
+</SenderPipe>
+<SenderPipe name="Test 4">
+       <HttpSender url="http://localhost:8080/"/>
+</SenderPipe>
+<SenderPipe name="Test 5">
+       <HttpSender url="http://localhost:8080/"/>
+</SenderPipe>
+                       </Pipeline>
        </Adapter>
 </Configuration>
\ No newline at end of file
diff --git a/examples/Frank2Example1/configurations/Example1a/StageSpecifics_LOC.properties b/examples/Frank2Example1/configurations/Example1a/StageSpecifics_LOC.properties
index 2d406e5..04f59c9 100644
--- a/examples/Frank2Example1/configurations/Example1a/StageSpecifics_LOC.properties
+++ b/examples/Frank2Example1/configurations/Example1a/StageSpecifics_LOC.properties
@@ -1 +1,2 @@
-stub4testtool.configuration=true
\ No newline at end of file
+#stub4testtool.configuration=true
+stub4testtool.configuration=false
\ No newline at end of file
nielsm5 commented 7 months ago

Ah, that's because the response is never read, and thus it does not display it.