Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make spring-hateoas-webmvc module compatible with spring-hateoas 1.3.4

See original GitHub issue


While upgrading to spring boot 2.5.5, I’m facing the following exception:

java.util.NoSuchElementException: null
	at java.base/java.util.Arrays$
	at org.springframework.hateoas.server.mvc.WebMvcLinkBuilderFactory.lambda$linkTo$1(
	at org.springframework.hateoas.server.core.WebHandler.lambda$linkTo$0(
	at org.springframework.hateoas.server.core.WebHandler.linkTo(
	at org.springframework.hateoas.server.mvc.WebMvcLinkBuilderFactory.linkTo(
	at org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.linkTo(
	at org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.linkTo(
	at org.springframework.hateoas.server.mvc.WebMvcLinkBuilderFactory.linkTo(
	at org.springframework.hateoas.server.mvc.WebMvcLinkBuilderFactory.linkTo(
	at com.blazebit.persistence.spring.hateoas.webmvc.KeysetAwarePagedResourcesAssemblerArgumentResolver.resolveBaseUri(
	at com.blazebit.persistence.spring.hateoas.webmvc.KeysetAwarePagedResourcesAssemblerArgumentResolver.resolveArgument(

This is probably related to a change in spring-hateoas 1.3.4, I think introduced by Could you please have a look? Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

odrotbohmcommented, Sep 23, 2021

Happy to help! At first glance, it’s weird that you apparently don’t hand in parameter values for a target controller method that actually takes parameters. We could of course default to assume null for the ones missing but it feels like this would mask issues better solved on the call side?

beikovcommented, Sep 26, 2021

Hey @odrotbohm,

thanks for the quick action and nice to hear that this is fixed in 1.4. I’ll add this “workaround” 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring HATEOAS - Reference Documentation
To easily create hypermedia enriched representations, Spring HATEOAS provides a set of classes with RepresentationModel at their root.
Read more >
Upgrade to Spring HATEOAS 1.3.4 · Issue #27970 - GitHub
Spring Boot. Contribute to spring-projects/spring-boot development by creating an account on GitHub.
Read more >
Spring Boot HATEOAS - Representation Model and Assembler
In this spring hateoas tutorial, we learned : Important classes in spring hateoas module; What are representation models; How to create entity ...
Read more >
An Intro to Spring HATEOAS - Baeldung
We can use these to create the metadata and associate it to the resource representation. 4.1. Adding Hypermedia Support to a Resource.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found