Have found no info in UltraLiteJ API Reference with this one. When Attempting to sync, after setting the parameters, I get the following exception: "Error -1224: Synchronization profile '<null>' has invalid parameter 'host'." This is what I have set the AdditionalParms to: "SendColumnNames=false;SendDownloadACK=true;host=cdodevapp02.cdotech.local;port=8060;buffer_size=16000;timeout=240;persistent=on;version=1.1" I see no other field in SyncParms that would get the "host". The one that seemed most logical "StreamParms" is a read-only property. So I'm stumped.

asked 07 Jul, 13:52

BESpring's gravatar image

BESpring
1419
accept rate: 20%

This is for UltraLiteJ 17.

(07 Jul, 13:54) BESpring

Both StreamHTTPParms and StreamHTTPSParms have methods setHost() and setPort(). Here is an example:

SyncParms syncParms = myConnection.createSyncParms(
       SyncParms.HTTPS_STREAM,
       "MyUniqueMLUserID",
       "MyMLScriptVersion"
   );
StreamHTTPSParms httpsParms =
   (StreamHTTPSParms) syncParms.getStreamParms();
httpsParms.setHost("MyMLHost");
httpsParms.setPort(1234);
permanent link

answered 07 Jul, 14:25

Chris%20Keating's gravatar image

Chris Keating
2.9k1650
accept rate: 29%

I think your sample is for pre 17 version of Ultralink 17. There are almost no classes. Only interfaces. Here is my code... SyncParms syncParams = dbConn.CreateSyncParms(syncStream, syncInfo.ScriptVersion, syncInfo.UserName); switch (syncStream) { case (SyncParms.HttpStream): IStreamHTTPParms httpParams = syncParams.StreamParms as IStreamHTTPParms;

At this point httpParams is NULL. syncParams.StreamParms says its http, a 1.

(07 Jul, 15:47) BESpring

The code sample I posted came from the SQL Anywhere UltraLiteJ API document for v17. UltraLiteJ API is based on JDBC with some differences. These methods have existed since the first release of UltraLiteJ.

See dcx.sap.com for the UltraLiteJ documentation.

(07 Jul, 16:06) Chris Keating

This is the same issue as the "getLastError" thread.

(07 Jul, 16:14) BESpring
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×77
×67
×32

question asked: 07 Jul, 13:52

question was seen: 51 times

last updated: 07 Jul, 16:14