SUP native app on iOS

Hi,
I just started development on SUP 2.1.2 and created an MBO for BAPI_FLIGHT_GETLIST successfully.
I assigned an PersonalizationKey for Input parameter ARLINE and tested the MBO in Eclipse - it works like as expected.
Then I followed the Sybase tutorial http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01217.0212/doc/html/apr1321399368214.html an successfully registered my device at the SUP Server.
My question is how I can execute the MBO? Goole told me to populate the input parameter using the PK like follows:
SAPFlightsPersonalizationParameters *pp = nil;
    pp = [SAPFlightsSAPFlightsDB
          getPersonalizationParameters];
    pp.AirlinePK = @"LH";
    [pp save];
But executing this, causes an Exception:
2012-03-05 15:39:58.873 SAP Flights[1398:f803] *** Terminating app due to uncaught exception 'SUPReadWriteLock error', reason: 'attempt to unlock when not locked'
First throw call stack:
(0xf19052 0x2164d0a 0xb1eaa 0x57a87 0x575ac 0x53680 0x4fe0b 0x4ced6 0x3205 0xf1aec9 0x11495c2 0x114955a 0x11eeb76 0x11ef03f 0x11ee2fe 0x116ea30 0x116ec56 0x1155384 0x1148aa9 0x2487fa9 0xeed1c5 0xe52022 0xe5090a 0xe4fdb4 0xe4fccb 0x2486879 0x248693e 0x1146a9b 0x2872 0x27e5)
terminate called throwing an exception
I dont know if I am doing the right steps to select data via MBO. Maybe I am wrong.
Any hints?
Thx
Meikel

Hi
Did you see this thread?
http://stackoverflow.com/questions/6737671/unhandled-exceptions-in-ios-generated-code
May be this could help.
One other hint: I am taking a guess, when we developed xcode to access SUP classes we had to turn off autorelease pool in our iOS apps as the SUP uses malloc and dealloc in the generated classes. This holds good for SUP 2.0 not sure about SUP 2.1.
Regards
LNV

