Results 1 to 4 of 4

Thread: What is org.springframework.asm.ClassVisitor class?

  1. #1
    Join Date
    May 2011
    Posts
    2

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    May 2011
    Posts
    2

    Default

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

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •