Need stack configuration for jdiameter

307 views
Skip to first unread message

Vamshi Krishna

unread,
Oct 8, 2012, 10:32:10 AM10/8/12
to mobicent...@googlegroups.com
Hi All,

Can any one of you please send me how to configure stack using jdiameter.

I am reffering to the below link.
http://ammendonca.blogspot.in/search/label/diameter

in the above link there is a class named OfflineChargingClientImpl.java in that there is a constructor where stack configuration is missing.

Can any one of you please help in configuring the stack configuration.

--
Thanks & Regards
Krish

Alexandre Mendonça

unread,
Oct 8, 2012, 10:49:26 AM10/8/12
to mobicent...@googlegroups.com

Vamshi Krishna

unread,
Oct 9, 2012, 7:00:24 AM10/9/12
to mobicent...@googlegroups.com
Hi All,

I could manage to execute the guide1 example from SVN.

When i executed the client i got the below trace from console.

2012-10-09 16:22:55,616 INFO  ExampleClient - Initializing Stack...
2012-10-09 16:22:55,630 WARN  DictionaryImpl - Failed to initialize and configure Diameter Dictionary since configuration file was not found. Validator is disabled.
2012-10-09 16:22:55,630 INFO  ExampleClient - AVP Dictionary successfully parsed.
2012-10-09 16:22:55,832 INFO  ExampleClient - Stack Configuration successfully loaded.
2012-10-09 16:22:55,832 INFO  ExampleClient - Diameter Stack  :: Supporting 0 applications.
2012-10-09 16:22:55,833 INFO  ExampleClient - Starting stack
2012-10-09 16:22:55,870 INFO  NetworkGuard - Open server socket ServerSocket[addr=/127.0.0.1,localport=1812]
2012-10-09 16:22:55,870 INFO  ExampleClient - Stack is running.
2012-10-09 16:22:55,870 INFO  ExampleClient - Stack initialization successfully completed.
2012-10-09 16:23:00,878 INFO  ExampleClient - Sending Request: 686
E2E:544210946
HBH:1160244867
AppID:33333
2012-10-09 16:23:00,878 INFO  ExampleClient - AVPS[8]:

2012-10-09 16:23:00,880 WARN  AvpDictionary - AVP with code 263 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,880 WARN  AvpDictionary - AVP with code 258 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,880 WARN  AvpDictionary - AVP with code 283 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,880 WARN  AvpDictionary - AVP with code 293 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 264 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 296 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 888 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,881 INFO  ExampleClient - Received Answer: 686
E2E:544210946
HBH:1160244867
AppID:33333
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 999 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,881 INFO  ExampleClient - AVPS[8]:

2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 263 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 258 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 888 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 999 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 268 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 264 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,881 WARN  AvpDictionary - AVP with code 296 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,882 WARN  AvpDictionary - AVP with code 281 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,882 INFO  ExampleClient - Sending Request: 686
E2E:544210948
HBH:1160244868
AppID:33333
2012-10-09 16:23:00,882 INFO  ExampleClient - AVPS[8]:

2012-10-09 16:23:00,882 WARN  AvpDictionary - AVP with code 263 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,882 WARN  AvpDictionary - AVP with code 258 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,883 WARN  AvpDictionary - AVP with code 283 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,883 WARN  AvpDictionary - AVP with code 293 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,883 WARN  AvpDictionary - AVP with code 264 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,883 WARN  AvpDictionary - AVP with code 296 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,883 WARN  AvpDictionary - AVP with code 888 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,883 WARN  AvpDictionary - AVP with code 999 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,884 INFO  ExampleClient - Received Answer: 686
E2E:544210948
HBH:1160244868
AppID:33333
2012-10-09 16:23:00,884 INFO  ExampleClient - AVPS[8]:

2012-10-09 16:23:00,885 WARN  AvpDictionary - AVP with code 263 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,885 WARN  AvpDictionary - AVP with code 258 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,885 WARN  AvpDictionary - AVP with code 888 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,885 WARN  AvpDictionary - AVP with code 999 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,885 WARN  AvpDictionary - AVP with code 268 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,885 WARN  AvpDictionary - AVP with code 264 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,885 WARN  AvpDictionary - AVP with code 296 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,885 WARN  AvpDictionary - AVP with code 281 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,886 INFO  ExampleClient - Sending Request: 686
E2E:544210950
HBH:1160244869
AppID:33333
2012-10-09 16:23:00,886 INFO  ExampleClient - AVPS[8]:

2012-10-09 16:23:00,886 WARN  AvpDictionary - AVP with code 263 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,886 WARN  AvpDictionary - AVP with code 258 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,886 WARN  AvpDictionary - AVP with code 283 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,886 WARN  AvpDictionary - AVP with code 293 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,886 WARN  AvpDictionary - AVP with code 264 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,886 WARN  AvpDictionary - AVP with code 296 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,886 WARN  AvpDictionary - AVP with code 888 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,886 WARN  AvpDictionary - AVP with code 999 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,888 INFO  ExampleClient - Received Answer: 686
E2E:544210950
HBH:1160244869
AppID:33333
2012-10-09 16:23:00,888 INFO  ExampleClient - AVPS[8]:

2012-10-09 16:23:00,888 WARN  AvpDictionary - AVP with code 263 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,888 WARN  AvpDictionary - AVP with code 258 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,888 WARN  AvpDictionary - AVP with code 888 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,888 WARN  AvpDictionary - AVP with code 999 and Vendor-Id 66666 not present in dictionary!
2012-10-09 16:23:00,888 WARN  AvpDictionary - AVP with code 268 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,888 WARN  AvpDictionary - AVP with code 264 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,888 WARN  AvpDictionary - AVP with code 296 and Vendor-Id 0 not present in dictionary!
2012-10-09 16:23:00,888 WARN  AvpDictionary - AVP with code 281 and Vendor-Id 0 not present in dictionary!

And in the server the console is like below:

2012-10-09 16:22:40,421 INFO  ExampleServer - Initializing Stack...
2012-10-09 16:22:40,434 WARN  DictionaryImpl - Failed to initialize and configure Diameter Dictionary since configuration file was not found. Validator is disabled.
2012-10-09 16:22:40,434 INFO  ExampleServer - AVP Dictionary successfully parsed.
2012-10-09 16:22:40,624 INFO  ExampleServer - Stack Configuration successfully loaded.
2012-10-09 16:22:40,624 INFO  ExampleServer - Diameter Stack  :: Supporting 0 applications.
2012-10-09 16:22:40,625 INFO  ExampleServer - Starting stack
2012-10-09 16:22:40,663 INFO  NetworkGuard - Open server socket ServerSocket[addr=/127.0.0.1,localport=3868]
2012-10-09 16:22:40,663 INFO  ExampleServer - Stack is running.
2012-10-09 16:22:40,663 INFO  ExampleServer - Stack initialization successfully completed.
2012-10-09 16:22:55,876 INFO  NetworkGuard - Open incomming connection Socket[addr=/127.0.0.1,port=59041,localport=3868]
2012-10-09 16:23:00,879 WARN  PeerImpl - Received message for unknown peer [aaa://127.0.0.1:3868]. Answering with 3002 (UNABLE_TO_DELIVER) Result-Code.
2012-10-09 16:23:00,880 WARN  RouterImpl - Could not find route info for Hop-by-Hop Id [1160244867]. Table size is [0]
2012-10-09 16:23:00,883 WARN  PeerImpl - Received message for unknown peer [aaa://127.0.0.1:3868]. Answering with 3002 (UNABLE_TO_DELIVER) Result-Code.
2012-10-09 16:23:00,884 WARN  RouterImpl - Could not find route info for Hop-by-Hop Id [1160244868]. Table size is [0]
2012-10-09 16:23:00,887 WARN  PeerImpl - Received message for unknown peer [aaa://127.0.0.1:3868]. Answering with 3002 (UNABLE_TO_DELIVER) Result-Code.
2012-10-09 16:23:00,887 WARN  RouterImpl - Could not find route info for Hop-by-Hop Id [1160244869]. Table size is [0]

Can any one explain what just happened? I could understand that the message has not delivered.

I have got the example from the below link.

http://code.google.com/p/mobicents/source/browse/trunk/servers/diameter/examples/guide1/src/main/java/org/example/server/ExampleServer.java

Thanks in advance for your explanation.
--
Thanks & Regards
VamshiKrishna,
9703056776

Reply all
Reply to author
Forward
0 new messages