Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

SUP 2.1.3 iOS Object API issues

5 posts in General Discussion Last posting was on 2012-10-25 11:55:41.0Z
stevem Posted on 2012-06-06 06:42:33.0Z
Sender: 3b59.4fceee0b.1804289383@sybase.com
From: stevem
Newsgroups: sybase.public.sup.general
Subject: SUP 2.1.3 iOS Object API issues
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4fcefbd9.3dd1.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 5 Jun 2012 23:42:33 -0700
X-Trace: forums-1-dub 1338964953 172.20.134.41 (5 Jun 2012 23:42:33 -0700)
X-Original-Trace: 5 Jun 2012 23:42:33 -0700, 172.20.134.41
Lines: 70
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1024
Article PK: 1087173

I have an ARC-enabled project written for use with SUP
2.1.3. As per the docs, I have
created a second target and dependency in my project and
added the generated code
created from the MobileSDK. ARC is disabled in the build
settings of new static
library. Clean-Build and there is a little bit of trouble.

Even though the generated code is nicely dealt with by the
static library, I still need to
refer to the $SRCROOT/<appname>/includes/** in the Header
Search area of the
build settings for the main app. Shouldn't be a problem I
think, but the compiler is
telling me that one of the method signatures is not
ARC-compliant:


File: SUPAbstractLocalEntity.h

Method Definition: -(SUPQuery*)
initChildrenQuery:(SUPQuery*)query :(SUPStringList*)keys;

Error Message: ARC Issue. Init methods must return a type
related to the receiver type


For kicks, I adjusted the definition in the header to return
(id) just to see if I could get
a clean compile. Compiles, but I am not sure this is the
right way to go about this
sort of thing.

Next - carefully looking at the SUP101 example for ESD#3 I
made some changes to my
code. Without fail, my program establishes a connection to
my unwired server,
registers nicely, enters the callback method
onConnectSuccess sets the Sync Profile
fine(?) and then dumps on the [MyAppMyAppDB subscribe]
call. The MBOErrorLog is
telling me:

-[SUPClientPersonalization setKey_name:]: unrecognized
selector sent to instance
0xbc12df0

As far as I can tell by looking at the SUP101 app that came
with ESD#3, I have all of
the includes in the right places, and the the call is not
failing in 'debuggable' code.


Last thing - I would normally just sit with the latest
version of SUP101 and use it to
test things with, but for some reason version 2.1.3 of the
MobileSDK refuses to
connect the the sampledb. It is very odd, as I can easily
connect to the sampledb
using Sybase Central 6.1.0 with the default dba/sql - port
5500 settings.


If anybody here can shed some light on any of these problems
I would greatly
appreciate it.

kind regards,

steve


Guven Posted on 2012-10-03 02:05:12.0Z
Sender: 3d4f.506b9d29.1804289383@sybase.com
From: Guven
Newsgroups: sybase.public.sup.general
Subject: Re: SUP 2.1.3 iOS Object API issues
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <506b9d58.3d59.1681692777@sybase.com>
References: <4fcefbd9.3dd1.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 2 Oct 2012 19:05:12 -0700
X-Trace: forums-1-dub 1349229912 172.20.134.41 (2 Oct 2012 19:05:12 -0700)
X-Original-Trace: 2 Oct 2012 19:05:12 -0700, 172.20.134.41
Lines: 22
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1104
Article PK: 1020177

I guess Steve and I went through the same steps as I am
getting very similar errors.

In my case, the application was working fine with SUP 2.1.2
(iOS Native & MBS). As I tried to upgrade to SUP 2.1.3 (and
also migrate to RBS), the following problems occurred:

i) SUPAbstractLocalEntity is complaining due to the ARC
issue. Modifying this file prevents the build error but this
really shouldn't be a solution.

ii) "[SUPClientPersonalization setKey_name:]: unrecognized
selector sent to instance" exception is thrown as I try to
synchronize. A little difference in the behaviour here (form
Steve's case) since I can actually still execute the
subscribe call. However, after subscription, the synchronize
can't be successfully completed due to the exception above.

Also, I have double-checked the 'transition to RBS for iOS
applications' document and i don't see the call to subscribe
there. Is it no longer necessary? Any support here would be
greatly appreciated.


asdasd Posted on 2012-10-25 11:55:41.0Z
Sender: 6312.50892874.1804289383@sybase.com
From: asdasd
Newsgroups: sybase.public.sup.general
Subject: Re: SUP 2.1.3 iOS Object API issues
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <508928bd.6323.1681692777@sybase.com>
References: <4fcefbd9.3dd1.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 25 Oct 2012 04:55:41 -0700
X-Trace: forums-1-dub 1351166141 172.20.134.41 (25 Oct 2012 04:55:41 -0700)
X-Original-Trace: 25 Oct 2012 04:55:41 -0700, 172.20.134.41
Lines: 71
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1112
Article PK: 1020185


> I have an ARC-enabled project written for use with SUP
> 2.1.3. As per the docs, I have
> created a second target and dependency in my project and
> added the generated code
> created from the MobileSDK. ARC is disabled in the build
> settings of new static
> library. Clean-Build and there is a little bit of
> trouble.
>
> Even though the generated code is nicely dealt with by the
> static library, I still need to
> refer to the $SRCROOT/<appname>/includes/** in the Header
> Search area of the
> build settings for the main app. Shouldn't be a problem
> I think, but the compiler is
> telling me that one of the method signatures is not
> ARC-compliant:
>
>
> File: SUPAbstractLocalEntity.h
>
> Method Definition: -(SUPQuery*)
> initChildrenQuery:(SUPQuery*)query :(SUPStringList*)keys;
>
> Error Message: ARC Issue. Init methods must return a type
> related to the receiver type
>
>
> For kicks, I adjusted the definition in the header to
> return (id) just to see if I could get
> a clean compile. Compiles, but I am not sure this is the
> right way to go about this
> sort of thing.
>
> Next - carefully looking at the SUP101 example for ESD#3 I
> made some changes to my
> code. Without fail, my program establishes a connection
> to my unwired server,
> registers nicely, enters the callback method
> onConnectSuccess sets the Sync Profile
> fine(?) and then dumps on the [MyAppMyAppDB subscribe]
> call. The MBOErrorLog is
> telling me:
>
> -[SUPClientPersonalization setKey_name:]: unrecognized
> selector sent to instance
> 0xbc12df0
>
> As far as I can tell by looking at the SUP101 app that
> came with ESD#3, I have all of
> the includes in the right places, and the the call is not
> failing in 'debuggable' code.
>
>
> Last thing - I would normally just sit with the latest
> version of SUP101 and use it to
> test things with, but for some reason version 2.1.3 of
> the MobileSDK refuses to
> connect the the sampledb. It is very odd, as I can easily
> connect to the sampledb
> using Sybase Central 6.1.0 with the default dba/sql - port
> 5500 settings.
>
>
> If anybody here can shed some light on any of these
> problems I would greatly
> appreciate it.
>
> kind regards,
>
> steve


roykv Posted on 2012-06-22 10:15:44.0Z
Sender: 4b02.4fe443ee.1804289383@sybase.com
From: roykv
Newsgroups: sybase.public.sup.general
Subject: Re: SUP 2.1.3 iOS Object API issues
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4fe445d0.4b73.1681692777@sybase.com>
References: <4fcefbd9.3dd1.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 22 Jun 2012 03:15:44 -0700
X-Trace: forums-1-dub 1340360144 172.20.134.41 (22 Jun 2012 03:15:44 -0700)
X-Original-Trace: 22 Jun 2012 03:15:44 -0700, 172.20.134.41
Lines: 85
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1044
Article PK: 1087193

Hi All,

We are facing the exact same issue. However, in our case the
sample SUP101 app worked fine. But when we ported our own
application to SUP 2.1.3 we got the error mentioned by
Steve. The only difference we can see is that we use
personalization keys and the SUP101 app doesn't. Has anyone
else faced the issue? If so, what was the solution. We
really need the personalization keys for our application.

Regards,
Roy

> I have an ARC-enabled project written for use with SUP
> 2.1.3. As per the docs, I have
> created a second target and dependency in my project and
> added the generated code
> created from the MobileSDK. ARC is disabled in the build
> settings of new static
> library. Clean-Build and there is a little bit of
> trouble.
>
> Even though the generated code is nicely dealt with by the
> static library, I still need to
> refer to the $SRCROOT/<appname>/includes/** in the Header
> Search area of the
> build settings for the main app. Shouldn't be a problem
> I think, but the compiler is
> telling me that one of the method signatures is not
> ARC-compliant:
>
>
> File: SUPAbstractLocalEntity.h
>
> Method Definition: -(SUPQuery*)
> initChildrenQuery:(SUPQuery*)query :(SUPStringList*)keys;
>
> Error Message: ARC Issue. Init methods must return a type
> related to the receiver type
>
>
> For kicks, I adjusted the definition in the header to
> return (id) just to see if I could get
> a clean compile. Compiles, but I am not sure this is the
> right way to go about this
> sort of thing.
>
> Next - carefully looking at the SUP101 example for ESD#3 I
> made some changes to my
> code. Without fail, my program establishes a connection
> to my unwired server,
> registers nicely, enters the callback method
> onConnectSuccess sets the Sync Profile
> fine(?) and then dumps on the [MyAppMyAppDB subscribe]
> call. The MBOErrorLog is
> telling me:
>
> -[SUPClientPersonalization setKey_name:]: unrecognized
> selector sent to instance
> 0xbc12df0
>
> As far as I can tell by looking at the SUP101 app that
> came with ESD#3, I have all of
> the includes in the right places, and the the call is not
> failing in 'debuggable' code.
>
>
> Last thing - I would normally just sit with the latest
> version of SUP101 and use it to
> test things with, but for some reason version 2.1.3 of
> the MobileSDK refuses to
> connect the the sampledb. It is very odd, as I can easily
> connect to the sampledb
> using Sybase Central 6.1.0 with the default dba/sql - port
> 5500 settings.
>
>
> If anybody here can shed some light on any of these
> problems I would greatly
> appreciate it.
>
> kind regards,
>
> steve


Roy Posted on 2012-07-12 11:52:56.0Z
Sender: 3cc9.4ffeb9b9.1804289383@sybase.com
From: Roy
Newsgroups: sybase.public.sup.general
Subject: Re: SUP 2.1.3 iOS Object API issues
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4ffeba98.3ce6.1681692777@sybase.com>
References: <4fcefbd9.3dd1.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 12 Jul 2012 04:52:56 -0700
X-Trace: forums-1-dub 1342093976 172.20.134.41 (12 Jul 2012 04:52:56 -0700)
X-Original-Trace: 12 Jul 2012 04:52:56 -0700, 172.20.134.41
Lines: 80
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1058
Article PK: 1087207

I have experienced the exact same issue with my own code.
The only difference is that I have client side
personalization keys defined in my MBO (The tutorial doesn't
use personalization keys as far as I know). Changing the
personalizations key from client to server resulted in an
error as well.

Have you been able to find a solution?

> I have an ARC-enabled project written for use with SUP
> 2.1.3. As per the docs, I have
> created a second target and dependency in my project and
> added the generated code
> created from the MobileSDK. ARC is disabled in the build
> settings of new static
> library. Clean-Build and there is a little bit of
> trouble.
>
> Even though the generated code is nicely dealt with by the
> static library, I still need to
> refer to the $SRCROOT/<appname>/includes/** in the Header
> Search area of the
> build settings for the main app. Shouldn't be a problem
> I think, but the compiler is
> telling me that one of the method signatures is not
> ARC-compliant:
>
>
> File: SUPAbstractLocalEntity.h
>
> Method Definition: -(SUPQuery*)
> initChildrenQuery:(SUPQuery*)query :(SUPStringList*)keys;
>
> Error Message: ARC Issue. Init methods must return a type
> related to the receiver type
>
>
> For kicks, I adjusted the definition in the header to
> return (id) just to see if I could get
> a clean compile. Compiles, but I am not sure this is the
> right way to go about this
> sort of thing.
>
> Next - carefully looking at the SUP101 example for ESD#3 I
> made some changes to my
> code. Without fail, my program establishes a connection
> to my unwired server,
> registers nicely, enters the callback method
> onConnectSuccess sets the Sync Profile
> fine(?) and then dumps on the [MyAppMyAppDB subscribe]
> call. The MBOErrorLog is
> telling me:
>
> -[SUPClientPersonalization setKey_name:]: unrecognized
> selector sent to instance
> 0xbc12df0
>
> As far as I can tell by looking at the SUP101 app that
> came with ESD#3, I have all of
> the includes in the right places, and the the call is not
> failing in 'debuggable' code.
>
>
> Last thing - I would normally just sit with the latest
> version of SUP101 and use it to
> test things with, but for some reason version 2.1.3 of
> the MobileSDK refuses to
> connect the the sampledb. It is very odd, as I can easily
> connect to the sampledb
> using Sybase Central 6.1.0 with the default dba/sql - port
> 5500 settings.
>
>
> If anybody here can shed some light on any of these
> problems I would greatly
> appreciate it.
>
> kind regards,
>
> steve