[jboss-user] [JBoss AOP] - java.lang.RuntimeException: java.lang.NoSuchMethodException:

jagadeeshvn do-not-reply at jboss.com
Thu Dec 21 03:59:48 EST 2006


Hi All,

I am trying to use jBoss AOP cache in my application and I am using AOP pre-compiler to precompile my POJO which is used for session replication. I was successfull in deploying the application in Windows, but when I tried deploying it in Unix, I am getting an exception when trying to create an instance of the POJO whose byte code was weaved at compile time. I am running jBoss 4.0.5 and JDK 1.5.0_07-b03. I am stuck here and any help would be greatly appreciated!

Please find below the stack trace


at com.users.impl.UserSystemImpl.getUser(UserSystemImpl.java:204)
	at com.users.impl.UserSystemImpl.validateAPIKey(UserSystemImpl.java:672)
	at com.api.security.AuthenticationRestlet.handle(AuthenticationRestlet.java:106)
	at com.impl.RestletTarget.handle(RestletTarget.java:170)
	at com.impl.MapletImpl.delegate(MapletImpl.java:212)
	at com.impl.MapletImpl.handle(MapletImpl.java:162)
	at org.restlet.component.RestletContainer.handle(RestletContainer.java:220)
	at com.impl.RestletTarget.handle(RestletTarget.java:170)
	at com.impl.MapletImpl.delegate(MapletImpl.java:212)
	at com.impl.MapletImpl.handle(MapletImpl.java:162)
	at org.restlet.component.RestletContainer.handle(RestletContainer.java:220)
	at com.api.support.RestTarget.handle(RestTarget.java:71)
	at com.api.ServerServlet.handle(ServerServlet.java:403)
	at com.api.ServerServlet.handle(ServerServlet.java:388)
	at com.api.ServerServlet.service(ServerServlet.java:204)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
	at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:87)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: addObserver
	at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:250)
	at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:459)
	at com.users.impl.UserImpl.(UserImpl.java)
	... 36 more
Caused by: java.lang.NoSuchMethodException: addObserver
	at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:261)
	at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:269)
	at org.jboss.aop.ClassAdvisor.populateMixinMethods(ClassAdvisor.java:332)
	at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:228)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:209)

Thanks
Jugs

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

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



More information about the jboss-user mailing list