2 Replies Latest reply: May 16, 2011 9:02 AM by Earnest Dyke RSS

Caused by: java.lang.NullPointerException   at org.jboss.aop.pointcut.MethodMatcher.<init>(MethodMatcher.java:72)

kumaran d Newbie

Hi

 

i am using JBoss-aop-2.1.8.GA and configured successfully interceptor for my web application, but i am getting NullPointerException in org.jboss.aop.pointcut.MethodMatcher only for this particular package,  if i remove this package the request is processed successfuly,  

 

 

Please help me in finding the issue.


15:00:22,381 ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception

org.jboss.resteasy.spi.UnhandledException: java.lang.ExceptionInInitializerError

        at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:263)

        at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:169)

        at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:146)

        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:456)

        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:418)

        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:111)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:217)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:159)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

        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:235)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

        at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.jav

a:126)

        at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java

:70)

        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:158)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

        at java.lang.Thread.run(Thread.java:619)

 

 

Caused by: java.lang.ExceptionInInitializerError

        at com.mycom.rest..MemberAcct.<init>(MemberAcct.java:23)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 

 

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:82)

        at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.createResource(POJOResourceFactory.java

:38)

        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:201)

        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:441)

        ... 25 more

 

 

 

 

Caused by: java.lang.NullPointerException

        at org.jboss.aop.pointcut.MethodMatcher.<init>(MethodMatcher.java:72)

 

 

        at org.jboss.aop.pointcut.ExecutionMethodMatcher.<init>(ExecutionMethodMatcher.java:53)

        at org.jboss.aop.pointcut.PointcutExpression.matchesExecution(PointcutExpression.java:118)

 

 

        at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:1343)

        at org.jboss.aop.GeneratedClassAdvisor.resolveMethodPointcut(GeneratedClassAdvisor.java:312)

        at org.jboss.aop.ClassAdvisor.resolveBindings(ClassAdvisor.java:668)

        at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)

        at org.jboss.aop.GeneratedClassAdvisor.access$201(GeneratedClassAdvisor.java:65)

        at org.jboss.aop.GeneratedClassAdvisor$ClassAdvisorStrategy.createInterceptorChains(GeneratedClassAdvisor.java:1

306)

        at org.jboss.aop.GeneratedClassAdvisor.createInterceptorChains(GeneratedClassAdvisor.java:410)

        at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:306)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:276)

        at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:748)

        at org.jboss.aop.GeneratedClassAdvisor$ClassAdvisorStrategy.initialise(GeneratedClassAdvisor.java:1294)

        at org.jboss.aop.GeneratedClassAdvisor.initialise(GeneratedClassAdvisor.java:146)

        at com.mycom.rest.MemberAcctService$MemberAcctServiceAdvisor.initialise(MemberAcctService$MemberAcctServiceAdvisor.java)

        at com.mycom.rest.MemberAcctService$MemberAcctServiceAdvisor.<init>(MemberAcctService$MemberAcctServiceAdvisor.java)

        at com.mycom.rest.MemberAcctService.<clinit>(MemberAcctService.java)

        ... 34 more