Announcement Announcement Module
Collapse
No announcement yet.
Debug stacktraces for Spring scanning SD Neo4J annotations @NodeEntity Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Debug stacktraces for Spring scanning SD Neo4J annotations @NodeEntity

    So in one of our web applications which is not using Spring Data Neo4j, but has a jar file in its classpath that has a few SDN annotated Entities, an exception is thrown with a warning. It doesn't stop things from working, just a little bit annoying. And it really isn't because of SDN as more Spring Core. But wanted to notate it here

    2013-04-25 14:54:03,112 [Thread-10] DEBUG org.springframework.context.annotation.ClassPathBe anDefinitionScanner - Identified candidate component class: URL [jar:file:/Users/bytor99999/Documents/PerfectWorldProgramming/Z4/Z4Projects/hdpoker/auth-server/target/auth-server-0.1.0/WEB-INF/lib/hdpoker-core-0.1.0.jar!/com/hdpoker/account/security/shiro/session/HDPokerRedisUserStorage.class]
    2013-04-25 14:54:03,129 [Thread-10] DEBUG org.springframework.context.annotation.ClassPathBe anDefinitionScanner - Identified candidate component class: URL [jar:file:/Users/bytor99999/Documents/PerfectWorldProgramming/Z4/Z4Projects/hdpoker/auth-server/target/auth-server-0.1.0/WEB-INF/lib/hdpoker-core-0.1.0.jar!/com/hdpoker/account/service/AccountServiceImpl.class]
    2013-04-25 14:54:03,140 [Thread-10] DEBUG org.springframework.core.type.classreading.Annotat ionAttributesReadingVisitor - Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
    java.lang.ClassNotFoundException: org.springframework.data.neo4j.annotation.NodeEnti ty
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1678)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1523)
    at org.springframework.core.type.classreading.Recursi veAnnotationAttributesVisitor.visitEnd(AnnotationA ttributesReadingVisitor.java:165)
    at org.springframework.asm.ClassReader.a(Unknown Source)
    at org.springframework.asm.ClassReader.accept(Unknown Source)
    at org.springframework.asm.ClassReader.accept(Unknown Source)
    ((more not shown))

    So if you have a number of annotated entities, you get one of these longer stack traces for each one. Now our logging is set to DEBUG and if not at that level you won't see it, but still.

    Thanks

    Mark
Working...
X