cancel
Showing results for 
Search instead for 
Did you mean: 

SUP synchronization problem through relay server

aybars_morali
Participant
0 Kudos

Hi.

I have been trying to connect to SUP server through a relay server. I've followed developer guide (Android object api), I've read but still couldn't achieve to connect.

I am getting this error: (Line 21)

com.ianywhere.ultralitejni12.implementation.JniException: UltraLiteJ Error[-1305]: MobiLink communication error -- code: 86, parameter: 405, system code: 0Details:

02-27 15:52:14.557: E/Otonom3GTest(15843): StreamErrorCode = 86

02-27 15:52:14.557: E/Otonom3GTest(15843): StreamErrorMessage = 405

If I uncomment line 16 and set Url_Suffix then I got similar error with status code 404.

 

Without the relay server I can connect and synchronize data but could not synchronize through relay server. What is wrong?

SUP version: 2.1.3

Android: 4.0.4

No changes in Otonom3GTestDB.java

This is the relay server configuration:

ConnectionProperties connProps = app.getConnectionProperties();

connProps.setLoginCredentials(new LoginCredentials(USERNAME, PASSWORD));
connProps.setServerName(HOST);
connProps.setPortNumber(PORT);
connProps.setNetworkProtocol("HTTP");
connProps.setSecurityConfiguration("admin");
connProps.setFarmId(FARM_ID_MBS);

if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED) {
app.registerApplication(TIMEOUT);
} else {
app.startConnection(TIMEOUT);
}

ConnectionProfile cp = Otonom3GTestDB.getSynchronizationProfile();
cp.setServerName(HOST);
cp.setPortNumber(PORT);
//cp.getStreamParams().setUrl_Suffix("/cli/iarelayserver/farmAstSUPR");
cp.setDomainName("default");


if (!Otonom3GTestDB.isSynchronized("default")) {
Otonom3GTestDB.disableChangeLog();
Otonom3GTestDB.synchronize("default");

SynchronizationGroup sg = Otonom3GTestDB.getSynchronizationGroup("default");
sg.setEnableSIS(true);
sg.save();
} else {
Otonom3GTestDB.synchronize("default");
}

Otonom3GTestDB.openConnection();

Accepted Solutions (1)

Accepted Solutions (1)

former_member184221
Contributor
0 Kudos

Answers (1)

Answers (1)

bob_gallo58
Participant
0 Kudos

So does the device come on-line in SCC?

For connection properties you should use:

Server -- "Your Relay Server host

Port    --  80 or 443

FarmID  --  you MBS farm

This should allow teh device to register (Come active on SCC)

For Sync-ing try

Syncing server ---- SUP Server

Syncing port  ---    2480

See if that works.  I would always test the connection with our any security (port 80) to make sure it works then try using SSL/443

Also mention in the  the Reply about, you can test to see if your device will connect to the RelayServer/RSOE:

By using a browser http://SERVER/ias_relay_server/client/rs_client.dll/RBSorMBSFarmname

The MBS test will normall return //tm

RBS test should return "Docuement not  Found"

Hope this helps