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

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

    Hi!

    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

    org.springframework.beans-3.0.5.RELEASE.jar
    org.springframework.context-3.0.5.RELEASE.jar
    org.springframework.core-3.0.5.RELEASE.jar

    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 org.springframework.context.support.AbstractRefres hableApplicationContext.customizeBeanFactory(Abstr actRefreshableApplicationContext.java:218)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:129)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:467)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:397)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:83)
    at com.scisbo.programw.wrapper.Runner.main(Runner.jav a:12)
    Caused by: java.lang.ClassNotFoundException: org.springframework.asm.ClassVisitor
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 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.

    Comment


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

      Comment


      • #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.

        Comment

        Working...
        X