[jboss-user] [JBoss AOP] - Re: .aop or .jar

Giordacchio++ do-not-reply at jboss.com
Thu Nov 9 03:45:39 EST 2006


Hi,
Yesterday I've tried to insert my Aspect into the injaboss example and it worked....but now it doesn't work with the booking example.

Any suggestion ?

I have these errors:

09:42:15,650 ERROR [STDERR] [warn] Could not find class net.sf.cglib.asm.util.TraceClassVisitor that net.sf.cglib.core.DebuggingClassWriter$1 references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.
  | 09:42:16,708 ERROR [STDERR] [error] ClassLoader has been garbage collected.. Do verbose mode if you want full stack trace.
  | 09:42:17,143 ERROR [STDERR] java.lang.IllegalStateException: ClassLoader has been garbage collected
  | 09:42:17,143 ERROR [STDERR]     at javassist.scopedpool.ScopedClassPool.getClassLoader0(ScopedClassPool.java:84)
  | 09:42:17,143 ERROR [STDERR]     at javassist.scopedpool.ScopedClassPool.getClassLoader(ScopedClassPool.java:78)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.deployment.ScopedJBossClassPool.getCorrectPoolForResource(ScopedJBossClassPool.java:195)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.deployment.ScopedJBossClassPool.getCached(ScopedJBossClassPool.java:173)
  | 09:42:17,143 ERROR [STDERR]     at javassist.ClassPool.get0(ClassPool.java:406)
  | 09:42:17,143 ERROR [STDERR]     at javassist.ClassPool.get(ClassPool.java:386)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.instrument.Instrumentor.forName(Instrumentor.java:792)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.instrument.Instrumentor.isAdvised(Instrumentor.java:186)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.instrument.Instrumentor.shouldNotTransform(Instrumentor.java:629)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:649)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.AspectManager.translate(AspectManager.java:908)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.AspectManager.transform(AspectManager.java:820)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.standalone.AOPTransformer.aspectTransform(AOPTransformer.java:88)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.aop.standalone.AOPTransformer.transform(AOPTransformer.java:75)
  | 09:42:17,143 ERROR [STDERR]     at sun.instrument.TransformerManager.transform(TransformerManager.java:122)
  | 09:42:17,143 ERROR [STDERR]     at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
  | 09:42:17,143 ERROR [STDERR]     at java.lang.ClassLoader.defineClass1(Native Method)
  | 09:42:17,143 ERROR [STDERR]     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  | 09:42:17,143 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 09:42:17,143 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 09:42:17,143 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 09:42:17,143 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 09:42:17,143 ERROR [STDERR]     at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
  | 09:42:17,143 ERROR [STDERR]     at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
  | 09:42:17,143 ERROR [STDERR]     at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:64)
  | 09:42:17,143 ERROR [STDERR]     at net.sf.cglib.proxy.MethodProxy.helper(MethodProxy.java:81)
  | 09:42:17,143 ERROR [STDERR]     at net.sf.cglib.proxy.MethodProxy.create(MethodProxy.java:46)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.seam.example.booking.Register$$EnhancerByCGLIB$$8c489cef.CGLIB$STATICHOOK1(<generated>)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.seam.example.booking.Register$$EnhancerByCGLIB$$8c489cef.<clinit>(<generated>)
  | 09:42:17,143 ERROR [STDERR]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  | 09:42:17,143 ERROR [STDERR]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  | 09:42:17,143 ERROR [STDERR]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  | 09:42:17,143 ERROR [STDERR]     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
  | 09:42:17,143 ERROR [STDERR]     at java.lang.Class.newInstance0(Class.java:350)
  | 09:42:17,143 ERROR [STDERR]     at java.lang.Class.newInstance(Class.java:303)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.seam.Component.wrap(Component.java:944)
  | 09:42:17,143 ERROR [STDERR]     at org.jboss.seam.Component.instantiateSessionBean(Component.java:912)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984435#3984435

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984435



More information about the jboss-user mailing list