Skip to main content

aop with mobicents

7 replies [Last post]
abdujaparov
Offline
Joined: 2007-11-03
Points: 0

Hi, I want apply a jboss aop aspect to a mobicents service, I've tryed to installa jboss aop on jboss included in the auto-install jar of mobicents 1.0.0.3ga but when I start mobicents server I receive an error message and I have to press a key and then the server shutdown.
Someone have a suggest for me?
Thanks, bye bye.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
abhayani
Offline
Joined: 2005-04-04
Points: 0

What is the error message that you get? I have never tried this, why you want to apply aspect to service?

abdujaparov
Offline
Joined: 2007-11-03
Points: 0

Hi I have to use jboss aop to compute statistics about a mobicents service like number of request of a service or response time of a service.
Does it exist an alternative way to do this?

I've tryed to run jboss aop on jboss 3.2.8sp1 without mobicentes, the error is the same, I've user jboss aop 1.5.4sp1, here there's the error:
[code]
17:55:37,909 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.
2.8.SP1/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: create operation failed for package fi
le:/C:/jboss-3.2.8.SP1/server/default/conf/jboss-service.xml; - nested throwable
: (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.refl
ect.UndeclaredThrowableException))
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:239)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:795)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:652)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:600)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:74)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:213)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:462)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:353)
at org.jboss.Main.boot(Main.java:201)
at org.jboss.Main$1.run(Main.java:459)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.deployment.DeploymentException: - nested throwable: (java.l
ang.reflect.UndeclaredThrowableException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:151)
at org.jboss.system.ServiceController.install(ServiceController.java:213
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:74)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:213)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:216)
... 21 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:214)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:161)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:126)
... 35 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/mx/loading/RepositoryClassL
oader
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.getConstructor(Class.java:1629)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
881)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
301)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
328)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:136)
... 37 more
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: create operation failed for package fi
le:/C:/jboss-3.2.8.SP1/server/default/conf/jboss-service.xml; - nested throwable
: (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.refl
ect.UndeclaredThrowableException))
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:239)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:795)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:652)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:600)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:74)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:213)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:462)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:353)
at org.jboss.Main.boot(Main.java:201)
at org.jboss.Main$1.run(Main.java:459)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.deployment.DeploymentException: - nested throwable: (java.l
ang.reflect.UndeclaredThrowableException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:151)
at org.jboss.system.ServiceController.install(ServiceController.java:213
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:74)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:213)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:184)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:216)
... 21 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:214)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:161)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:126)
... 35 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/mx/loading/RepositoryClassL
oader
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.getConstructor(Class.java:1629)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
881)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
301)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
328)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:136)
... 37 more
17:55:37,939 INFO [Server] Runtime shutdown hook called, forceHalt: true
17:55:37,939 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
17:55:37,959 INFO [Server] Shutdown complete
[/code]
Thanks, bye bye.

eduardomartins
Offline
Joined: 2005-10-10
Points: 0

Is that aop release for jboss 3.x? It's looking for a class that is not deployed.

By the way, SLEE has sbb usage parameters, which can be counters and averages, and are accessible by jmx, see the JAIN SLEE specs for more info

abdujaparov
Offline
Joined: 2007-11-03
Points: 0

Hi I've read the jain slee spec and if I right understand I can get some statistics with JMX but what is the address that I have to use to connect to mobicents and get the statistics? I need the porto too.
Thanks, bye bye.

eduardomartins
Offline
Joined: 2005-10-10
Points: 0

First you need to create and use those sbb usage parameters, for example, say you want to count number of calls processed, then you add a counter sbb uage parameter and on the SIP INVITE event handler you increment it.

JMX console is available at http://ip_used_to_start_jboss:8080, you can type "slee" in the filter box to see only SLEE related MBeans.

abdujaparov
Offline
Joined: 2007-11-03
Points: 0

Hi, I want connect to jmx with a client written by me and not through the jmx console that I cna view in my browser,
I've read the slee spec byt for the sbb usage parameters my ideas are confused. If I understand wht you told me I must create an sbb usage parameters, can I apply this sbb to other existing service? I want get the computation time of some methods of an sbb.
Thanks, bye bye.

ivelin
Offline
Joined: 2003-07-13
Points: 0

you can connect to JMX remotely using the JBoss JMX client library. The default port is 1099 on the server binding address (default 127.0.0.1).

The following question does not make much sense. Please rephrase:
"can I apply this sbb to other existing service"