Skip to content
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

ApplicationContext fails to load with HAL enabled snapshot [DATAREST-210] #594

spring-projects-issues opened this issue Dec 20, 2013 · 1 comment
type: bug A general bug


Copy link

spring-projects-issues commented Dec 20, 2013

Michael Wilmes opened DATAREST-210 and commented

After upgrade to the newest HAL enabled snapshot (2013-12-20) the application context fails to load despite all dependencies present (Spring 3.2.6, Jackson 2.3.0, Spring-Hateoas-0.9.0).

java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: java.lang.NullPointerException
	at org.springframework.hateoas.config.HypermediaSupportBeanDefinitionRegistrar.registerBeanDefinitions(
	at org.springframework.context.annotation.ConfigurationClassParser.processImport(
[INFO] |  +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.3.0:compile
[INFO] |  \-
[INFO] |     +- cglib:cglib-nodep:jar:2.2.2:runtime
[INFO] |     +- org.springframework.hateoas:spring-hateoas:jar:0.9.0.BUILD-SNAPSHOT:compile
[INFO] |     |  \- org.objenesis:objenesis:jar:1.3:compile
[INFO] |     +- org.springframework.plugin:spring-plugin-core:jar:0.8.0.RELEASE:compile
[INFO] |     \- org.atteo:evo-inflector:jar:1.0.1:compile

I do inherit from RepositoryRestMvcConfiguration. It is unclear on whether this contributes to the issue.

public class BcRepositoryRestMvcConfiguration extends RepositoryRestMvcConfiguration {

        public ResourceProcessor<RepositoryLinksResource> rootLinksResourceProcessor() {

Reference URL: spring-projects/spring-hateoas#130

Issue Links:

  • SPR-11251 @Enable registrars invoked with subclass for annotation placed on superclass (3.2.x)

Referenced from: commits faaad3d, 110af70

Copy link

spring-projects-issues commented Dec 20, 2013

Oliver Drotbohm commented

I just pushed a fix with a temporary workaround until the issue in Spring Framework is fixed. We now use a delegate configuration class to prevent the annotation evaluated against the wrong class in inheritance scenarios. So this should work fine against Spring 3.2.x and 4.0 now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
type: bug A general bug
None yet

No branches or pull requests

2 participants