New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MessageDeliveryException thrown when using AMQP backed channel with Brixton.SR7 and Camden #523
Comments
Related to #520 |
If there would a possible for you to provide a sample project then it would be great! |
The main project is available at https://github.com/pilif42/kirona-drs-gateway . You will need to build first https://github.com/pilif42/common and also https://github.com/pilif42/actionsvc-api . Then build the main project, have a RabbitMQ installed and run. To replicate the issue, put messages on the queue Action.Field with: curl -H "Accept: application/json" -H "X-B3-TraceId: 73b62c0f90d11e01" -H "X-B3-SpanId: 73b62c0f90d11e10" http://localhost:8131/kironaTest/loadqueue/1/ai/10/ar/valid/true -v -X POST You will see that if you run with Brixton.SR6, it will work fine. With Brixton.SR7, you will get the exception. |
@pilif42 I can't currently test your sample so maybe you could help me? Could you please check out |
OK. I will do this now and come back to you asap. |
Have you managed to check it out @pilif42 ? I've only just fixed the branch (I thought it was updated already) |
I have just done a new pull. I will rebuild and test. I am having issues with my maven build as it does not seem to find the new sleuth .jars despite them being in my local repository. I will post a comment once I have managed to confirm it is fixed. |
The error I am getting is [ERROR] Non-resolvable import POM: Could not find artifact org.springframework.cloud:spring-cloud-dependencies:pom:Camden.BUILD-SNAPSHOT @ line 42, column 25 I have checked and there is no pom in my local repo for Camden.BUILD-SNAPSHOT (I built using the ./mvnw clean install -DskipTests -T 8). For Brixtion.SR6, I can see spring-cloud-dependencies-Brixton.SR6.pom. For the Camden.BUILD-SNAPSHOT, I can only see: spring-cloud-dependencies-Camden.BUILD-SNAPSHOT.pom.lastUpdated . Should I build your project differently? |
Have you set up the project like this - http://projects.spring.io/spring-cloud/ ? Check the Camden SNAPSHOT version.
|
I have now been able to build having in my pom:
Note that I have removed the And I also have:
For some reasons, it insist on me having the version specified. Unfortunately, I am still getting the error: Caused by: java.io.NotSerializableException: org.springframework.messaging.support.MessageHeaderAccessor |
Can you update the formatting cause somethings didn't manage to get pasted properly as far as I see. And ensure that you've pulled the latest changes from the branch |
I have updated my formatting. I am trimming my sample project right to the bear minimum. When it is done, I will email you the github location. |
Awesome! Thanks |
To be honest, this That was my fault do not mention GH issue there. Feel free to close in favor of that. |
Sorry it took some time but I had to complete some other work before. The first step is to clone https://github.com/pilif42/common and build it. Then clone https://github.com/pilif42/actionsvc-api and build it. Then clone https://github.com/pilif42/projectTotestSleuthDefect, build and run it. It is checked in with Brixton.SR6 so it will work. If you check the README, I have added a section on how to replicate the defect. Let me know if you encounter any problem replicating. |
this issue is there in core of Spring Framework (https://jira.spring.io/browse/SPR-15262) but this tests shows how to apply a workaround to get ridd of that problem until we bump up version of SF. related to #520 and #523 SO - http://stackoverflow.com/questions/42277170/messagedeliveryexception-thrown-when-using-amqp-backed-channel-with-brixton-sr7 fixes #520
this issue is there in core of Spring Framework (https://jira.spring.io/browse/SPR-15262) but this tests shows how to apply a workaround to get ridd of that problem until we bump up version of SF. related to #520 and #523 SO - http://stackoverflow.com/questions/42277170/messagedeliveryexception-thrown-when-using-amqp-backed-channel-with-brixton-sr7 fixes #520
I am using an AMQP backed channel with Spring Boot 1.4.4.RELEASE and spring-cloud-dependencies. Up to Brixton.SR6, everything is working fine. The only thing I change in my project is Brixton.SR6 to Brixton.SR7 (note that I tried all Camden versions as well and I experienced the same issue) and I start getting:
Full details of the stack trace can be found at http://stackoverflow.com/questions/42277170/messagedeliveryexception-thrown-when-using-amqp-backed-channel-with-brixton-sr7
My payload is a serializable object and with debug on (in both cases, ie Brixton.SR6 and Brixton.SR7, I can see: o.s.messaging.MessageHeaders : Ignoring non-serializable message headers: [currentSpan, X-Current-Span]
The message I am trying to send to Action.FieldBackup can be seen below:
My xml configuration can be found in the stackoverflow question as well.
If you need more details, I can put my full project code on github for you to have a look and replicate quickly.
The text was updated successfully, but these errors were encountered: