Announcement Announcement Module
Collapse
No announcement yet.
Repository interface not found - spring-data-commons 1.1.0.M1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Repository interface not found - spring-data-commons 1.1.0.M1

    Hi,

    I have an interface that extends CrudRepository. I was using 1.1.0.BUILD-SNAPSHOT of spring-data and in the last day or two started getting a NullPointerException in RepositoryInterfaceAwareBeanPostProcessor:redictBeanType where it puts a null value into the cache (line 78).

    In the debugger I see that getClassForPropertyValue fails to load my Repository interface at the following line.

    Code:
    return ClassUtils.resolveClassName(className, RepositoryInterfaceAwareBeanPostProcessor.class.getClassLoader());
    This also fails in 1.1.0.M1. It works if I fix my dependencies to use

    Code:
    <spring.data.commons.version>1.2.0.BUILD-20110830.083157-49</spring.data.commons.version>
    <spring.data.version>1.1.0.BUILD-20110830.083239-39</spring.data.version>
    so it appears to have changed very recently.

    Regards,
    Jack

  • #2
    What module are you refering to with the spring.data.version property? JPA, probably? Does it work with the latest released 1.1.0.M1 milestone? CocurrentHashMap apparently doesn't support null as value so we have to fix this. Nevertheless I don't quite get why your repository interface is not being found. Are you using OSGi?

    Comment

    Working...
    X