Git Product home page Git Product logo

Comments (5)

acogoluegnes avatar acogoluegnes commented on July 30, 2024

@mheidt can you provide a way to reproduce? It would help testing the workaround.

from hop.

mheidt avatar mheidt commented on July 30, 2024

Not really. I didn't setup the rabbit and its shovel. I am just the developer who is using it.
But I have a fix for the issue, although I think, that the server should return JSON standard compliant responses.
Your suggestion of a custom deserializer is a little bit too much, imho.
Especially because you have to take care of all fields. And if you change ChannelDetails later, you have to take care of the changes in the deserializer as well.
I fixed it like follows:

@JsonProperty("peer_port")
 private String peerPortOrUndefined;

 private Integer peerPort;

...
public String getPeerPortOrUndefined() { return peerPortOrUndefined; }

 public void setPeerPortOrUndefined(String peerPortOrUndefined) { this.peerPortOrUndefined = peerPortOrUndefined; }

 public Integer getPeerPort() {
   if (this.peerPort == null && peerPortOrUndefined != null){
     try {
       this.peerPort = Integer.valueOf(peerPortOrUndefined);
     } catch (Exception e){
       //Ignore
     }
   }
   return this.peerPort;
 }

 public void setPeerPort(Integer peerPort) {
   this.peerPort = peerPort;
 }

and calling getPeerPort() in toString....

from hop.

acogoluegnes avatar acogoluegnes commented on July 30, 2024

@mheidt I pushed a fix, can you try the 3.12.0 snapshot? https://oss.sonatype.org/content/repositories/snapshots/com/rabbitmq/http-client/3.12.0-SNAPSHOT/

from hop.

mheidt avatar mheidt commented on July 30, 2024

Yes, I can confirm that it works.
Thanks a lot.
When are you planning to release 3.12.0?

from hop.

acogoluegnes avatar acogoluegnes commented on July 30, 2024

@mheidt Thanks for testing. I released 3.12.0.RC1, the instructions are up-to-date. GA should follow in the next few days if no problem is found.

from hop.

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.