Announcement Announcement Module
No announcement yet.
What is org.springframework.asm.ClassVisitor class? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is org.springframework.asm.ClassVisitor class?


    I am getting an exception which is concerning a class ClassVisitor from package org.springframework.asm. But no any spring version contains this class or package. What can this mean? And what is this class?

    I am using


    jars in in Eclipse Helios project of type "Java Project" (no spring wizards were used).

    Were these jars hacked to inject reference to this ghost class?

    Stack trace below:

    Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor
    at hableApplicationContext.customizeBeanFactory(Abstr
    at hableApplicationContext.refreshBeanFactory(Abstrac
    at ationContext.obtainFreshBeanFactory(AbstractApplic
    at ationContext.refresh(AbstractApplicationContext.ja va:397)
    at plicationContext.<init>(ClassPathXmlApplicationCon
    at plicationContext.<init>(ClassPathXmlApplicationCon
    at com.scisbo.programw.wrapper.Runner.main(Runner.jav a:12)
    Caused by: java.lang.ClassNotFoundException: org.springframework.asm.ClassVisitor
    at$ 202)
    at Method)
    at ava:190)
    at java.lang.ClassLoader.loadClass( 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche
    at java.lang.ClassLoader.loadClass( 48)

    ... 7 more

  • #2
    Please use [ code][/code ] tags when posting code/stacktraces...

    The class is in the spring-asm jar file... I suggest using maven, gradle, ant/ivy to manage your dependencies that way you don't have to hunt for jars yourself.


    • #3
      Thanks for good advice! I have found this mysleft already. But why doesn't this package in javadoc?


      • #4
        Because there is no javadoc. If I'm not mistaken this class is generated (the whole package actually) at compile/build time of the spring framework. You will also find no trace of sourcecode for this class. Source code is needed to generate javadoc, hence no sources no javadoc.