Comments (5)
@mheidt can you provide a way to reproduce? It would help testing the workaround.
from hop.
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.
@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.
Yes, I can confirm that it works.
Thanks a lot.
When are you planning to release 3.12.0?
from hop.
@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)
- Make channel details deserialization null-proof
- Bump dependencies
- Require at least Java 11 HOT 2
- Use Java 11 HttpClient for blocking IO client HOT 1
- Deprecate usage of RestTemplate HOT 1
- Bump dependencies
- Provide more information in case of error HOT 7
- Remove Groovy from runtime dependencies
- Bump dependencies
- Unable to configure TLS HOT 1
- Make JdkHttpClientHttpLayer public
- Make JdkHttpClientHttpLayer.Configuration#create() public
- Bump dependencies
- Add Getter for ExchangeInfo dto to access ExchangeMessageStats HOT 3
- Bump dependencies
- Bump dependencies
- createVhost(name) fails on some versions due to serialization error HOT 6
- Bump dependencies
- PUT /api/global-parameters/{name} HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hop.