Hi, Alex,
When I tried the example doSimpleTestsSendUDR, appeared this error because of failed casting:
INFO [DiameterShClientResourceAdaptor] (pool-29-thread-1) Activity started [Diameter Session ID[mobicents.open-ims.test;324;3480042490]]
INFO [DiameterOpenIMSExampleSbb] (pool-29-thread-1) On TimerEvent: ACI created for basicClientActivity
ERROR [DiameterOpenIMSExampleSbb] (pool-29-thread-1) Failure trying to create/send UDR.
java.lang.ClassCastException: org.mobicents.slee.resource.diameter.base.DiameterMessageFactoryImpl cannot be cast to
net.java.slee.resource.diameter.sh.client.ShClientMessageFactory
at org.mobicents.slee.examples.diameter.openims.DiameterOpenIMSExampleSbb.doSimpleTestsSendUDR(DiameterOpenIMSExampleSbb.java:605)
at org.mobicents.slee.examples.diameter.openims.DiameterOpenIMSExampleSbb.onTimerEvent(DiameterOpenIMSExampleSbb.java:337)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:481)
at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379)
at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
So, I changed
UserDataRequest udr = ((ShClientMessageFactory)basicClientActivity.getDiameterMessageFactory()).createUserDataRequest();
into
UserDataRequest udr = ((ShClientMessageFactory)basicClientActivity.getClientMessageFactory()).createUserDataRequest();
But, appeared another error
INFO [DiameterShClientResourceAdaptor] (pool-23-thread-1) Activity started [Diameter Session ID[mobicents.open-ims.test;324;3480965648]]
INFO [DiameterOpenIMSExampleSbb] (pool-23-thread-1) On TimerEvent: ACI created for basicClientActivity
ERROR [DiameterOpenIMSExampleSbb] (pool-23-thread-1) Failure trying to create/send UDR.
java.io.IOException: Failed to send message, due to: org.jdiameter.api.InternalException: org.jdiameter.api.InternalException: org.jdiameter.api.RouteException: Unable to find valid connection to peer[aaa://
127.0.0.1:3868] in realm[open-ims.test]
at org.mobicents.slee.resource.diameter.sh.client.ShClientActivityImpl.sendUserDataRequest(ShClientActivityImpl.java:120)
at org.mobicents.slee.examples.diameter.openims.DiameterOpenIMSExampleSbb.doSimpleTestsSendUDR(DiameterOpenIMSExampleSbb.java:624)
at org.mobicents.slee.examples.diameter.openims.DiameterOpenIMSExampleSbb.onTimerEvent(DiameterOpenIMSExampleSbb.java:337)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:481)
at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379)
at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Best Regard,
Yessica Marianata