Giter Club home page Giter Club logo

Comments (9)

phax avatar phax commented on June 4, 2024

Hi Pavel, do you eventually have the callstack for me?

from phase4.

pavelrotek avatar pavelrotek commented on June 4, 2024

Hi Peter, sure. It is there since fddf58d

Caused by: java.lang.IllegalStateException: This should only be called for repeatable entities at com.helger.phase4.http.BasicHttpPoster._createDumpingHttpEntity(BasicHttpPoster.java:257) ~[phase4-lib-0.12.3-SNAPSHOT.jar:0.12.3-SNAPSHOT] at com.helger.phase4.http.BasicHttpPoster.sendGenericMessageWithRetries(BasicHttpPoster.java:369) ~[phase4-lib-0.12.3-SNAPSHOT.jar:0.12.3-SNAPSHOT] at com.helger.phase4.client.AbstractAS4Client.sendMessageWithRetries(AbstractAS4Client.java:485) ~[phase4-lib-0.12.3-SNAPSHOT.jar:0.12.3-SNAPSHOT] at com.helger.phase4.sender.AS4BidirectionalClientHelper.sendAS4UserMessageAndReceiveAS4SignalMessage(AS4BidirectionalClientHelper.java:161) ~[phase4-lib-0.12.3-SNAPSHOT.jar:0.12.3-SNAPSHOT] at com.cgi.as4.gateway.ENTSOGMessageBuilder.sendMessage(ENTSOGMessageBuilder.java:114) ~[classes/:na] at com.cgi.as4.gateway.ENTSOGMessageSender.sendMessage(ENTSOGMessageSender.java:65) ~[classes/:na] at com.cgi.as4.gateway.rest.internal.SendController.lambda$0(SendController.java:40) ~[classes/:na] at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:118) ~[reactor-core-3.3.3.RELEASE.jar:3.3.3.RELEASE] at reactor.core.publisher.FluxSubscribeOnValue$ScheduledScalar.run(FluxSubscribeOnValue.java:178) ~[reactor-core-3.3.3.RELEASE.jar:3.3.3.RELEASE] at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) ~[reactor-core-3.3.3.RELEASE.jar:3.3.3.RELEASE] at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) ~[reactor-core-3.3.3.RELEASE.jar:3.3.3.RELEASE] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]

from phase4.

phax avatar phax commented on June 4, 2024

Hi Pavel,
Okay key aspects to this problem are:

  • retry count is 0
  • you are trying to send a MIME formatted message
  • You have dumping enabled

I assume your ENTSOG builder derives from AbstractAS4UserMessageBuilderMIMEPayload?

=> I made a change that ensures the supplied entity is repeatable if retries are disabled but dumping is enabled. Thanks for pointing it out

from phase4.

phax avatar phax commented on June 4, 2024

Wait for https://travis-ci.com/github/phax/phase4/jobs/428521352 to finish before pulling.
BR, Philip

from phase4.

phax avatar phax commented on June 4, 2024

New SNAPSHOT is available (mvn -U ...)

from phase4.

pavelrotek avatar pavelrotek commented on June 4, 2024

Great.

I assume your ENTSOG builder derives from AbstractAS4UserMessageBuilderMIMEPayload?

Accoding to your question, the ENTSOG builder derives directly from AbstractAS4UserMessageBuilder not from AbstractAS4UserMessageBuilderMIMEPayload, because it is not possible to set custom usermessage attributes due to final keyword in

protected final void applyToUserMessage

ENTSOG needs to set ConversationId to "" in user message... Maybe make applyToUserMessage non final would be better?

from phase4.

phax avatar phax commented on June 4, 2024

Well with conversationID("") you can set the conversation ID to an empty string.
Nevertheless I made the method non-final.
hth

from phase4.

phax avatar phax commented on June 4, 2024

So Pavel does it work as expected? Can I close this issue?

from phase4.

pavelrotek avatar pavelrotek commented on June 4, 2024

It works now. Thank you very much.

from phase4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.