JBoss Community

PojoCache

created by Sagar N in JBoss Cache - View the full discussion

Hi ,

I am new to PojoCache. Studied the PojoCache User documentation. I am trying to add a class to PojoCache and has references to other data classes. So I annotated the main class and referencing classes with @org.jboss.cache.pojo.annotation.Replicable. Used the following ant target to precompile the classes so as to do the instrumentation.

 

<target name="aopc"  description="Precompile aop class">

<taskdef name="aopc" classname="org.jboss.aop.ant.AopC"

   classpathref="aop.classpath"/>

  <aopc compilerclasspathref="compile.classpath" verbose="true">

   <classpath  refid="pojo.classes" />

   <src path="${app.dir.class}"/>

   <aoppath path="./pojoLib/pojocache-aop.xml"/>

  </aopc>

</target>

 

where pojo.classes refer to set of classes with @replicable annotation. When I run the ant task I am getting the following exception.

[aopc] [info] Total length of filenames to be compiled is greater than 1000, listing files in --SOURCEPATH: C:\DOCUME~1\SAGAR~1.NAL\LOCALS~1\Temp\src8079062473957626159.tmp

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\TokenPool$TokenPoolAdvisor.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\TokenPool$TokenPoolInstanceAdvisor.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\security\ConfAPISignature.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$KeypairDataAdvisor.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_w_applID.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_updateDate.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_w_updateDate.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_w_versionKey.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$JoinPoint_r_creationTimestamp.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\TokenPool$JoinPoint_w_pool.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$KeypairDataAdvisor.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$KeypairDataInstanceAdvisor.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$JoinPoint_r_originAddress.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\TokenPool$TokenPoolAdvisor.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_versionNumber.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\BlockedIPAddressProc.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_applVersionID.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_updLoginID.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_w_versionNumber.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\ValidateUserDAO.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\webservice\ValidateExternalRequestResponse.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$SessionTokenAdvisor.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$SessionTokenInstanceAdvisor.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_effDate.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$JoinPoint_w_sessionTimestamp.class

     [aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\webservice\ValidateExternalRequestRequest.class

     [aopc] [warn] Could not find class org.jboss.ha.cachemanager.CacheManager that com.verizon.conferencing.confapi.util.EntitlementPojoCache references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

     [aopc] javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager

     [aopc]  at javassist.ClassPool.get(ClassPool.java:436)

     [aopc]  at org.jboss.aop.instrument.Instrumentor.convertReferences(Instrumentor.java:648)

     [aopc]  at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:763)

     [aopc]  at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)

     [aopc]  at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)

     [aopc]  at org.jboss.aop.AspectManager.translate(AspectManager.java:1051)

     [aopc]  at org.jboss.aop.AspectManager.transform(AspectManager.java:993)

     [aopc]  at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)

     [aopc]  at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)

     [aopc]  at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)

     [aopc] java.lang.RuntimeException: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:113)

     [aopc]  at org.jboss.aop.pointcut.ast.ASTField.jjtAccept(ASTField.java:44)

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:157)

     [aopc]  at org.jboss.aop.pointcut.ast.ASTFieldExecution.jjtAccept(ASTFieldExecution.java:37)

     [aopc]  at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:89)

     [aopc]  at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)

     [aopc]  at org.jboss.aop.pointcut.PointcutExpression.matchesGet(PointcutExpression.java:212)

     [aopc]  at org.jboss.aop.instrument.JoinpointClassifier$1.matches(JoinpointClassifier.java:80)

     [aopc]  at org.jboss.aop.instrument.JoinpointSimpleClassifier.classifyJoinpoint(JoinpointSimpleClassifier.java:63)

     [aopc]  at org.jboss.aop.instrument.JoinpointClassifier.classifyFieldGet(JoinpointClassifier.java:197)

     [aopc]  at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:91)

     [aopc]  at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:778)

     [aopc]  at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)

     [aopc]  at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)

     [aopc]  at org.jboss.aop.AspectManager.translate(AspectManager.java:1051)

     [aopc]  at org.jboss.aop.AspectManager.transform(AspectManager.java:993)

     [aopc]  at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)

     [aopc]  at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)

     [aopc]  at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)

     [aopc] Caused by: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager

     [aopc]  at javassist.ClassPool.get(ClassPool.java:436)

     [aopc]  at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:591)

     [aopc]  at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:541)

     [aopc]  at javassist.CtField.getType(CtField.java:306)

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:102)

     [aopc]  ... 18 more

     [aopc] java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache

     [aopc]  at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:829)

     [aopc]  at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)

     [aopc]  at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)

     [aopc]  at org.jboss.aop.AspectManager.translate(AspectManager.java:1051)

     [aopc]  at org.jboss.aop.AspectManager.transform(AspectManager.java:993)

     [aopc]  at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)

     [aopc]  at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)

     [aopc]  at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)

     [aopc] Caused by: java.lang.RuntimeException: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:113)

     [aopc]  at org.jboss.aop.pointcut.ast.ASTField.jjtAccept(ASTField.java:44)

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:157)

     [aopc]  at org.jboss.aop.pointcut.ast.ASTFieldExecution.jjtAccept(ASTFieldExecution.java:37)

     [aopc]  at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:89)

     [aopc]  at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)

     [aopc]  at org.jboss.aop.pointcut.PointcutExpression.matchesGet(PointcutExpression.java:212)

     [aopc]  at org.jboss.aop.instrument.JoinpointClassifier$1.matches(JoinpointClassifier.java:80)

     [aopc]  at org.jboss.aop.instrument.JoinpointSimpleClassifier.classifyJoinpoint(JoinpointSimpleClassifier.java:63)

     [aopc]  at org.jboss.aop.instrument.JoinpointClassifier.classifyFieldGet(JoinpointClassifier.java:197)

     [aopc]  at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:91)

     [aopc]  at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:778)

     [aopc]  ... 7 more

     [aopc] Caused by: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager

     [aopc]  at javassist.ClassPool.get(ClassPool.java:436)

     [aopc]  at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:591)

     [aopc]  at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:541)

     [aopc]  at javassist.CtField.getType(CtField.java:306)

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:102)

     [aopc]  ... 18 more

     [aopc] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache

     [aopc]  at org.jboss.aop.AspectManager.translate(AspectManager.java:1062)

     [aopc]  at org.jboss.aop.AspectManager.transform(AspectManager.java:993)

     [aopc]  at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)

     [aopc]  at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)

     [aopc]  at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)

     [aopc] Caused by: java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache

     [aopc]  at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:148)

     [aopc]  at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)

     [aopc]  at org.jboss.aop.AspectManager.translate(AspectManager.java:1051)

     [aopc]  ... 4 more

     [aopc] Caused by: java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache

     [aopc]  at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:829)

     [aopc]  at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)

     [aopc]  ... 6 more

     [aopc] Caused by: java.lang.RuntimeException: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:113)

     [aopc]  at org.jboss.aop.pointcut.ast.ASTField.jjtAccept(ASTField.java:44)

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:157)

     [aopc]  at org.jboss.aop.pointcut.ast.ASTFieldExecution.jjtAccept(ASTFieldExecution.java:37)

     [aopc]  at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:89)

     [aopc]  at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)

     [aopc]  at org.jboss.aop.pointcut.PointcutExpression.matchesGet(PointcutExpression.java:212)

     [aopc]  at org.jboss.aop.instrument.JoinpointClassifier$1.matches(JoinpointClassifier.java:80)

     [aopc]  at org.jboss.aop.instrument.JoinpointSimpleClassifier.classifyJoinpoint(JoinpointSimpleClassifier.java:63)

     [aopc]  at org.jboss.aop.instrument.JoinpointClassifier.classifyFieldGet(JoinpointClassifier.java:197)

     [aopc]  at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:91)

     [aopc]  at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:778)

     [aopc]  ... 7 more

     [aopc] Caused by: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager

     [aopc]  at javassist.ClassPool.get(ClassPool.java:436)

     [aopc]  at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:591)

     [aopc]  at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:541)

     [aopc]  at javassist.CtField.getType(CtField.java:306)

     [aopc]  at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:102)

     [aopc]  ... 18 more

     [aopc] [ERROR] java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache

 

I have the required Jar files in the classpath.  Any help will be greatly appreciated.

 

Thanks,

Sagar

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community