[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?

mbroons do-not-reply at jboss.com
Thu Jul 12 05:47:48 EDT 2007


Sorry i did not describe correctly what i did.
No original class is packaged in the final jar...

The original class is:

ClientSession.class (non instrumented)

which becomes after aopc compilation:

ClientSession.class  (instrumented)
ClientSession$sessionId_Get.class
ClientSession$sessionId_Set.class

Only instrumented and generated classes are packaged in the DemoService.jar. Here is the full jar content

D:\ProjetJ\CounterService>jar tvf DemoService.jar

META-INF/
META-INF/MANIFEST.MF
cachemgnt/
cachemgnt/CacheEngine.class
ejbservice/
ejbservice/DemoService.class
ejbservice/DemoServiceMgnt.class
interfaces/
interfaces/DemoServiceRemote.class
pojo/
pojo/ClientSession$sessionId_Get.class
pojo/ClientSession$sessionId_Set.class
pojo/ClientSession.class

Another exception is also raised when i stop the Jboss instance.
It may help to understand what i did wrong
Here it is:

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: javassist.NotFoundException: pojo.ClientSession
        at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:979)
        at org.jboss.aop.ClassAdvisor.removeAdviceBindings(ClassAdvisor.java:421
        at org.jboss.aop.AspectManager.removeBindings(AspectManager.java:1355)
        at org.jboss.aop.AspectXmlLoader.bulkUndeploy(AspectXmlLoader.java:1103)
        at org.jboss.aop.AspectXmlLoader.undeployXML(AspectXmlLoader.java:1094)
        at org.jboss.aop.AspectXmlLoader.undeploy(AspectXmlLoader.java:1216)
        at org.jboss.aop.AspectXmlLoader.undeployXML(AspectXmlLoader.java:1251)
        at org.jboss.aop.deployment.AspectDeployer.stop(AspectDeployer.java:241)
        at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:667)
        at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:659)
        at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:638)
        at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:516)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:1058)
        at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:1033)
        at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:996)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: javassist.NotFoundException: pojo.ClientSession
        at org.jboss.aop.pointcut.MethodMatcher.visit(MethodMatcher.java:130)
        at org.jboss.aop.pointcut.ast.ASTAll.jjtAccept(ASTAll.java:41)
        at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:88)
        at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)
        at org.jboss.aop.pointcut.PointcutExpression.matchesExecution(PointcutExpression.java:124)
        at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:628)
        at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)
        at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:974)

        ... 26 more
Caused by: java.lang.RuntimeException: javassist.NotFoundException: pojo.ClientSession
        at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:392)
        at org.jboss.aop.pointcut.MethodMatcher.visit(MethodMatcher.java:126)
        ... 33 more
Caused by: javassist.NotFoundException: pojo.ClientSession
        at javassist.ClassPool.get(ClassPool.java:417)
        at org.jboss.aop.util.ReflectToJavassist.classToJavassist(ReflectToJavassist.java:49)
        at org.jboss.aop.util.ReflectToJavassist.methodToJavassist(ReflectToJavassist.java:116)
        at org.jboss.aop.annotation.PortableAnnotationElement.isAnyAnnotationPresent(PortableAnnotationElement.java:120)
        at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:388)
        ... 34 more



D:\ProjetJ\CounterService>jar tvf DemoService.jar

0 Mon Jun 25 09:41:52 CEST 2007 META-INF/
106 Mon Jun 25 09:41:50 CEST 2007 META-INF/MANIFEST.MF
0 Mon Jun 25 09:09:40 CEST 2007 cachemgnt/
2218 Mon Jun 25 09:09:40 CEST 2007 cachemgnt/CacheEngine.class
0 Mon Jun 25 09:09:40 CEST 2007 ejbservice/
3897 Mon Jun 25 09:09:56 CEST 2007 ejbservice/DemoService.class
194 Mon Jun 25 09:09:40 CEST 2007 ejbservice/DemoServiceMgnt.class
0 Mon Jun 25 09:09:40 CEST 2007 interfaces/
309 Mon Jun 25 09:09:40 CEST 2007 interfaces/DemoServiceRemote.class
0 Mon Jun 25 09:11:50 CEST 2007 pojo/
1738 Mon Jun 25 09:09:56 CEST 2007 pojo/ClientSession$sessionId_Get.class
2011 Mon Jun 25 09:09:56 CEST 2007 pojo/ClientSession$sessionId_Set.class
3786 Mon Jun 25 09:09:56 CEST 2007 pojo/ClientSession.class





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

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



More information about the jboss-user mailing list