4 Replies Latest reply on Mar 19, 2014 3:05 PM by johnrobinson99

    Problem creating service jboss.aop:service=AspectManager

    kmk1977

      Hi Experts,

       

      I have been strugling with JBoss AOP execution, I did everything correct for JBoss AOP , but still i am always getting the following error.

      Please help me.

       

      1)I have installed jboss-aop-jdk50.deployer

      2) modified jboss-service.xml   <attribute name="EnableLoadtimeWeaving">true</attribute>

      3)modified run.bat with set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -javaagent:%JBOSS_ENDORSED_DIRS%\pluggable-instrumentor.jar

      4)pluggable-instrumentor.jar  is there in bin and as well in endorsed folder

      5)I have deployed jboss-aop.xml the aspect/interceptor classes jar in  /deploy folder

       

      No luck, i have been strugling for 2 days. Please help.

       

       

       

      17:29:47,561 WARN  [ServiceController] Problem creating service jboss.aop:service=AspectManager

      java.lang.NullPointerException

                at org.jboss.aop.asintegration.core.AspectManagerServiceDelegateJDK5.attachTranslator(AspectManagerServiceDelegateJDK5.java:42)

                at org.jboss.aop.asintegration.core.AspectManagerServiceDelegate.create(AspectManagerServiceDelegate.java:252)

                at org.jboss.aop.deployment.AbstractAspectManagerService.create(AbstractAspectManagerService.java:107)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)

                at $Proxy0.create(Unknown Source)

                at org.jboss.system.ServiceController.create(ServiceController.java:330)

                at org.jboss.system.ServiceController.create(ServiceController.java:273)

                at org.jboss.system.ServiceController.create(ServiceController.java:349)

                at org.jboss.system.ServiceController.create(ServiceController.java:273)

                at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                at $Proxy4.create(Unknown Source)

                at org.jboss.deployment.SARDeployer.create(SARDeployer.java:260)

                at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)

                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)

                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                at $Proxy9.deploy(Unknown Source)

                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

                at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                at $Proxy0.start(Unknown Source)

                at org.jboss.system.ServiceController.start(ServiceController.java:417)

                at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                at $Proxy4.start(Unknown Source)

                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)

                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                at $Proxy5.deploy(Unknown Source)

                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

                at org.jboss.Main.boot(Main.java:200)

                at org.jboss.Main$1.run(Main.java:508)

                at java.lang.Thread.run(Unknown Source)

       

      AND

       

      --- MBeans waiting for other MBeans ---

      ObjectName: jboss.aop:service=AspectManager

        State: FAILED

        Reason: java.lang.NullPointerException

        I Depend On:

          jboss.aop:service=JBoss4IntegrationWrapper

       

       

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---

      ObjectName: jboss.aop:service=AspectManager

        State: FAILED

        Reason: java.lang.NullPointerException

        I Depend On:

          jboss.aop:service=JBoss4IntegrationWrapper