Create Profiles from SBB

7 views
Skip to first unread message

David Rivas

unread,
Feb 1, 2010, 10:40:02 AM2/1/10
to mobicents-public
Hi,
I am trying to create new Profiles into an existing Profile table from
an event received by the Root SBB. I was able to do this on slee 1.0
but now in SLEE 1.1 specification I got this error message:

2010-02-01 16:39:15,096 ERROR
[org.i2cat.slee.precompiler.profile.ProfileCreator] (pool-17-thread-1)
Failed to create Example8's Events Profiles!
javax.management.MBeanException
at
org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions
(ReflectedDispatcher.java:184)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:165)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:
668)
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.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke
(InvokerAdaptorService.java:263)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke
(AbstractInterceptor.java:138)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke
(ModelMBeanOperationInterceptor.java:140)
at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke
(SerializableInterceptor.java:74)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
668)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke
(JRMPProxyFactory.java:180)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:
668)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke
(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:
118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal
(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke
(InvokerInterceptor.java:195)
at
org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke
(InvokerAdaptorClientInterceptor.java:66)
at org.jboss.proxy.SecurityInterceptor.invoke
(SecurityInterceptor.java:68)
at org.jboss.proxy.ClientMethodInterceptor.invoke
(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
at $Proxy312.invoke(Unknown Source)
at
org.mobicents.slee.container.management.jmx.SleeCommandInterface.invokeCommand
(SleeCommandInterface.java:112)
at
org.mobicents.slee.container.management.jmx.SleeCommandInterface.invokeOperation
(SleeCommandInterface.java:314)
at org.i2cat.slee.precompiler.profile.ProfileCreator.newProfile
(ProfileCreator.java:126)
at org.i2cat.slee.precompiler.profile.ProfileCreator.addProfiles
(ProfileCreator.java:113)
at
org.mobicents.slee.training.example8.common.SubscriptionProfileSbb.newProfile
(SubscriptionProfileSbb.java:124)
at org.i2cat.slee.precompiler.RootSbb.onStartServiceEvent
(RootSbb.java:35)
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.mobicents.slee.runtime.sbbentity.SbbEntity.invokeEventHandler
(SbbEntity.java:670)
at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTask.routeQueuedEvent
(EventRoutingTask.java:351)
at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTask.run
(EventRoutingTask.java:111)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.slee.management.ManagementException:
BaseTransaction.checkTransactionState -
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated]
[com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated]
thread is already associated with a transaction!
at
org.mobicents.slee.container.management.jmx.ProfileProvisioningMBeanImpl.createProfile
(ProfileProvisioningMBeanImpl.java:142)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:157)
... 57 more

emma...@gmail.com

unread,
Feb 1, 2010, 12:48:49 PM2/1/10
to mobicents-public
Check the JAIN SLEE 1.1 Specs, use writable profiles (new in JAIN SLEE
1.1) and do it the right way, no need to use JMX.

Btw, check the Timer example in SLEE 2.x SVN (/trunk/servers/jain-slee/
examples/timer), the only hack the example uses is for the profile
table creation.

-- Eduardo

David Rivas

unread,
Feb 2, 2010, 3:49:09 AM2/2/10
to mobicents-public
Thankyou Eduardo,

I will try it

Message has been deleted

David Rivas

unread,
Feb 2, 2010, 11:55:40 AM2/2/10
to mobicents-public
Hi again,
I was studying the TIMER example and, when the Profile is created,
the
SBB stores it like a Profile into the SBB and gets the Profile from
the Profile in the SBB instead of do a searching in the profiletable.
What is the function to get the profile from the profiletable?
Thanks

David Rivas

unread,
Feb 2, 2010, 12:59:03 PM2/2/10
to mobicents-public
I forget to say that the lookup function used on JSLEE 1.0 is not
valid on 1.1

javax.slee.facilities.FacilityException: JAIN SLEE 1.1 Specs forbidden
the usage of this method on SLEE 1.1 Profile Tables
at
org.mobicents.slee.runtime.facilities.profile.ProfileFacilityImpl.getProfileByIndexedAttribute
(ProfileFacilityImpl.java:304)
at org.i2cat.slee.precompiler.common.SubscriptionProfileSbb.lookup
(SubscriptionProfileSbb.java:195)
at org.i2cat.slee.precompiler.RootSbb.onStartServiceEvent
(RootSbb.java:33)


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.mobicents.slee.runtime.sbbentity.SbbEntity.invokeEventHandler
(SbbEntity.java:670)
at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTask.routeQueuedEvent
(EventRoutingTask.java:351)
at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTask.run
(EventRoutingTask.java:111)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Caused by: javax.slee.facilities.FacilityException: JAIN SLEE 1.1
Specs forbidden the usage of this method on SLEE 1.1 Profile Tables
at
org.mobicents.slee.runtime.facilities.profile.ProfileFacilityImpl.getProfileByIndexedAttribute
(ProfileFacilityImpl.java:283)
... 12 more

Eduardo Martins

unread,
Feb 2, 2010, 1:38:30 PM2/2/10
to mobicent...@googlegroups.com
That means you understand the JAIN SLEE 1.1 way to use Profiles ?
-- Eduardo

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
http://emmartins.blogspot.com
http://www.redhat.com/solutions/telco

Reply all
Reply to author
Forward
0 new messages