-
May 25th, 2011, 03:53 PM
#1
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
-
May 26th, 2011, 01:55 AM
#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.
-
May 26th, 2011, 02:37 AM
#3
Thanks for good advice! I have found this mysleft already. But why doesn't this package in javadoc?
-
May 26th, 2011, 04:10 AM
#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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules