-
1. Re: Pojo attach() failure
yoojeon Apr 7, 2009 4:47 PM (in response to yoojeon)After I changed the setting from the load-time instrumentation to the Compile instrumentation I do not use the javaagent anymore.
I got a different error("Failure to marshal argument").
I do not use the javaagent anymore.
It happens when an attach() is called.
Does anyone know why I get this error?
I copied the output.
Thanks.
===========================================================================
INFO: JBoss Cache version: JBossCache 'Naga' 3.0.0.GA
Apr 7, 2009 4:19:42 PM org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler beforeCompletion
WARNING: Caught exception, will now set transaction to roll back
org.jboss.cache.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
at org.jboss.cache.util.concurrent.WithinThreadExecutor.submit(WithinThreadExecutor.java:114)
at org.jboss.cache.marshall.CommandAwareRpcDispatcher.invokeRemoteCommands(CommandAwareRpcDispatcher.java:189)
at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:458)
at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:432)
at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:437)
at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:161)
at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:135)
at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:107)
at org.jboss.cache.interceptors.ReplicationInterceptor.runPreparePhase(ReplicationInterceptor.java:192)
at org.jboss.cache.interceptors.ReplicationInterceptor.visitPrepareCommand(ReplicationInterceptor.java:72)
at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:68)
at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at org.jboss.cache.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:50)
at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:68)
at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:638)
at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1041)
at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:81)
at weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1217)
at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1195)
at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:118)
at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1302)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2114)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:263)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:230)
at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:283)
at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:277)
at org.jboss.cache.pojo.impl.PojoCacheImpl.endTransaction(PojoCacheImpl.java:152)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:116)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:88)
============================================================= -
2. Re: Pojo attach() failure
prasadbhvn Nov 24, 2009 7:45 AM (in response to yoojeon)Hey Iam having the Issue with pojo attach() failure.
I am using jbosscache-pojo-3.0.0.GA ,jboss-4.2.2.GA and jboss-aop_1.5.6.GA.
I follow the all instructions specified in the user-guide.
I used Compile-time loading. Any my pojo's are aspectized.
But still iam getting the following error?
Any Help?
[com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController@18ecde]: org.jboss.cache.pojo.PojoCacheException: attach failed /__JBossInternal__/person/_ID_/5c4o15-ht263y-g2ejftx2-1-g2ejhuai-6
16:14:22,692 INFO [STDOUT] 2009-11-24 16:14:22,692 DEBUG [ResponseStatusExceptionResolver] (http-127.0.0.1-8080-1) Resolving exception from handler [com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController@18ecde]: org.jboss.cache.pojo.PojoCacheException: attach failed /__JBossInternal__/person/_ID_/5c4o15-ht263y-g2ejftx2-1-g2ejhuai-6
16:14:22,692 INFO [STDOUT] 2009-11-24 16:14:22,692 DEBUG [DefaultHandlerExceptionResolver] (http-127.0.0.1-8080-1) Resolving exception from handler [com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController@18ecde]: org.jboss.cache.pojo.PojoCacheException: attach failed /__JBossInternal__/person/_ID_/5c4o15-ht263y-g2ejftx2-1-g2ejhuai-6
16:14:22,692 INFO [STDOUT] 2009-11-24 16:14:22,692 DEBUG [DispatcherServlet] (http-127.0.0.1-8080-1) Could not complete request
org.jboss.cache.pojo.PojoCacheException: attach failed /__JBossInternal__/person/_ID_/5c4o15-ht263y-g2ejftx2-1-g2ejhuai-6
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:111)
at org.jboss.cache.pojo.impl.AdvisedPojoHandler.put(AdvisedPojoHandler.java:187)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObject(PojoCacheDelegate.java:138)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:102)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:88)
at com.jbent.peoplecentral.jbosscache.PojoCacheProgramaticRegistration.putObjectIntoCache(PojoCacheProgramaticRegistration.java:69)
at com.jbent.peoplecentral.springaop.aspect.JBossPojoCacheImplAspect.doBasicProfiling(JBossPojoCacheImplAspect.java:39)
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:597)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:622)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:611)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy68.loadPerson(Unknown Source)
at com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController.getloadPerson(TestJbossPojoCacheController.java:28)
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:597)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:631)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:149)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:363)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:351)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:766)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:712)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:636)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:545)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoSuchMethodError: org.jboss.aop.proxy.ClassProxyFactory.newInstance(Ljava/lang/Class;[Lorg/jboss/aop/proxy/ProxyMixin;Z)Lorg/jboss/aop/proxy/ClassProxy;
at org.jboss.cache.pojo.collection.CollectionInterceptorUtil.createProxy(CollectionInterceptorUtil.java:50)
at org.jboss.cache.pojo.collection.CollectionInterceptorUtil.createListProxy(CollectionInterceptorUtil.java:65)
at org.jboss.cache.pojo.impl.CollectionClassHandler.put(CollectionClassHandler.java:157)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObject(PojoCacheDelegate.java:138)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:102)
... 52 more
16:14:22,708 ERROR [[Spring MVC Dispatcher Servlet]] Servlet.service() for servlet Spring MVC Dispatcher Servlet threw exception
java.lang.NoSuchMethodError: org.jboss.aop.proxy.ClassProxyFactory.newInstance(Ljava/lang/Class;[Lorg/jboss/aop/proxy/ProxyMixin;Z)Lorg/jboss/aop/proxy/ClassProxy;
at org.jboss.cache.pojo.collection.CollectionInterceptorUtil.createProxy(CollectionInterceptorUtil.java:50)
at org.jboss.cache.pojo.collection.CollectionInterceptorUtil.createListProxy(CollectionInterceptorUtil.java:65)
at org.jboss.cache.pojo.impl.CollectionClassHandler.put(CollectionClassHandler.java:157)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObject(PojoCacheDelegate.java:138)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:102)
at org.jboss.cache.pojo.impl.AdvisedPojoHandler.put(AdvisedPojoHandler.java:187)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObject(PojoCacheDelegate.java:138)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:102)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:88)
at com.jbent.peoplecentral.jbosscache.PojoCacheProgramaticRegistration.putObjectIntoCache(PojoCacheProgramaticRegistration.java:69)
at com.jbent.peoplecentral.springaop.aspect.JBossPojoCacheImplAspect.doBasicProfiling(JBossPojoCacheImplAspect.java:39)
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:597)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:622)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:611)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy68.loadPerson(Unknown Source)
at com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController.getloadPerson(TestJbossPojoCacheController.java:28)
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:597)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:631)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:149)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:363)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:351)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:766)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:712)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:636)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:545)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619) -
3. Re: Pojo attach() failure
prasadbhvn Nov 24, 2009 8:53 AM (in response to yoojeon)"prasadbhvn" wrote:
Hey Iam having the Issue with pojo attach() failure.
I am using jbosscache-pojo-3.0.0.GA ,jboss-4.2.2.GA and jboss-aop_1.5.6.GA.
I follow the all instructions specified in the user-guide.
I used Compile-time loading. Any my pojo's are aspectized.
But still iam getting the following error?
Any Help?
[com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController@18ecd e]: org.jboss.cache.pojo.PojoCacheException: attach failed /__JBossInternal__/person/_ID_/5c4o15-ht263y-g2ejftx2-1-g2ejhuai-6
16:14:22,692 INFO [STDOUT] 2009-11-24 16:14:22,692 DEBUG [ResponseStatusExceptionResolver] (http-127.0.0.1-8080-1) Resolving exception from handler [com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController@18ecde]: org.jboss.cache.pojo.PojoCacheException: attach failed /__JBossInternal__/person/_ID_/5c4o15-ht263y-g2ejftx2-1-g2ejhuai-6
16:14:22,692 INFO [STDOUT] 2009-11-24 16:14:22,692 DEBUG [DefaultHandlerExceptionResolver] (http-127.0.0.1-8080-1) Resolving exception from handler [com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController@18ecde]: org.jboss.cache.pojo.PojoCacheException: attach failed /__JBossInternal__/person/_ID_/5c4o15-ht263y-g2ejftx2-1-g2ejhuai-6
16:14:22,692 INFO [STDOUT] 2009-11-24 16:14:22,692 DEBUG [DispatcherServlet] (http-127.0.0.1-8080-1) Could not complete request
org.jboss.cache.pojo.PojoCacheException: attach failed /__JBossInternal__/person/_ID_/5c4o15-ht263y-g2ejftx2-1-g2ejhuai-6
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:111)
at org.jboss.cache.pojo.impl.AdvisedPojoHandler.put(AdvisedPojoHandler.java:187)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObject(PojoCacheDelegate.java:138)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:102)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:88)
at com.jbent.peoplecentral.jbosscache.PojoCacheProgramaticRegistration.putObjectIntoCache(PojoCacheProgramaticRegistration.java:69)
at com.jbent.peoplecentral.springaop.aspect.JBossPojoCacheImplAspect.doBasicProfiling(JBossPojoCacheImplAspect.java:39)
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:597)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:622)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:611)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy68.loadPerson(Unknown Source)
at com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController.getloadPerson(TestJbossPojoCacheController.java:28)
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:597)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:631)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:149)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:363)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:351)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:766)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:712)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:636)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:545)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoSuchMethodError: org.jboss.aop.proxy.ClassProxyFactory.newInstance(Ljava/lang/Class;[Lorg/jboss/aop/proxy/ProxyMixin;Z)Lorg/jboss/aop/proxy/ClassProxy;
at org.jboss.cache.pojo.collection.CollectionInterceptorUtil.createProxy(CollectionInterceptorUtil.java:50)
at org.jboss.cache.pojo.collection.CollectionInterceptorUtil.createListProxy(CollectionInterceptorUtil.java:65)
at org.jboss.cache.pojo.impl.CollectionClassHandler.put(CollectionClassHandler.java:157)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObject(PojoCacheDelegate.java:138)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:102)
... 52 more
16:14:22,708 ERROR [[Spring MVC Dispatcher Servlet]] Servlet.service() for servlet Spring MVC Dispatcher Servlet threw exception
java.lang.NoSuchMethodError: org.jboss.aop.proxy.ClassProxyFactory.newInstance(Ljava/lang/Class;[Lorg/jboss/aop/proxy/ProxyMixin;Z)Lorg/jboss/aop/proxy/ClassProxy;
at org.jboss.cache.pojo.collection.CollectionInterceptorUtil.createProxy(CollectionInterceptorUtil.java:50)
at org.jboss.cache.pojo.collection.CollectionInterceptorUtil.createListProxy(CollectionInterceptorUtil.java:65)
at org.jboss.cache.pojo.impl.CollectionClassHandler.put(CollectionClassHandler.java:157)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObject(PojoCacheDelegate.java:138)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:102)
at org.jboss.cache.pojo.impl.AdvisedPojoHandler.put(AdvisedPojoHandler.java:187)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObject(PojoCacheDelegate.java:138)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:102)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:88)
at com.jbent.peoplecentral.jbosscache.PojoCacheProgramaticRegistration.putObjectIntoCache(PojoCacheProgramaticRegistration.java:69)
at com.jbent.peoplecentral.springaop.aspect.JBossPojoCacheImplAspect.doBasicProfiling(JBossPojoCacheImplAspect.java:39)
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:597)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:622)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:611)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy68.loadPerson(Unknown Source)
at com.jbent.peoplecentral.jbosscache.TestJbossPojoCacheController.getloadPerson(TestJbossPojoCacheController.java:28)
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:597)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:631)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:149)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:363)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:351)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:766)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:712)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:636)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:545)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619) -
4. Re: Pojo attach() failure
galder.zamarreno Dec 8, 2009 3:04 AM (in response to yoojeon)"prasadbhvn" wrote:
Caused by: java.lang.NoSuchMethodError: org.jboss.aop.proxy.ClassProxyFactory.newInstance(Ljava/lang/Class;[Lorg/jboss/aop/proxy/ProxyMixin;Z)Lorg/jboss/aop/proxy/ClassProxy;
at ....
This is the root cause that looks rather odd. Maybe you're using the wrong JBoss AOP library version?
In fact, I'm not aware that this combination of libraries works:
jbosscache-pojo-3.0.0.GA ,jboss-4.2.2.GA and jboss-aop_1.5.6.GA.
JBossCache/PojoCache 3.0 are not designed to work on AS 4.2. If you need to use JBossCache/PojoCache 3.0, use latest JBoss AS 5.1 instead. -
5. Re: Pojo attach() failure
sudeep575 Jan 8, 2010 12:56 AM (in response to yoojeon)Does anyone have solution for this issue ? Any help is highly appreciable. -
6. Re: Pojo attach() failure
ajuba May 18, 2010 7:20 AM (in response to sudeep575)Try this:
use server/all with the following
1:- Edit the C:\jboss-5.1.0.GA\server\all\conf\bootstrap\aop.xml in LINE no-72: <property name="enableLoadtimeWeaving">true</property>
2:- CopyC:\jboss-5.1.0.GA\server\all\deployers\jboss-aop-jboss5.deployer\pluggable-instrumentor.jar to C:\jboss-5.1.0.GA\bin
3:- EditC:\jboss-5.1.0.GA\bin\run.conf.bat file:LINE N0=-50 type : set “JAVA_OPTS=%JAVA_OPTS% -javaagent:pluggable-instrumentor.jar”
4:- Copy pojocache-aop.xml to C:\jboss-5.1.0.GA\server\all\deployThat's all
Cheers!
Ajuba