Exception in saving personalization keys in iOS using SMP 2.2 SP05

Hi,
We are using personalization keys as load parameters. But In some cases, on saving personalization keys we get exception sometimes. Other then that personalization parameters work fine as load params in application. However this behavior of saving personalization parameter fails many transactions during the day.
This is the log captured directly from installed application from an IPAD. Same exception is thrown from iOS simulator as well.
May 31 01:16:29 john-smith-iPad-Air Mobile Application[3552] <Warning>: TopBarButtonsTapped called
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Received memory warning.
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: didReceiveMemoryWarning
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Memory Warning Recieved
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Item GUID = 00155D0B9D031EE3BA8772E8078F62C8
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Eception in saving Personalization Parameters = SUPPersistenceException: attempt to writelock inside an outermost readlock
May 31 01:16:31 john-smith-iPad-Air Mobile Application[3552] <Warning>: Exception in syncing scDeleteItem, Exception = SUPPersistenceException: attempt to writelock inside an outermost readlock
And this is the code which we are using.
MYPROJECTPersonalizationParameters* pp = [MYPROJECTMYPROJECTDB getPersonalizationParameters];
MYPROJECTZBAPI_SRM_MOB_SC_ITEM_DELETE_I_LINE_ITEMS* item = [MYPROJECTZBAPI_SRM_MOB_SC_ITEM_DELETE_I_LINE_ITEMS getInstance];
        [item setIV_OBJECT_ID:itemDict[kSCShoppingCartNo]];
        [item setIV_SC_GUID:itemDict[kSCShoppingCartGUID]];
        [item setIV_ITEM_GUID:itemDict[kSCItemGUID]];
        NSLog(@"Item GUID = %@",itemDict[kSCItemGUID]);
[pp setZBAPI_SRM_MOB_SC_ITEM_DELETE_I_LINE_ITEMS_PK:itemsList];
[pp save]; // exception is thrown here.
Can you please help me in figuring out the cause and fixing the issue here.
Looking forward to hear from you soon.
Thanks.

PK types are based on bapi input tables like this
ZBAPI_ERP_MOB_MM_GOODSMVCREATE_GOODSMVT_CODE
Yes, we have set client in personalization keys.
But do the empty value implementation and will get back to you.
thanks for the guid.
Kind Regards,
Waqas

