Diameter Test Example

439 views
Skip to first unread message

cLaSic

unread,
Jul 17, 2008, 11:48:02 AM7/17/08
to mobicents-public
Hi, i got an exception when runing the Diameter test "debian:~/jain-
slee2/examples/diameter#"
What's going wrong ? :
-----------------------------------------------
16:42:27,711 INFO [DiameterExampleSbb] Sending Custom Message...
16:42:27,711 INFO [STDOUT] [DiameterBaseResourceAdaptor
$DiameterProviderImpl] Diameter Base RA :: createActivity
16:42:27,711 INFO [STDOUT] [DiameterBaseResourceAdaptor
$DiameterProviderImpl] Diameter Base RA :: createActivity ::
destinationHost[null], destinationRealm[null]
16:42:27,711 INFO [DiameterActivityHandle] Diameter Base RA ::
DiameterActivityHandle :: id[127.0.0.1;283;833387603].
16:42:27,711 INFO [STDOUT] [DiameterBaseResourceAdaptor] Activity
started [Diameter Session ID[127.0.0.1;283;833387603]]
16:42:27,712 ERROR [STDERR] org.jdiameter.api.RouteException: Can not
find valid connection to realm [mobicents.org]
16:42:27,713 ERROR [STDERR] at
org.jdiameter.client.impl.router.RouterImpl.getPeer(RouterImpl.java:
269)
16:42:27,713 ERROR [STDERR] at
org.jdiameter.client.impl.controller.PeerTableImpl.sendMessage(PeerTableImpl.java:
116)
16:42:27,713 ERROR [STDERR] at
org.jdiameter.client.impl.StackImpl.sendMessage(StackImpl.java:255)
16:42:27,713 ERROR [STDERR] at
org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:
70)
16:42:27,713 ERROR [STDERR] at
org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:
50)
16:42:27,713 ERROR [STDERR] at
org.jdiameter.client.impl.SessionImpl.send(SessionImpl.java:44)
16:42:27,713 ERROR [STDERR] at
org.mobicents.slee.resource.diameter.base.DiameterActivityImpl.sendMessage(DiameterActivityImpl.java:
96)
16:42:27,713 ERROR [STDERR] at
org.mobicents.slee.examples.diameter.DiameterExampleSbb.sendAccountingRequest(DiameterExampleSbb.java:
438)
16:42:27,713 ERROR [STDERR] at
org.mobicents.slee.examples.diameter.DiameterExampleSbb.onTimerEvent(DiameterExampleSbb.java:
216)
16:42:27,713 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:42:27,713 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
16:42:27,713 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
16:42:27,713 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:585)
16:42:27,713 ERROR [STDERR] at
org.mobicents.slee.runtime.sbbentity.SbbEntity.invokeEventHandler(SbbEntity.java:
879)
16:42:27,713 ERROR [STDERR] at
org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:
885)
16:42:27,713 ERROR [STDERR] at
org.mobicents.slee.runtime.EventRouterImpl.access
$100(EventRouterImpl.java:64)
16:42:27,713 ERROR [STDERR] at
org.mobicents.slee.runtime.EventRouterImpl
$EventExecutor.run(EventRouterImpl.java:121)
16:42:27,713 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:650)
16:42:27,713 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:675)
16:42:27,713 ERROR [STDERR] at java.lang.Thread.run(Thread.java:
595)
16:42:27,713 ERROR [DiameterActivityImpl] Failure sending sync
request.
org.jdiameter.api.InternalException: org.jdiameter.api.RouteException:
Can not find valid connection to realm [mobicents.org] at
org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:
74)
at
org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:
50)
at org.jdiameter.client.impl.SessionImpl.send(SessionImpl.java:
44)
at
org.mobicents.slee.resource.diameter.base.DiameterActivityImpl.sendMessage(DiameterActivityImpl.java:
96)
at
org.mobicents.slee.examples.diameter.DiameterExampleSbb.sendAccountingRequest(DiameterExampleSbb.java:
438)
at
org.mobicents.slee.examples.diameter.DiameterExampleSbb.onTimerEvent(DiameterExampleSbb.java:
216)
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:585)
at
org.mobicents.slee.runtime.sbbentity.SbbEntity.invokeEventHandler(SbbEntity.java:
879)
at
org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:
885)
at org.mobicents.slee.runtime.EventRouterImpl.access
$100(EventRouterImpl.java:64)
at org.mobicents.slee.runtime.EventRouterImpl
$EventExecutor.run(EventRouterImpl.java:121)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jdiameter.api.RouteException: Can not find valid
connection to realm [mobicents.org]
at
org.jdiameter.client.impl.router.RouterImpl.getPeer(RouterImpl.java:
269)
at
org.jdiameter.client.impl.controller.PeerTableImpl.sendMessage(PeerTableImpl.java:
116)
at
org.jdiameter.client.impl.StackImpl.sendMessage(StackImpl.java:255)
at
org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:
70)

-----------------------------------------------

Alexandre Mendonça

unread,
Jul 17, 2008, 1:25:38 PM7/17/08
to mobicent...@googlegroups.com
Hi.

The example consists in interaction with the Ericsson Diameter SDK. You can get it from here.

Also, you must either setup the Diameter App accordingly to the jdiameter-config.xml or the jdiameter-config.xml accordingly to the Diameter App. For the example to work out-of-the-box, configure the PPS Diameter Emulator (PPSDiamEmul.jar) like this:

Config > Options > Stack options:
  Peer ID: aaa://127.0.0.1:21812
  Realm: mobicents.org
  Host IP: 127.0.0.1

We are currently working on the RA and making some JUnit tests to make sure it is good enough. After that we can work on some standalone example and maybe even a converged one :-)

