on 02-27-2013 2:54 PM
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
Native Android-MBO Non-DOE based approach through Relay Server but still couldn't achieve to connect.
I am getting this error: (Line 23)
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 18 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
Relay server:
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();
The URL you have given is interesting. The suffix URL depends on where the Relay server has been installed on your server.
.
Typically this would be:
.
ias_relay_server/client/rs_client.dll/farmAstSUPR.rbs.farm
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.