Similar Messages

  • Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?

    Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?

    In case you are using "Clear history when Firefox closes":
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-browsing-search-and-download-history
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    If you have software like Advanced SystemCare (Surfing Protection feature) that might reset some files to older versions to protect these files against changes then check the settings or uninstall this software.

  • I am new to ios & using 5C. I want to know where is all the media (Images, videos, Audio etc) received through Whatsapp are saved after downloading in Iphone. And also how to access the same.

    I am new to ios & using 5C. I want to know where is all the media (Images, videos, Audio etc) received through Whatsapp are saved after downloading  in Iphone. And also how to access the same.

    These are user to user forums.  You ARE NOT addressing Apple by posting here.
    Also, why are you YELLING at us??  Stop using ALL CAPS.
    What steps have you done to try and fix the problem?

  • My MacAir is great except for a problem i have. Keys F1, F2,F5,F6,F7,F8,F9,F10,F11,F12 and the power button are unresponsive. These are keys i frequently use and i have searched the whole apple help centre. Anyone got answers for me? Please helP!!!

    My MacAir is great except for a problem i have. Keys F1, F2,F5,F6,F7,F8,F9,F10,F11,F12 and the power button are unresponsive. These are keys i frequently use and i have searched the whole apple help centre. Anyone got answers for me? Please helP!!!

    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use Mac OS X: How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    http://support.apple.com/kb/TS1381

  • Saving a key in a class file

    Hi
    i have an app that creates a key, needs to store it and read in again later on. I know how to save the key to file using the ObjectOutputStream and how to read in the key again from file.
    For security reasons i now want to store the Key in a class file (create a class file where the key is placed in as a String or something like that and than compile it [and obfuscate it}) instead of saving it to a file (because in a file everybody is able to read the key). How can i do that? I thought of a kind of "Wrapper Class" but i don't get the starting point how to do it.
    Can please somebody show me how this is done?
    Thanks a lot for your help.

    try {
                   FileOutputStream fo = new FileOutputStream(f);
                   ObjectOutputStream so = new ObjectOutputStream(fo);
                   so.writeObject(key);
                   so.flush();
              catch (IOException e) {
                   System.out.println("Serialization IOException: " + e.getMessage());
                   e.printStackTrace();
              catch (Exception e) {
                   System.out.println("Serialization Exception: " + e.getMessage());
                   e.printStackTrace();
              }the keys themselves are serializable so you can use code like this o write the key to a file. You can use FileInputStream to read the object back into your program.

  • Maintain Personalization key

    Hi,
    I have developed a mobile application using SUP and now I want to specify the data which should pass to each device. For example, the sales orders created by a particular user should go to one device and those created by another user should go to another device.
    I have learnt that this can be achieved through Personalization Keys. And in the [Sybase Online Help |http://127.0.0.1:2294/help/topic/com.sybase.sup.doc/doc/html/asc1229701428722.html]its specified that:
    "Storage u2013 determines where the key values are stored and maintained. Options include:
    Server u2013 on Unwired Server
    Client u2013 on the device client
    Transient u2013 only saved in memory of the current login session "
    I want to store and maintain the key value of Personalisation key in the server side. But I am not able to find this option in the Sybase Control Center. So please suggest a way store and maintain the key value of Personalisation key in the server side.
    Regards,
    Rahul Muraleedharan.

    Hi
    To create PP keys you will have to set a load parameter . This is mainly possible by using the where clause
    select * from product where name = :param_value
    or in RFC by setting the Input parameter.
    param_value is the load parameter for which u can add a personalization parameter.
    See the documents for more details on how to use the PP keys in you code.
    [Sybase documentation|http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01217.0155/doc/html/asc1272296429910.html?resultof=%22%50%65%72%73%6f%6e%61%6c%69%7a%61%74%69%6f%6e%22%20%22%70%65%72%73%6f%6e%22%20%22%50%61%72%61%6d%65%74%65%72%73%22%20%22%70%61%72%61%6d%65%74%22%20]
    Thanks

  • Disable Mouse and other Keys except Number and Directional keys in a screen

    Hi all,
    Recently we have developed a sceen program as per the requirements of client who are used to enter meter readings using only Enter key. They used to give Enter key to give meter readings, date of meter reading, meter reading note and consumption in their legacy system.
    Though we developed the screen as per the requirements with all validations checking simultaneously which are required but we failed to handle mouse and other keys as we have not found any specific events occured by the keys.
    Now some of the meter readers are using mouse and other keys and because of this our code is getting failed and no validations are working at all. So we want to disable the mouse and other keys except Number keys and Directional Keys while we are in the screen so that they are bound to work with the Enter and NumKeys as per their requirements.
    Please help me with an idea or code snippet by which we can solve the problem. <removed by moderator>
    - Arghya Das,
    <removed by moderator>
    Edited by: Thomas Zloch on Aug 10, 2011 12:46 PM

    Hi,
    Just go through this link, it would be helpful...
    [http://help-abap.blogspot.com/2008/10/alv-disable-delete-key-on-keyboard-in.html]
    <removed by moderator>
    Thank You,
    Regards
    Pradeep
    Edited by: Thomas Zloch on Aug 10, 2011 12:50 PM

  • Set my own key instead of using KeyGenerator.generateKey() - how?

    How can I set my own key instead of using KeyGenerator.generateKey()?
    I don´t see any method that is alowing this.

    I have now tried my own.
    To send encrypted data through a CipherOutputStream, I have done this:
    private File file;
            private CipherOutputStream cos;
            private Cipher cipher;
            private PBEKeySpec key;
            private char[] password = "test".toCharArray();
            public SendFileThread(File file)
                this.file = file;
                try
                    key = new PBEKeySpec(password);
                    SecretKeyFactory factory = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
                    SecretKey pbeKey = factory.generateSecret(key);
                    cipher = Cipher.getInstance("PBEWithMD5AndDES");
                    cipher.init(Cipher.ENCRYPT_MODE, pbeKey);
                catch(Exception err) {err.printStackTrace();}
            public void run()
                byte [] mybytearray  = new byte [(int)file.length()];
                try
                    fis = new FileInputStream(file);
                    bis = new BufferedInputStream(fis);
                    bis.read(mybytearray,0,mybytearray.length);
                    OutputStream os = socket.getOutputStream();
                    cos = new CipherOutputStream(os, cipher);
                    int byteCount = 0;
                    int length = mybytearray.length;
                    while(byteCount < mybytearray.length)
                        cos.write(mybytearray[byteCount]);
                    os.flush();
                    os.close();
                    socket.close();
                catch(FileNotFoundException err){err.printStackTrace();}
                catch(IOException err){err.printStackTrace();}To receive the encrypted data and then decrypt it, I use the same password and Cipher.DECRYPT_MODE in the Cipher.init() method.
    private Socket sock;
            private DataInputStream din;
            private CipherInputStream cin;
            private BufferedOutputStream out_file;
            private Cipher cipher;
            private PBEKeySpec key;
            private char[] password = "test".toCharArray();
            public ListenForConnectionThread()
                try
                    key = new PBEKeySpec(password);
                    SecretKeyFactory factory = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
                    SecretKey pbeKey = factory.generateSecret(key);
                    cipher = Cipher.getInstance("PBEWithMD5AndDES");
                    cipher.init(Cipher.DECRYPT_MODE, pbeKey);
                catch(Exception err) {err.printStackTrace();}
            public void run()
                try
                    serverSocket = new ServerSocket(2000);
                    sock = serverSocket.accept();
                    Runnable r = new Runnable()
                        public void run()
                            try
                                cin = new CipherInputStream(sock.getInputStream(), cipher);
                                out_file = new BufferedOutputStream(new FileOutputStream("received_file.txt"));
                                int inputLine;
                                while((inputLine = cin.read()) != -1)
                                    out_file.write(inputLine);
                                out_file.flush();
                            catch(Exception err){err.printStackTrace();}When I run the application, I get this error:
    java.security.InvalidKeyException: requires PBE parameters.
    Why?

  • Azure Sync not saving access key in web portal

    Azure Sync not saving access key in web portal.
    You generate a new key, then press Ok and the key cannot be used and does not display again.
    Could someone please have a look at this?

    Hello,
    After generate a new key on the Manage Access key page, you can click the clipboard symbol to copy the key to your clipboard, and then paste the key from your clipboard on the SQL Data Sync Client Agent.
    Reference:http://msdn.microsoft.com/en-us/library/windowsazure/jj823137.aspx
    If I have any misunderstadning, please post more details information or a screen shot about the issue.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • RemoteMartException exception while saving generated Excel file

    I am getting RemoteMartException exception while saving generated Excel report in our production system. We are using Brio query and classes in sqrib package to create an excel file.
    We did NOT make any changes in the application code recently, suddenly this problem started coming, We also observed that only limited number of users are affected. For other no issues.
    Is there any change in directory properties such as “owner” would result in this behavior? How to find out the location of user directories where the reports are getting stored?
    ####<Apr 23, 2008 1:28:28 PM EDT> <Error> <AvisInteractive> <e2psavcinweb01> <AIProdSvr01> <Thread-23> <<anonymous>> <> <000000> <QueryRunner
    com.oneanswer.avisinteractive.exceptions.AvisInteractiveException: Failed to save file to user directory
         at com.oneanswer.avisinteractive.dod.queryrun.QueryRunner.saveExcelToUserDirectory(QueryRunner.java:279)
         at com.oneanswer.avisinteractive.dod.queryrun.QueryRunner.run(QueryRunner.java:169)
         at com.oneanswer.avisinteractive.threads.ThreadPool$WorkerThread.run(ThreadPool.java:174)
    Caused by: com.sqribe.rm.ReportMartException: 1000095
         at com.sqribe.rm.SessionImpl.submit(Unknown Source)
         at com.sqribe.rm.ReportMartEntityImpl.update(Unknown Source)
         at com.sqribe.rm.VersionedObjectImpl.update(Unknown Source)
         at com.oneanswer.utils.hpsutils.HPSCategoryHelper.saveFileToCategory(HPSCategoryHelper.java:115)
         at com.oneanswer.avisinteractive.dod.queryrun.QueryRunner.saveExcelToUserDirectory(QueryRunner.java:266)
         ... 2 more
    >

    Ensure that you have not opened any excel file or text file with similar name.
    thanks
    G. Lakshmipathi

  • My ipad 2 just shows itunes and plug icon my computer wont take new version of itunes too old how do i get my ipad 2 working do not care about saving data just want to use this very expensive useless item!

    My ipad 2 just shows itunes and plug icon my computer wont take new version of itunes too old how do i get my ipad 2 working do not care about saving data just want to use this very expensive useless item!

    My iPad2 works great now after IOS 8.1 Update
    I did my iPad2 update thru iTunes on my iMac and it was sucking the iMacs memory very low during the update. Safari froze before loading the first web page and I did a hard boot and went fishing as I saw where it was going to take a long time to recover. When I tried again it wasn't quite right and then did one more hard boot and then did a Reset by going to General-Reset-"Reset all Settings" and it works real well now without loosing any data and in-home wi-fi clocks at 17Mbps download. Probably like most of you I’m sticking with OSX 10.9.5 Mavericks as it gets the job done very nicely and don’t need all that extra fancy stuff that probably will slow things down.

  • 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

  • Exception aggregation for calculated key figure

    Is it possible to have exception aggregation for calculated key figure in BW 3.5? As per Note 1151857, it is possible, however this note applies to BI 7.0.
    As per note 152638, it is possible in older version only simple ckfs like 'CKF = Base key figure'.
    Is there any workaround to define exception aggregation for complex CKFs in BW 3.5?
    My requirement is like this -
    CKF = (sales quantity - forecast) %share (sales quantity).
    Aggregation for CKF over time should be sum whereas, for all other characteristics calculation of CKF should be done after aggregation(normal scenario).
    So, defining exception aggregation of CKF as 'Summation' over time should fulfil my requirement.
    I can not use calculate result as 'summation' setting for CKF because of following design of report.
    Report contains structure(characteristic)
    Elements of structure are -
    Last 3 months(April - June)
    Last 3 months - 1 (Mar - May)
    Last 3 months - 2 (Feb - Apr)
    and so on...
    When data is aggregated for each element of structure, base KFs will be aggregated and calculations will be done on that.
    Changes in the backend are also not possible because, normal aggregation of CKF-alike in backend will be summation for all characteristics.
    Is there any way in BW 3.5 to model such a scenario?
    Thanks and Regards,
    Anup Kulkarni

    Sum of individual values of CKFs is not same as the Calculation on 'sum of basic key figures(result of basic key figures)'.  - Yes, you are right.
    I need to aggregate CKF over time as SUM. However, calculation for result of all other characteristics should be based on results of basic key figures and not the 'Sum of individual values of CKF'.  -
    What i understood is that whenever the time char is in row, then result should be simple on the sum what ur getting but when other char are there then it should go for calculation based on the sum of key figure.
    If im not wrong in getting ur point.
    How can two differenct activites be perofrmed on same key figure depending on the characteristic .....!. For this u have to think some other possibility or let somebody else update the thread.

  • Note 947091 - Persistance Exception on Client-"Entity key already exists."

    Persistance Exception on Client-"Entity key already exists."
    I am using SP18.
    Tell me what is the <b>correction steps</b> for this PROGRAM ERROR.
    did SP19 already solve this problem??
    Message was edited by:
            yzme yzme
    Message was edited by:
            yzme yzme

    <b>step 1) when i sync the application , i will get this </b>
    Exception while proccessing method SMARTSYNC : java.lang.IllegalStateException: No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E : No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E 
    • Exception while proccessing method SMARTSYNC : java.lang.IllegalStateException: No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E : No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E 
    • Exception while proccessing method SMARTSYNC : java.lang.IllegalStateException: No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E : No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E 
    <b>step 2)i modify on the values 1st time, and sync</b>
    Persistance Exception on Client-"Entity key already exists."
    <b>step 3)after that i modify same row with different values</b>
    Creation on Field cZFLIGHT2_010_PAYMENTSUM with value 1600 is not allowed because SyncBo of Row 0001213668 is CHANGED_GLOBAL_INSYNC and CreateInputQualifyType is FORBIDDEN
    b)step 4) try to check the merep_mon, consequtive row with action "M" and no "D"</b>
    try to check the worklist with seq no 8
    msg: No download data from R/3 found in downloader
    <b>step 5) try to sync again</b>
    • Synchronization started 
    • Connection set up (without proxy) to: http://emi-sap:50100/meSync/servlet/meSync?~sysid=N01& 
    • Successfully connected with server. 
    • Processing of inbound data began. 
    • Exception while proccessing method SMARTSYNC : java.lang.IllegalStateException: No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E : No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E 
    • Exception while proccessing method SMARTSYNC : java.lang.IllegalStateException: No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E : No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E 
    • Exception while proccessing method SMARTSYNC : java.lang.IllegalStateException: No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E : No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E 
    • Exception while proccessing method SMARTSYNC : java.lang.IllegalStateException: No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E : No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E 
    • Exception while proccessing method SMARTSYNC : java.lang.IllegalStateException: No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E : No Context available for ConversationId 47AF7ABD0FEF894BBF49E61E6732223E 
    • Exception while proccessing method SMARTSYNC : java.lang.RuntimeException: Inbound processing of container with index 7 failed: Cannot insert as entity already exists for IClassDescriptor/Key: sZFLIGHT2_010/1213683 : r0001213682 : Inbound processing of container with index 7 failed: Cannot insert as entity already exists for IClassDescriptor/Key: sZFLIGHT2_010/1213683 : r0001213682
    anyone can pls tell me if my coding got problem, i just have to modify the row values, and upload it, or do i need to do anything on the uploader/or SyncBoDelta
    my code for modifying values,
    i have change the values of "STREET" to <b>"ANG MO KIO"</b>
    http://i192.photobucket.com/albums/z231/yzme/d1.gif
    but the data in server still <b>"HEAVEN ST"</b>
    http://i192.photobucket.com/albums/z231/yzme/d1.gif
    public String modifyRecordAmt(String eventName,boolean didNavigate){
                             String syncBoName="ZFLIGHT2";
                             String syncKey="0001213682";
                             tableViewBean.setString(syncBoName +" "+syncKey);
                             System.out.println("SyncBoName: " +syncBoName + " syncKey: " +syncKey);
                             tcp = TableContentProvider.instance(syncBoName);
                             tcp.modifyTable(syncBoName,syncKey);                                   return JSP_DETAIL_SYNCBOINSTANCE;
    public void modifyRecordAmt(String syncBoName,String syncKey){
                System.out.println("modifyRecordAmt");
                SyncBoDescriptor sbd=null;
                sbd=descriptorFacade.getSyncBoDescriptor(syncBoName);
                System.out.println("bp 1");
                SyncBo sb=null;
                SyncBo sb2=null;
                try{
                   System.out.println("bp 2");
                     sb=dataFacade.getSyncBo(sbd,syncKey);
                     //sb2=dataFacade.getSyncBo(sbd,"010");
                   System.out.println("bp 3");
                }catch(PersistenceException pex){
                     System.out.println("Exception in modifyRecordLoc:" +pex.getMessage());
                SmartSyncTransactionManager transactionManager;
                try{
                   System.out.println("bp 4");
                     transactionManager=dataFacade.getSmartSyncTransactionManager();
                   System.out.println("bp 5");
                     if(!transactionManager.isTransactionStarted()){
                        System.out.println("bp 6");
                          transactionManager.beginTransaction();
                        System.out.println("bp 7");
                          boolean b1,b2,b3,b4,b5,b6,b7,b8;
                          //b1=setHeaderFieldValue2(sb,"CARRID","AA");
                         //b2=setHeaderFieldValue2(sb,"CONNID","0017");
                          //b3=setHeaderFieldValue2(sb2,"FLDATE","2005-10-10");
                          //b4=setHeaderFieldValue2(sb2,"COUNTRYFR","US");
                          //b5=setHeaderFieldValue2(sb2,"CITYFROM","NEW YORK");
                         // b6=setHeaderFieldValue2(sb2,"AIRPFROM","JFK");
                         // b7=setHeaderFieldValue2(sb2,"SEATSOCC","375");
                         b8=setHeaderFieldValue2(sb,"PAYMENTSUM","1600");
                         //b8=setHeaderFieldValue2(sb,"CITYTO","YORK");
                        System.out.println("bp 8");
                        System.out.println("b8=" +b8);
                        //System.out.println(b3 +" " +" "+b4 +" "+b5 +" " +b6 +" "+b7 +" " +b8);
                          transactionManager.commit();
                        System.out.println("bp 9");
                }catch(Exception e){
                     System.out.println("Exception in modifyRecordAmt2:" +e.getMessage());
         public boolean setHeaderFieldValue2(
              SyncBo sb,
              String headerFieldName,
              Object value) {
              SyncBoDescriptor sbd = sb.getSyncBoDescriptor();
              //RowDescriptor trd = sbd.getTopRowDescriptor();
              System.out.println("bp 10");
              RowDescriptor trd=sbd.getRowDescriptor("010");
              System.out.println("bp 11");
              FieldDescriptor fd = trd.getFieldDescriptor(headerFieldName);
              System.out.println("fd:" +fd.getFieldName());
              if (fd != null) {
              BasisFieldType bft = fd.getFieldType();
              //Row header = sb.getTopRow();
              System.out.println("bp 12");
              //Row header = null;
              Row[] header=null;
              //try {
                   //header = sb.getRow("0001211181");
                   //header=sb.getTopRow();
                   header=getItemInstances(sb,"010");
                   if(header==null){
                        System.out.println("is null");
                   }else{
                        System.out.println("not null");
              //} catch (PersistenceException e1) {
                   // TODO Auto-generated catch block
              //     System.out.println("Exception getRow:" +e1.getMessage());
              //     e1.printStackTrace();
              System.out.println("bp 13");
              try {
    //             Integer operator
              if (bft == BasisFieldType.N) {
                   System.out.println("Numeric");
              NumericField nf = header[0].getNumericField(fd);
              if (nf != null) {
              BigInteger ii = new BigInteger(value.toString());
              nf.setValue(ii);
              return true;
              } else {
              return false;
    //             Character operator
              if (bft == BasisFieldType.C) {
                   System.out.println("Character");
              CharacterField cf = header[0].getCharacterField(fd);
              if (cf != null) {
              cf.setValue(value.toString());
              return true;
              } else {
              return false;
    //             Decimal operator
              if (bft == BasisFieldType.P) {
                   System.out.println("Decimal");
              DecimalField df = header[0].getDecimalField(fd);
              System.out.println("bp 1.1");
              if (df != null) {
                   System.out.println("bp 1.2");
              BigDecimal bd = new BigDecimal(value.toString());
              System.out.println("bp 1.3");
              df.setValue(bd);
              System.out.println("bp 1.4");
              return true;
              } else {
                   System.out.println("bp 1.5");
              return false;
    //             Similar operation for time and date operator fields
              if (bft == BasisFieldType.D) {
                   System.out.println("Date");
              DateField df = header[0].getDateField(fd);
              if (df != null) {
              if (value.toString().equals("0")) {
              Date dat = Date.valueOf("0000-00-00");
              df.setValue(dat);
              } else if (!value.toString().equals("")) {
              Date dat = Date.valueOf(value.toString());
              df.setValue(dat);
              } else {
              Calendar cal = Calendar.getInstance();
              java.sql.Date bd =
              new java.sql.Date(cal.getTime().getTime());
              df.setValue(bd);
              return true;
              } else {
              return false;
    //             Similar operation for time and date operator fields
              } catch (SmartSyncException ex) {
              System.out.println(ex.getMessage());
              } catch (PersistenceException e) {
              System.out.println(e.getMessage());
              return false;
    how to check in the table if the data is uploaded to the Middleware RDB ??
    anyone

  • KEY LOOKUP Operator using TCL

    Hi,
    I am trying to create a key lookup operator using tcl.
    OMBALTER MAPPING 'TESTMAP' ADD KEY_LOOKUP OPERATOR 'INSTITUTION_CHARACTERISTIC_DIM'\
    SET PROPERTIES (BOUND_NAME,CREATE_NO_MATCH_ROW, LOOKUP_CONDITION)VALUES
    ('INSTITUTION_CHARACTERISTIC_DIM','true','OUTGRP1.INSTITUTION_CHAR_SRCKEY
    = INGRP1.INST_CHAR_SRCKEY')
    and then adding an attribute to the INGRP
    OMBALTER MAPPING 'TESTMAP'ADD ATTRIBUTE 'LAST_ACTIVITY_DATE' OF GROUP 'INGRP1' OF OPERATOR 'INSTITUTION_CHARACTERISTIC_DIM'
    This is creating a key lookup operator by the name
    INSTITUTION_CHARACTERISTIC_DIM, and i can see the Bound Name in the
    properties window, but when i double click and open the key lookup, i
    dont see the result table under the LOOK UP tab.Because of this, the
    attributes dont get added in the OUTGRP of the key lookup.
    Am i missing some important property of a key look up?
    can some one please help me with this...
    Thanks in advance...

    Hi,
    you have to bind the lookup operator to the table:
    OMBALTER MAPPING 'MAP_LOOKUP' ADD KEY_LOOKUP OPERATOR 'MY_LOOKUP' BOUND TO TABLE '/MY_PROJECT/MY_DB/DIM_CUSTOMERS'
    OMBALTER MAPPING 'MAP_LOOKUP' MODIFY OPERATOR 'MY_LOOKUP' SET PROPERTIES (CREATE_NO_MATCH_ROW, LOOKUP_CONDITION)VALUES ('true','OUTGRP1.ID_CUSTOMER=INGRP1.ID_CUSTOMER')
    OMBALTER MAPPING 'MAP_LOOKUP' ADD ATTRIBUTE 'ID_CUSTOMER' OF GROUP 'INGRP1' OF OPERATOR 'MY_LOOKUP'Regards,
    Carsten.

Maybe you are looking for