Regards,
Alexandre Mendonça
JBoss R&D

Message has been deleted

Bartosz Baranowski

unread,
Jul 22, 2008, 4:14:13 AM7/22/08
to mobicent...@googlegroups.com
Depends on system. I cant also see messages in wireshark when I use localhost on windows - it seems they thought it will be neat not to pass everything to tcp stack when its local trafic? I dont know, or maybea bug.

On Mon, Jul 21, 2008 at 6:53 PM, cLaSic <atif.ma@gmail.com> wrote:

Yes it's working ...
Now can you tel me why i cant see Diameter exchange on Wireshark ! i
see only TCP messages ..


On 17 juil, 19:25, "Alexandre Mendonça" <brains...@gmail.com> wrote:
> Hi.
>
> The example consists in interaction with the Ericsson Diameter SDK. You can

> .
>
> Also, you must either setup the Diameter App accordingly to the
> jdiameter-config.xml or the jdiameter-config.xml accordingly to the Diameter
> App. For the example to work out-of-the-box, configure the PPS Diameter
> Emulator (PPSDiamEmul.jar) like this:
>
> Config > Options > Stack options:
>   Peer ID: aaa://127.0.0.1:21812
>   Realm: mobicents.org
>   Host IP: 127.0.0.1
>
> We are currently working on the RA and making some JUnit tests to make sure
> it is good enough. After that we can work on some standalone example and
> maybe even a converged one :-)
>
> Regards,
> *Alexandre Mendonça
> JBoss R&D *



--
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

Tom Uijldert

unread,
Jul 22, 2008, 4:30:30 AM7/22/08
to mobicent...@googlegroups.com
Confirmed. The stack probably doesn't even pass it to level 2 (Ethernet) when traffic is localhost.
Same goes for having 2 VM's on the 1 machine, you can't capture traffic between them either. You really need a separate machine.
 
Regards,
    Tom.


From: mobicent...@googlegroups.com [mailto:mobicent...@googlegroups.com] On Behalf Of Bartosz Baranowski
Sent: dinsdag 22 juli 2008 10:14
To: mobicent...@googlegroups.com
Subject: [mobicents-public] Re: Diameter Test Example

Atif

unread,
Jul 22, 2008, 4:19:03 AM7/22/08
to mobicent...@googlegroups.com
It's working now .. Mobicents Diameter example test uses none Diameter standard ports : 1812 ... So you must change this in Wireshark options or make changes in jdiameter-config.xml ...

2008/7/22 Bartosz Baranowski <bara...@gmail.com>:

cLaSic

unread,
Jul 22, 2008, 5:17:30 AM7/22/08
to mobicent...@googlegroups.com
Hi Alexandre,
Take a look at AccountingServerSessionActivityImpl.java ...
ORIGIN_HOST is hardly coded to 127.0.0.1 so that PPS doesnt work properly when working with none local adresse ..
Can you fix it please ..

2008/7/22 Tom Uijldert <tom.ui...@gmail.com>:

Alexandre Mendonça

unread,
Jul 22, 2008, 5:48:43 AM7/22/08
to mobicent...@googlegroups.com
Hi Atif,

Yes. I've noticed that and that's on the TODO list for the next release. Thanks for the reminder :-)

Best Regards,
Alexandre Mendonça
JBoss R&D

Bartosz Baranowski

unread,
Jul 22, 2008, 6:32:32 AM7/22/08
to mobicent...@googlegroups.com
I will fix this in few minutes, please checkout latest source by the end of the day

cLaSic

unread,
Jul 30, 2008, 3:52:36 AM7/30/08
to mobicents-public
Hi, can you tel me please your plans for Diameter Sh, Ro & Rf

Regards
Atif

On 22 juil, 12:32, "Bartosz Baranowski" <baran...@gmail.com> wrote:
> I will fix this in few minutes, please checkout latest source by the end of
> the day
>
> On Tue, Jul 22, 2008 at 11:48 AM, Alexandre Mendonça <brains...@gmail.com>
> wrote:
>
>
>
> > Hi Atif,
>
> > Yes. I've noticed that and that's on the TODO list for the next release.
> > Thanks for the reminder :-)
>
> > Best Regards,
> > *Alexandre Mendonça
> > JBoss R&D *
>
> > On Tue, Jul 22, 2008 at 10:17, cLaSic <atif...@gmail.com> wrote:
>
> >> Hi Alexandre,
> >> Take a look at AccountingServerSessionActivityImpl.java ...
> >> ORIGIN_HOST is hardly coded to 127.0.0.1 so that PPS doesnt work properly
> >> when working with none local adresse ..
> >> Can you fix it please ..
>
> >> 2008/7/22 Tom Uijldert <tom.uijld...@gmail.com>:
>
> >>  Confirmed. The stack probably doesn't even pass it to level 2 (Ethernet)
> >>> when traffic is localhost.
> >>> Same goes for having 2 VM's on the 1 machine, you can't capture traffic
> >>> between them either. You really need a separate machine.
>
> >>> Regards,
> >>>     Tom.
>
> >>>  ------------------------------
> >>> *From:* mobicent...@googlegroups.com [mailto:
> >>> mobicent...@googlegroups.com] *On Behalf Of *Bartosz Baranowski
> >>> *Sent:* dinsdag 22 juli 2008 10:14
> >>> *To:* mobicent...@googlegroups.com
> >>> *Subject:* [mobicents-public] Re: Diameter Test Example
>
> >>>  Depends on system. I cant also see messages in wireshark when I use
> >>> localhost on windows - it seems they thought it will be neat not to pass
> >>> everything to tcp stack when its local trafic? I dont know, or maybea bug.
>
Reply all
Reply to author
Forward
0 new messages