Skip to content

Upgrade to Spring Boot 2.0.4#14

Open
SnuK87 wants to merge 4 commits intoweb3j:masterfrom
SnuK87:master
Open

Upgrade to Spring Boot 2.0.4#14
SnuK87 wants to merge 4 commits intoweb3j:masterfrom
SnuK87:master

Conversation

@SnuK87
Copy link
Copy Markdown

@SnuK87 SnuK87 commented Aug 14, 2018

I replaced the HealthIndicator by a Spring Boot 2.x compliant HealthEndpointWebExtension because of some major changes in the actuator library. Due to the lack of backward compatibility I bumped the version to 2.0.0 instead of 1.7.0.

Maybe it also makes sense to use the newest Web3j version?

SnuK87 added 2 commits August 15, 2018 04:21
health endpoint web extension, add actuator-autoconfigration dependency,
bump version to 2.0
@forestwanglin
Copy link
Copy Markdown

When will release the this version?

@JohnChangUK
Copy link
Copy Markdown

JohnChangUK commented Nov 7, 2018

Great work, just a couple of changes which have been mentioned.

Web3jHealthEndpointWebExtension healthEndpoint = this.context.getBean(Web3jHealthEndpointWebExtension.class);
Health health = healthEndpoint.health();
assertThat(health.getStatus(), equalTo(Status.DOWN));
assertThat(health.getDetails().get("error").toString(),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fails, the error being returned is "org.web3j.exceptions.MessageDecodingException: Value must be in format 0x[1-9]+[0-9]* or 0x0".

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me all tests are green. Could you post the full stacktrace of the exception?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests seem to work for me, could it be a conflict in your env?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests work fine, I had an instance of Test-RPC running on port 8545.

Copy link
Copy Markdown

@JohnChangUK JohnChangUK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#14

JohnChangUK and others added 2 commits November 8, 2018 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants