java - Mobicents jDiameter what is wrong with the example on git -


I'm trying to run a client-server instance, for example I've found => But it does not seem that it works.

Although the message reaches the server and an answer has been received, the example "Process Requests" example server is never called, which means that the message has never actually been processed as I The called "received success message" is called on the client but it only processes the original message.

I see that the message is received in the server due to this log in the server log: "Get Message Types for" Peer [AAA: // Lokhost: 4726 9] " < P> I have also found that there are two stacklike classes which can be found under an "org.jdiameter.server.impl" while the other is under "org.jdiameter.client.impl". Although the client uses one under the server which looks awkward and with a quick glance they are not identical

I am not even getting Jawadox and I found that the only document that does not really say much .

OK, I solved most of my problem

First and foremost First of all, the code can not be resolved through Maven and it must be changed (this is not an issue mentioned above, but it is good to know). I used 1.5.6.0.-build501 To avoid ugly compilation errors, use Java 1.6 (i.e., via Maven-compiler-plugin). (Build Power specifies Java 1.5, 1.6 and / or above on my machine)

About my second question, StackImpl under org.jdiameter.server.impl a org.jdiameter.client.impl . Although you can not use it with the customer (at least in this example). Not sure why they did this. Also under org.jdiameter.server.impl under the XMLConfiguration package org.jdiameter.server.impl.helpers.xml configuration of the client configuration server. Uses. Helpers . This client can not use one in the package.

For example to work, as you are supposed to, you have to change the code to ExampleClient.java . Especially the following method.

  sending private zooms next request (intem type) interlex option, invalid dematerializer application, root option, overload expression {request r = this.session.createRequest (commandCode, this.authAppId, realmName) throws is; AVPassette Request A VPS = RATAVS (); AVP Exchange Type = requestAvps.addAvp (Exchange Typodode, (long) anonymous type, vendor ID, true, false, true); AVPexchange.d = requestAvps.addAvp (exchange datacode, TO_SEND [toSendIndex ++], vendor ID, true, false, false); RequestAvps.addAvp (Avp.DESTINATION_HOST, "127.0.0.1", true, false, true); This.session.send (r, this); DumpMessage (R, true); }   

serverURI must be removed from the createRequest and AVP 293 (the destination host) must match the host of the server.

I searched this carefully and studied the log file and carefully with many debugging. Repeat PeerTableImpl - for Peer Name [aaa: //127.0.0.1: 3868] in GetPeerByName. Looping through Pertable and finding a mailing entry DEBUG PeerTableImpl - To see if the name of the co-worker [aaa: //127.0.0.1: 3868] [aaa: //127.0.0.1: 49150] or [127.0] .0.1] DEBUG controller. PierTableImpl - No friends found in GetPeerByName for peer [AAA: //127.0.0.1: 3868] zero

will come back Please also note that '3' is unavailable both < Code> ExampleClient.java and exampleServer.java the applicationID member. This example does not appear to be impressive, but if you start messing around with the configuration, you may face this kind of problem:

  debug org.jdiameter.client.impl. Parser.MessageImpl - Application IDs in this message are: DEBUG org.jdiameter.client.impl.parser.MessageImpl - [AppId [Seller ID: 0; Auth-Application Number: 33333; Acct-Application-Id: 0]] DEBUG org.jdiameter.client.impl.parser.MessageImpl - Returning [AppId [Seller ID: 0; Auth-Application Number: 33333; Acct-Application-Id: 0]] In the form of the first application ID because no vendor is found specific, which locates the organization org.jdiameter.client.impl.controller.PeerImpl - could not process the request. Result code = [3007], error message: [invalid] debug org.jdiameter.client.impl.controller.PeerImpl - Sending reply indicates that we could not process request   < / Div> 

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

Matlab: Transfer variable from GUI to Base Workspace and new Variables (Static Workspace, Script, Creating new Variables) -