Similar Messages

  • I'm using a 16GB iPhone 4s, with the latest version of iOS 8.1.1. Whenever I go to the "Cellular" settings on the main settings page and turn OFF cellular data usage for native apps like mail, app store, contacts, photos etc , the moment I back out a

    I'm using a 16GB iPhone 4S, with the latest version of iOS 8.1.1. Whenever I go to the "Cellular" settings on the main settings page and turn OFF cellular data usage for native apps like mail, app store, contacts, photos etc , the moment I back out and come back in, all the native apps I turned cellular off for are back on again. Kindly help me

    Exact same question as ankit1986, specifically with the photos while on cellular-only, and as simple as it sounds, I tried the hard reboot Ingo2711 suggested.  Still experiencing the same error with the native apps reverting to on.  It's killing our shared data-plan (2GB).

  • Cannot use Create method with SODataEntity in iOS Native Apps connect to SMP 3.0 SP05

    Hi experts,
    I am following these blogs:Mobile Application Development Platform for Developers - Native Apps. They are very helpful, thanks Kenichi.
    But i have some error when i use Integration gateway.
    First, i try method Read, it works perfectly. Then, i try to use method Create, and i meet an error. Here is the error :
    Error Domain=NetworkDomain Code=4 "HTTP Response: 403 forbidden" UserInfo=0x7f86d2688040 {NSLocalizedDescription=HTTP Response: 403 forbidden}
    I test CRUD method in REST client, and it runs without any errors. I think the difference between Create and Read method is "X-CSRF-Token": Fetch with Read and specific Token with Create. But i do not know how to supply or config "X-CSRF-Token" field when use SOData...
    Thanks and Reagrads,
    Sao Vu.

    Hi Sao,
    Is your problem solved?
    If not, below code may be able to help you for creation using ODataStore:
    MAFLogonRegistrationData *data = [[MyLogonHandler shared].logonManager registrationDataWithError:&error];
        NSString *baseURL = [NSString stringWithFormat:@"%@", data.applicationEndpointURL];
        //opening the store
        self.onlineStore = [[OnlineStore alloc] initWithURL:[NSURL URLWithString:baseURL]
                                    httpConversationManager:[MyLogonHandler shared].conversationManager];
        [self.onlineStore openStoreWithCompletion:^(BOOL success) {
    //Read request after the store is successfully opened
            SODataRequestParamSingleDefault* readRequest = [[SODataRequestParamSingleDefault alloc] initWithMode:SODataRequestModeRead resourcePath:@"CollectionName"];
            [self.onlineStore scheduleRequest:readRequest delegate:self];
            NSString *finishedSubscription = [NSString stringWithFormat:@"com.sap.sdk.request.delegate.finished.%@",  readRequest];
    //Going for create once read request is success
            [[NSNotificationCenter defaultCenter] addObserverForName:finishedSubscription object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
    //Creating request for posting the data
    SODataRequestParamSingleDefault* insertRequest = [[SODataRequestParamSingleDefault alloc] initWithMode:SODataRequestModeCreate resourcePath:@"CollectionName"];
                insertRequest.payload = entityForCreation; //Assigning the payload
                [self.onlineStore scheduleCreateEntity:entityForCreation collectionPath:@"Collection
    Name" delegate:self options:nil];
    //Alternatively you can use [self.onlineStore scheduleRequest:insertRequest delegate:self]; also instead of scheduleCreateEntity
    If you want to pass X-CSRF-Token with RequestBuilder, you can use the following code:
    //Create request for getting the token
          id<Requesting> request = [RequestBuilder requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:endPoint_URL]]];
            /*Set user name */
            [request setUsername:[[NSUserDefaults standardUserDefaults] objectForKey:@"USERNAME"]];
            /*Set password */
            [request setPassword:[[NSUserDefaults standardUserDefaults] objectForKey:@"PASSWORD"]];
            /*Set the required request headers*/
            [request setRequestMethod:@"GET"];
            [odp_Request addRequestHeader:@"X-CSRF-Token" value:@"Fetch"];
            [odp_Request addRequestHeader:@"X-CSRF-Cookie" value:@"Fetch"];
            [request addRequestHeader:@"Content-Type" value:@"application/xml; charset=UTF-8"];
            [request addRequestHeader:@"X-SMP-APPCID" value:applicationConnectionID]];
            [request addRequestHeader:@"X-SUP-APPCID" value:applicationConnectionID]];
            /*Set the delegate to receive the response */
            [request setDelegate:self];
            /*Set the success listener */
            [request setDidFinishSelector:@selector(tokenSuccess:)];
            /*Set the failure listener */
            [request setDidFailSelector:@selector(tokenFailed:)];
            /*Invoke the startAsyncronous API to send the request from client to server asynchronously */
            [request startSynchronous];
    //In the tokenSuccess method (- (void)tokenSuccess:(Request*)theRequest), you can use the following code to retrieve the token:
          token=[[theRequest responseHeaders]objectForKey:@"X-CSRF-TOKEN"];
           cookie=[[theRequest responseHeaders]objectForKey:@"SET-COOKIE"];
    //Create the request for posting your content to the server
                NSString* requestUrls = [NSString stringWithFormat:@"%@SalesOrders%@", endPoint_URL,filterString];  
                postRequest = [RequestBuilder requestWithURL:[NSURL URLWithString:requestUrls]];
                //             odp_Request = [ODPRequest requestWithURL:[NSURL URLWithString:requestUrls]];
                //id<SDMRequesting> request = [SDMRequestBuilder requestWithURL:[NSURL URLWithString: requestUrls]];
                [postRequest setUsername:[[NSUserDefaults standardUserDefaults] objectForKey:@"USERNAME"]];
                [postRequest setPassword:[[NSUserDefaults standardUserDefaults] objectForKey:@"PASSWORD"]];
                [postRequest setDelegate:self];
                [postRequest setRequestMethod:@"POST"];
                [postRequest addRequestHeader:@"content-type" value:@"application/atom+xml;type=entry"];
                [postRequest addRequestHeader:@"X-SMP-APPCID" value:applicationConnectionID]]; //Assinging the applicationConnectionID value to the request
                [postRequest addRequestHeader:@"X-CSRF-Token" value:token]; //Assinging the token value to the request
                [postRequest addRequestHeader:@"Cookie" value:cookie]; //Assinging the cookie value to the request
                [postRequest appendPostData:[xml dataUsingEncoding:NSUTF8StringEncoding]]; //Appending the body of the request
                [postRequest setDidFailSelector:@selector(updaterequestFailed:)]; //Failure delegate method
                [postRequest setDidFinishSelector:@selector(updaterequestFinished:)];  //Success delegate method
                [postRequest setTimeOutSeconds:200]; //Timeout for request
                [postRequest startSynchronous];
    Hope this will help you.
    Regards,
    Dhani

  • Upgraded to ios 5 and now none of my non-native apps will open

    Last night i upgraded my ipad 1 to ios 5 - now no non-native apps will open - they appear as if they will - screen begins to blacken and icons move in, but then immediately revert back to home screen.  Help?

    Not me, Ive had my ipad since last xmas, all was working fine till I upgraded to IOS 5.0.. Since then everything crashes several times during the day. Safari, mail, even my non-native apps. I HAVE NEVER HAD THIS PROBLEM BEFORE>>> Ive tried restarting, resetting, reinstalling... still happens... Tried everything..
    Any help....??

  • I bought an iPhone 5s in China and the maps app is different.  When I go to the US will I be able to use Apple's native app or will I be stuck with this one?

    So I wanted to ask a question that my googlefoo couldn't help me solve.
    I bought an iphone at a reputable electronics market here in China and it is an AT&T model phone.  I bought it at one of the grey market locations because they were sold out elsewhere.  I contacted a friend at AT&T to make sure it is a legit AT&T model.  The phone is great and everything works perfectly including maps.  But maps are done by Autonavi here in China, not Apple.  I downloaded the Mavericks update on my mac and tried some of the new maps features and they wouldn't work with my phone.  That's okay since I live in China now but I'll be going back to the USA soon and I wonder what will happen.  Will it update the app to Apple's native one or stay with Autonavi.  Autonatvi does not have the flyover features and it is not robust in the USA.
    Who can help me out here?  Has anyone purchased a 5, 5c, or 5s in China and gone elsewhere?  Did the maps app change?
    Thank you
    tl;dr my china iphone has autonavi for maps not apple, when I go to the usa will I get the native app?

    I live in China as well and my iPhone5s is the model A1530 I bougth outside China. I have the same problem as Nikatnight with the iPhone while the iPad Air (wifi only) is working like a charm. It must be definitely something related to the carrier since I was abroad few days ago and everything worked well.
    If you pay attention at the source of your maps, you'll discover they are provided by AutoNavi instead of TomTom and make them appear in chinese with their own border interpretation. Queries are only acceppted in Chinese (p.e. if I type in english "Los Angeles International Airport"  it replies it cannot locate it)
    I suppose everything will be fine when you'll be out of censorship....
    Perhaps iOS  Apple Maps are absolutely useless for expatriate in China.
    Use Google Maps instead
    BTW, I'm surprised how much Apple might prostrate towards hard power Governments.... No matter what, money are always on top!

  • Is it possible to create a shortcut for current time / date with iPhone native apps?

    is it possible to create a shortcut to insert the current time / date in a text such as a Note with iPhone (IOS 6) native apps (not a 3rd. party app)?
    By "shortcut" I mean a combination of characters, the same as under settings/general/keyboards/shortcuts.
    thanks.

    Code that does it is here:
    http://forum.java.sun.com/thread.jsp?forum=48&thread=453846&tstart=0&trange=15
    MOD

  • Husband and Wife sharing iPad; possible to have two accounts w / separate logins? (or two separate email accounts using native apps)

    Each of us wants to check email, have our own bookmarks, own apps, etc.
    Logging in and out of certain apps like email seems like it would be a hassle, especially for my wife. Email is probably the biggie here, but web browsing is also a potential issue.
    We have our Mac set up like this, and was hoping there was some type of "switch user" feature on the iPad so we wouldn't delay logins (when you open the cover) but we would be able to each have our own "look and feel" to the device.
    Seems like a no-brainer, but have done some searching and sounds like this is a no-go. Workarounds are probably not going to work as my partner is not technically inclined.
    At the very least, we'd like to both be able to check email using the native app (without a lot of fussing to log in / out, typing long passwords etc).
    Possible?

    Thanks.
    Privacy is not the issue, rather the issue is ease of use and keeping a healthy marriage. She hates it when I change the settings (or background image, etc etc) and I hate not being able to customize the user experience to fit my needs.
    We do share a laptop and use two separate user accounts. I'm very surprised that multi-user capability is not built into iOS. Bummer. Kindle is getting toasted in the press for this. Seems iPad is no better.

  • Sync data between third-party contacts and calendar apps, and the native apps, in 10.9.3+?

    I've had to refrain from updating my Mac Pro from 10.8.5 to 10.9 owing to the removal of SyncServices.  I then read that SyncServices was re-introduced on a limited basis in 10.9.3. 
    It seems unlikely, but I'd like to know whether or not SyncServices in 10.9.3 re-enables the syncing of data between third-party contacts & calendar apps and the native apps, and thereby enables syncing of contacts and calendar info between third-party apps and iOS devices over USB via iTunes.  This is the method I use exclusively by choice in 10.8.5, and I will not change it to a cloud-based solution under any circumstances.
    If it is not possible, is there a third-party workaround?  My calendar app on the Mac Pro at the moment is BusyCal, syncing with Week Cal on the iPhone, but I'll happily buy a new combo of apps if it means I can upgrade to Mavericks and retain USB syncing.
    EDIT: a solution which permits syncing of a third-party calendar app on the Mac Pro with a third-party calendar app on the iPhone over an ad-hoc wireless network would also be acceptable, I suppose.

    Well, that's pretty disappointing.  I guess Apple believes Internet is free and everywhere.

  • Adobe Air apps - sell in stores like 'native' apps?

    The web site says - deploy standalone applications to Android, BlackBerry, iOS devices,
    But can these apps be sold in the various mobile app stores like native apps can? for example iTunes and the others for the various platforms?

    Yes you can offer yours apps for free or charge for them in all the major stores, iTunes App Store, Google Play, NOOK Store, Amazon Market and Blackberry App World. Extensions exists that allow you to sell in game content too.

  • Anyone else getting errors when importing Music Library music into non-native apps?

    I have had a bunch of Music Production apps On my iPad for a long time and all the way through iOS four iOS 5 they worked just fine importing songs from my iPod library on my iPad and my iPhone however all of a sudden after the iOS six update they do not any longer seem to have the ability to import these songs.  It appears to be a universal problem across ALL non-native apps ... On songs that are DRM-Free.  I have specifically tried importing tracks that have imported before with no problems, downloading new copies of the same tracks, and purchasing new DRM-free content in the iTunes Store.  None of which will work.  My devices are not jailbroken, or altered from factory in any way, I just purchased a new iPhone 5 and a new iPad 3 and neither of them are allowing me to import these tracks.  I have tried:
    AnyTune / AnyTune HD
    Vocalive (paid version) from IK Multimedia
    Amplitube / Fender Amplitube from IK Multimedia
    ISequence Pro HD
    Studio HD
    Is anyone else experiencing this problem?  I have -- on a few apps -- been shown the "Convert this song to a different format and try again" dialog, and I can import songs if I use my laptop and a browser, but I can't seem to import any song directly from the Music Library stored locally on my iPad or my iPhone.
    Help?
    Best Regards, Rob Norton

    Thanks, Ed.
    Well, if iTunes is running, I figured out that you can drag the folder where the wav files are directly onto the main portion of the iTunes screen. This will
    import the wav files into iTunes. Then group select the new song
    entries and use "convert selection to AAC" from the Advanced menu.
    There may be a way to convert without creating double entries for the
    songs (I think that's the way you have to do it in iTunes: hence my attitude that iTunes is convenient in some respects, but less than clear in other respects..in other words, it's not a perfect program), but I delete the wav tracks after the conversion.
    This is what I've gleaned from using iTunes a bit and from having been advised by friends. So, other than using a third-party freeware like X Lossless Decoder to convert music files before moving them onto iPod, apparently this is what you have to deal with when using the iTunes program.
    If any Apple people are reading this, I would personally like the iTunes "importing" and display functions to be clearer and less cumbersome to use (like that third-party freeware). iTunes seems to be easy enough to use if you're importing music from a CD, but measurably less so if you just want to convert music files residing elsewhere on the computer's hard drive.

  • How to open a pdf in its native reader in iOS using AIR?

    Hi there,
    I am wondering if there is any feasability of opening a pdf directly in its native reader in iOS environment. I needed this to happen from an AIR application.
    I have found that AIR can be extended using a java program to do the above task for Android.
    here is the link: http://www.jamesward.com/2011/05/11/extending-air-for-android/
    Thanks in advance,
    Sris

    Thanks everyone for the solutions.
    After working all the possibilities to open locally saved file on iPad
    1. StageWebView 
    2. navigateToUrl
    3. file.openWithDefaultApplication();
    4. Java socket extension for AIR,
    I finally found a solution.
    StageWebView works on ipad.
    the code that works is as suggested by xperiments.es.fr
    But the problem I faced was saving the pdf and opening the locally saved file.
    Since iOS does not support desktopDirectory & documentDirectory, I tried to save the pdf in applicationDirectory/applicationStorageDirectory, that didnt work when I tried to open the pdf from those locations.
    So the only way was to store the generated PDF in a temporary directory and StageWebView could locate and load that
    It works!!!
    Now the next challenge is, while the desktop (Windows) compilation of the app shows PDF reader with menu options, which does not show on iPad app. IPad app shows just a page index on left-top corner. It would be good if the options are shown as well.
    Lets see!!!
    Cheers,
    Sris

  • Upgrade worked(?), apps back, but non-native apps won't open

    Anybody having this problem....after 6 hours, iOS 5 update completed on my iPad2.  No error messages, all apps back where they belonged.  I thought I was one of the lucky few for which it all worked.
    But..none of my non-native apps will even open - just a quick darkening of the screen and back to Home.
    All native apps open and work.
    I have rebooted...nothing...
    Should I try restoring again?  Or is there a way that would take less than 6 hours??
    Thanks

    Exact same problem, I restored and it seemd to work again - so i put all my apps and movies back on and volla, it does the 'maximizing' animation as if the app is about to start loading then it just vanishs.. the built in apps all work but not a single other app loads

  • OWA App for iOS devices

    There isn't a lot of info out there on the OWA app for iOS. I saw a reference where the current version is supposed to work with an on premise Exchange 2013 SP1 deployment but I cannot get it working at all even when going directly to my 2013 CAS server. 
    Has anyone be able to get this app working with an on premise deployment (no hybrid or O365). 
    Accessing OWA through the native browser works fine so I don't think it's an OWA issue.

    Yeah, that's what's got me.  There's nothing to the app setup.
    It goes through and does the autodiscover and asks if I trust the server I'm being directed to with the option of "close" or "no".  Then it comes back with "Couldn't connect to server".  I go through the advanced settings and fill in all the options
    there and it still comes back with the same message.  All my Service URL's are working correctly and the testexchangeconnectivity tests all pass.
    I get the same thing if I go directly to the CAS server's address or through the external URL. 
    Sounds like a cert issue. Is there a 3rd party trusted cert applied to IIS on the CAS with the correct Subject name?
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Porting existing Android native app to Adobe AIR

    I indent to port a existing Android native app to Adobe AIR for android. Reasons: To use my existing AS3 skills, "cost" for native is too high and soon port it to iOS.
    Difficulties I face here:
    Existing app package, say "com.mygame.myapp" has to be retained. By using FB with AIR SDK, we get a "air." prefix to the package name. It becomes "air.com.mygame.myapp".
    Will this solution still solve the problem in AIR SDK removing "air." prefix from package name has any working solution!?.
    The help link http://helpx.adobe.com/air/kb/opt-out-air-application-analytics.html is dead now. iOS specific is found here Opt-out | Adobe AIR app analytics | iOS
    Please suggest me a Mac suitable solution.
    In Android, using a ".keystore" file, we need to export as the ".APK" file. In AIR, if we publish using a new ".p12" signature file would it be compatible with Google Play, and it rules.
    App's existing users should find difficulty in upgrading the app.
    Another unanswered thread Possible to remove "air." appended on package and target a .keystore rather than .p12?
    Thanks a lot.

    I was able to figure it out with the help of Jeff Ward Ooh, I just discovered how to easily remove the 'air.' prefix when packaging…
    Tested and works fine with AIR SDK 15, Mac OSX 10.10 Yosemite. actionscript 3 - Android App ID prefix problem - Stack Overflow
    java -jar /FULL_PATH_TO_AIR_SDK/lib/adt.jar -package -target apk-captive-runtime -storetype jks -keystore <DEVELOPER>.keystore -storepass <PASSWORD> Main.apk Main-app.xml Main.swf -extdir /PATH_TO_ANE_DIRECTORY

  • Help my native apps won't connect to internet

    *Cannot Verify Sever Identity
    *none of my native apps will connect to the internet youtube/facebook/twitter.......
    *my alarm dosent work
    I'm on the internet now, so there's nothing wrong with the internet, but if I have the option to use the app insted of the web version I just get a blank screen.
    I has some developer profiles installed so I have deleted them but think its a var/mobile/library/catches/com.apple-plist problem?
                                                                                                                         Or system/private/TelephonyUI.....
    Please help as I'm just going around in circuls

    I am on IOS 7.0.6 witch is version 11B651
    Iphone 5 model MD297B/A, that supports A1429
    Capacity 13.3G.
    Please could you give me any instructions on how to rectify this error  

Maybe you are looking for

  • Problem with backtick replacing apostroph in applescript/shell script

    I've got a script that appears to be using a backtick instead of an apostrophe which is causing an error in my shell script. For the life of me I can't seem to find where the error is being generated? The script is attached below. I'm using Exiftool,

  • SP with input parameters to disable and enable indexes

    I need to build a stored proc script with input paramters to disable indexes and enable indexes of specific tables. Parameter would be tablename,schemaname,a value input which will determine if it is for disabling index or enabling index I will have

  • Problems with Requests

              Hi,           i am using weblogic in my project both as a webserver and as the application server.           But i am facing problems with requests being sent to the server. Basically i have           a form in my jsp which, if submitted by

  • I have a Macbook white from 2007, I was wondering if there is a way to update the processor?

    And if there is, is the processor soldered to the board? Or just a click in one. Thank you.Can some also suggest a good place to buy replacement parts for my macbook? I'm from the UK. Thank you.

  • Pictures are gone!

    Hi, I made several back ups on icloud and also on my computer, but when i recovered my phone(ios7Jailbroken) and did the update to ios 8 to remove the jailbreak i lost many pictures. I made a back up so why? as you see on the picture it says 900+ pic