Generic Sync Application and Persistence DB2e

Hi all,
I have a generic sync application. I need persistence and so, I have created a xml file with many syncbo to manage the persistence with db2e. If I execute the statement before the synchronization:
SmartSyncRuntime.getInstance().getSyncBoDescriptorFacade().getAllSyncBoDescriptors().size()
the result is five (because I have five syncbo).
But when I do a generic synchronization and I try to store data of this synchronization into syncbo, I get an exception because only there is one syncbo.
In fact, the previous statement returns only one synbo. This syncbo is called MIAUTH and I don´t have defined it.
How can I solve this issue? Thanks a lot.
Regards,

Hi all,
I know it is better to use persistence API than syncbos in generic sync application but we have many problems with persistence API and SP versions. While SAP solve our problems we are searching any alternative.
We use MVC and after doing generic synchronization, if the application generates a event and navigate to other jsp and in it, the application generates other event, I get all of my syncbos.
How could I simulate it, after generic sync finishes, in the same method by code? Any ideas?
Thanks and Regads.

Similar Messages

  • Problem with persistence in Generic Sync application

    Hi:
    We are developing an application which runson SAP Mi 2.5, SP 18,
    Windows Mobile 5.0 and Generic Sync for PDAs.
    We need persistence in our application. We tried with persistence API but
    we found a problem and we send a message to SAP. Until we can solve
    this issue we must implement persistence in other way to satisfy our customer requierements
    Since now,we have implemented persistence with files but the performance of this solution does not meet our customer requirements (the search of data in the PDA is very slow).
    We are thinking in another solution, which consists on using
    Syncbos.Using this alternative, before making a generic sync, and
    executing the code shown below:
    SmartSyncRuntime.getInstance().getSyncBoDescriptorFacade
    ().getAllSyncBoDescriptors()
    the returned syncBOS are those which I have defined in XML. On the
    contrary, after making a generic sync, executing the same code, the
    returned syncbos ARE NOT those whic I have defined in XML. The only
    return that I get is the MIAUTH.
    Any other ideas?
    Thanks
    Kind Regards

    hi satur,
    there are some things to take care if you want to use the persistence layer of the
    SmartSync layer from your GenericSync app.
    first, you have to let the MI client think that your application is using the
    SmartSync functionality. this can be achieved by just including a dummy metadata
    meRepMeta.xml file in the war archive during the deployment process. once the
    MI client framework sees this during the installation, it will set a flag on the MSD
    that your app is a smartsync.
    second, if your app is considered a smartsync, MI will generate the delta request
    and upload messages for your data if ever you have your SyncBo defined in the
    metadata. Since you don't want such functionalities to be ON, i would suggest to
    mark all your SyncBo as local ones; i.e. using attributes suppressDownload=true
    and suppressUpload=true. this way, the MI framework will skip creating the requests
    and delta upload messages for your app during the synchronization process.
    third, your application has to have the syncEventListener implementation to get
    notification when the Sync button (or event) was initiated. if you don't want your
    app to be notified, you may just add synchronization button within your application
    that will call your data manager to prepare your containers (i.e. retrieving the newly
    inserted syncbo, modified syncbos and the list of deleted ones -> genericSync
    containers) and to call the synchronizeWithBackend method.
    fourth, you need to have the inboundProcessor that will parse your data and insert
    them a SyncBo into your local database.
    having tried this but i guess it might work...
    regards
    jo

  • Cannot sync application and applecare for iphone 3G

    I had many sad problem with my handphone since bought in Sept 2008. Trying to resolve the problem at Chadstone Melbourne in Dec 2008, but they only mentioned that it was the application that was a problem. Apparently I lived in overseas and bought the iphone3G outright at Optus.
    I have problem with syncing application that are more than 50Mb. Any update of an application that are more than 50 MB, during syncing it will switched/restarted the iphone for many times until I decided to delete the apps. What should I do?
    I also had try to find out if there are any extended warranty to iphone in Australia, it seemed that there were none. Could anyone help? My reason was to maintain guarantee toward my Dec 2009 returning to Melb to service this phone.
    Any suggestion and help welcome.
    Thx

    Welcome to the discussions,
    Did you try to reset your phone by holding the sleep and home button until you see the Apple logo?
    Do you use wifi to update apps with more than 50MB?
    I also had try to find out if there are any extended warranty to iphone in Australia, it seemed that there were none.
    After AppleCare for the iphone was introduced in the US it took some time until I could buy it in my Apple Store, so maybe you'll have to wait a little longer or call Apple Store Australia and ask if they know about that program.

  • Error in generic sync application

    Hello Everyone.
    I have tried an application after studying the generi sync examples in MDK.
    I am creating the contacts application using the table merep_person.
    I want to display the 4 fields namely firstname, lastname,profession and ***.
    After doing the entire coding and deployment when i run the application from the client i get the following error :-
    Error: 500
    Location: /SAU_GENERIC_CONTACTS/start
    Internal Servlet Error:
    java.lang.ArrayIndexOutOfBoundsException: 2
         at miProjectPackage.bean.TableViewBean.setTableContent(TableViewBean.java:77)
         at miProjectPackage.MiProjectClass.loadBean(MiProjectClass.java:205)
         at miProjectPackage.MiProjectClass.doHandleEvent(MiProjectClass.java:104)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:346)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:678)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:326)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:534)
    Please help me with this error.
    Thanks & Regards.
    Saurabh

    Hello Jo,
    Yes you are right that i need to modify the TableViewBean.java class. I have already done the following modification in order to display 4 fields.
    private String[][] tableContent =
    Also i have made the changes required in the servlet class.
    Still the error persists. Suugest if this change is not proper.
    Thanks & Regards.
    Saurabh

  • How to re-sync applications and games?

    Well, oh help! I had so many trouble after installing iTunes 8. For months everything went well. The family has an iPod touch 16 GB, an iPod Classic 160 GB and an iPod Video 80 GB. With MultiTunes I used different Libraries and everything went well.
    I have a Mac Pro Quad-Core with 4 internal hard disks. For months I placed my iTunes folder (150 GB!!) on another internal disk than my startup disk. After installing iTunes 8 everything went wrong. I received the 13005 error and after I managed to start up iTunes, the program began to copy the whole library to my startup disk. Ow no! I forced iTunes to stop and everything crashed. Thank you Apple!
    First I lost all my libraries, also the libraries of MultiTunes. Further I didn’t get permission to read my own folders and many tracks in iTunes 8 sounds choppy and scratchy. So far, so good. I tried to revert to iTunes 7, but my iPod touch was already updated for iTunes 8. After searching in your discussions (searching for hours and to little help) en some hacking in my own computer I restored (imported) a sort of library for my iPod touch. But now my purchased music has disappeared, en none of my many (payed!) applications are visible to sync.
    All of these applications are in ~/music/itunes/Mobile Applications/ but I don’t know how to use them. Some of the applications are on my iPod touch, but I don’t know how to back up them for further use.
    With the iPods classic and video it’s the same. The games are on the iPods, and all games are visible in ~/music/itunes/iPod Games, but I can’t see them anymore in the iPods to sync.
    Please, how to restore this awfull mess?

    You haven't received a response or an answer. I have a similar question. I want to transfer my iTunes library from my PC at home to a 2nd PC laptop at my office. 

  • Problem with Generic Sync after upgrade

    Hi guru,
    I have this problem:
    I have done a upgrade ME2.1 -> MI2.5 SP18.
    I have a simple Generic sync application that using a simple Function Module:
    <b>
    function Z_ME_TEST_CONNECTION.
    ""Interfaccia locale:
    *"  EXPORTING
    *"     VALUE(STATUS) LIKE  BWAFSYHEAD-STATUS
    *"  TABLES
    *"      INBOUND_CONTAINER STRUCTURE  BWAFCONT
    *"      OUTBOUND_CONTAINER STRUCTURE  BWAFCONT
      perform CALL_OFFLINE_ME_METHOD using 'TEST_CONNECTION'
                                            INBOUND_CONTAINER[]
                                            OUTBOUND_CONTAINER[].
      OUTBOUND_CONTAINER-FIELDNAME = 'RESULT_CONNECTION' .
      OUTBOUND_CONTAINER-LINENUMBER = 0 .
      OUTBOUND_CONTAINER-FIELDVALUE = 'OK'.
      append OUTBOUND_CONTAINER.
    endfunction.</b>
    When i synchronize my mobile client it returns back
    <b>"EWAF                 001Could not execute method Z_ME_TEST_CONNECTION"</b>
    Can anybody help me in resolving this?

    Hi Sivakumar, I have write the my FM in the BWAFMAPP and the RFC destination in MEMAPPDEST but i have tha same error.
    This is my simple method in my application:
    <b>public String testSync(String userName) {
              String errormessage = null;
              try {
    //        get user out of the SyncSettings
                String user = Configuration.getInstance().getProperty(PropertyKeys.SYNCSETTINGS_USER, userName);
                OutboundContainerFactory outfactory = OutboundContainerFactory.getInstance();
                if (outfactory == null) {
                   errormessage = "testSync->OutboundContainerFactory.getInstance failed";
                }  else {
                   OutboundContainer out = outfactory.createOutboundContainer(
                   VisibilityType.SEPARATED,
                   R3_METHOD_TEST_SYNC,
                   OutboundContainer.TYPE_REQUEST);
              // add the name that has been typed into the JSP
                   out.addItem(DC_I_USER_NAME, user.toUpperCase());
                  out.addItem(DC_I_NUMBER_OF_LINES,"0");
                   out.close();
              // Start Sync
                 SyncManager.getInstance().synchronizeWithBackend(VisibilityType.SEPARATED);
              catch (SyncException ex) {
                   errormessage = ex.getMessage();
              catch (IllegalArgumentException ex) {
                      errormessage = ex.getMessage();
              catch (Exception ex) {
                        errormessage = ex.getMessage();
              finally {
            System.out.println("testSync: errormessage="+errormessage);
              return errormessage;
         }</b>
    You have anathor idea?
    Thanks

  • Programming generic sync with the MDK in 6.20

    Has anyone been able to get the generic sync examples provided with the MDK working - GenericSyncExample.java in particular?
    I imported and compiled the example without a problem but when I run it I get teh foll dump. Unfortunately the source code is not provided for the section which dumps so I cannot debug further...
    Thanks
    Ratna
    2004-12-17 14:47:47 - Ctx( /NEWPROJECT ): Exception in: R( /NEWPROJECT + /start + null) - java.lang.NullPointerException
         at com.sap.ip.me.sync.SyncHeader.<init>(Unknown Source)
         at com.sap.ip.me.sync.SyncOutboundContainer.<init>(Unknown Source)
         at com.sap.ip.me.sync.SyncOutboundContainer.<init>(Unknown Source)
         at com.sap.ip.me.sync.ContainerFactory.createOutboundContainer(Unknown Source)
         at genericsyncexample1.GenericSyncExample.getUserInfo(GenericSyncExample.java:124)
         at genericsyncexample1.GenericSyncExample.doHandleEvent(GenericSyncExample.java:81)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:479)

    Hello Ratna,
    please be aware of the fact that a generic sync application needs a mobile solution descriptor (MSD) When you look at ther trace file in the log-directory of SAP ME you should find a similar entry:
    "There is no MSD for current application (genericSyncExample)"
    The missing MSD results in a missing conversation ID which leads to the NullpointerException that effectively is thrown in the class
    ConversationIdHandler.getCurrentConversationId().
    My current understanding is that the only way to get a MSD assigned, is to upload the application to the web console and install it from there on the client device.
    However, this means that launching a genSync ME application from Eclipse is useless. I am wondering, if this is the way it was intended to be....
    Best regards,
    Tim

  • Generic sync not work correctly

    Hi,
    We are trying to get the inbound container in Java application, we use the method
    GetElementsWithFieldName(String) in the object InboundContainer, this method returns an array that has only one entry, but really the wrapper function in R3 returns 6500 entries.
    Best regards.
    Thanks all.
    SCZ

    hi Satur,
    Is your Generic Sync Application Synchronous? you may find it in using the OutBoundContainer Type. if it is TYPE_OUTBOUND its asynchronous otherwise (TYPE_REQUEST) its synchronous. The same information can be found in MESYHEAD table entries too.
    If it is Asynchrnous, then the MESYBODY Containers won't get deleted unless you sync from the client. if it is synchronous, it will disappear immediately.
    I suggest your application be ASynchronous and check the same. If it still happens, there's some problem with your middleware. It is not taking the container as ASynchronous Processing. You'll have to go all over your Post-Installation Settings to check if all are right. (Tedious process indeed)
    If it is synchrnous and your client is not receiving all the entries, the problem is with your receiver code handling. check your Process() method.
    Regards
    Ak.

  • Generic Sync: How to register 2 Outbound Methods

    Hello,
    i am developing a generic sync application.
    I have registered a method for inbound+outbound.
    It works well.Now i have a second method in the same application. I made the mapping in BWAFMAPP,but when i try to create a outbound container for the method,i get the exeption method is not registerd.
    Coding:  outfactory.createOutboundContainer(VisibilityType.USER_SHARED,2_METHOD,outboundContainer.TYPE_REQUEST);
    I think i have to do something in doInitialize() for the second container ,but i don't know exactly what.
    Can anyone help me?
    Regards

    Hi,
    go create a new class like this one:
    import com.sap.ip.me.api.sync.InboundContainer;
    import com.sap.ip.me.api.sync.InboundProcessor;
    public class MyProc implements InboundProcessor {
         public String getMethodName() {
              return "R3_2_METHOD";
         public void process(InboundContainer inboundContainer) {
              System.out.println("Container for " + getMethodName() + " came in...");
    then, register it at the Registry like this:
    InboundProcessor i = new MyProc();
    InboundProcessorRegistry.getInstance().register(i);
    Cheers, Stefan

  • I can sync applications on my iPhone but not music

    As the subject says, I can sync applications and I can backup my iPhone (3G 2.2).
    When I try to sync music it says "the required disk cannot be found" and "the disk could not be read from or written to".
    With other computers it works fine and on my computer I can sync music to my old 20gb iPod.
    So it's not a problem of the iPhone or of iTunes or of the usb ports.
    I can also read the filesystem using diskaid so I don't see where the problem could be.
    I tried all these combinations: iPhone 2.1 or 2.2, iTunes 8.0, 8.0.1, 8.0.2, tried to restore the iPhone OS and refresh my iTunes library. Nothing helps.
    What should I do?

    I am having the same exact problem with my iPhone 3G. I've tried reinstalling iTunes and the problem persists. The only difference is that I get the "the disk could not be read from or written to" error, but not the "disk can not be found" error.

  • How do I not sync an application AND not delete it.

    I have airshare installed on my iPod touch. and it allows me to use the iPod touch as a small external wireless file server. At the moment I have about 20GB of data managed by airshare. Every time I sync the iPod touch with iTunes, in addition to backing up my music, notes, etc, iTunes also backs up the airshare stuff. I have about 16GB of data managed by airshare. The data is always changing. Naturally, each time I do a sync it takes a good part of a day to back up (sync) the iPod.
    My question is: How do I configure iTunes to NOT sync the airshare applcation and its managed data?
    If I elect to not sync the airshare application, iTunes wants to delete the application and the data.
    thanks in advance

    Anything not in the Force Quit window should be listed in the Activity Monitor list of processes. Open Activity Monitor (from Utilities folder), find and select the process, and click the "Force a process to quit" button. Or choose View/Quit Process.

  • Sync applications problem with 3GS and new computer

    Hopefully someone can help me out. I am trying to sync my fiancee's 3GS to our new Dell laptop that has Windows 7. I had no problem syncing and updating my 3GS with the same computer last night, I updated to the 4.0 last night on my phone. I then tried to update her phone. It asked me to backup and sync all data prior to updating. I was able to back up and sync contacts and photos without a problem. I tried to transfer the applications; and now I keep receiving this message: "Some of the purchased items on iPhone could not be transferred to your iTunes library because you are not authorized for them on this computer." I certainly authorized the computer; thinking that might be the problem, I deauthorized and reauthorized the computer successfully (It says that I have one out of 5 possible computers authorized). That did not solve the issue. I researched into the topic; and now my brain hurts. One of the threads requested to disable the automatic sync when the iPhone is connected to the computer. I reset the settings, powered down the iPhone and exited out of iTunes; rebooted and still no success. I am getting frustrated but do not want to erase all of her applications and buy them again. This message is applying to both free and purchased applications. When I look at the applications page on iTunes; all of her program icons are apparent. I am not an iPhone genius, but I read that the new computer has never recognized the phone and the sync will go from computer to phone (if I understood correctly). Does that mean I need to reinstall iTunes and start from scratch with this computer; or is there a solution? Both of our phones were rarely synced with our old laptop; but I worry that syncing with that computer will only further complicate the situation. Without transferring the applications, I am hesitant to update the phone to 4.0 and the new carrier settings. Do I just let the computer try to transfer the applications it allows and then lose my apps and do the update? I don't want to do that unless that is my only choice. Please help me!

    Not sure if this helps, but:-
    I just got an IPhone4 - Gave My IPhone3 to husband.
    We ended up hsving to set up two login users on the PC (not sure how to do that) and then two seperate ITunes accounts, one for each of us.

  • Not a question but a complaint.  The new ITunes software doesn't support the IPhone.  It is extremely difficult to find your IPhone, what applications are on the phone and to re-sync new and updated applications.  It is focused on selling and not support.

    The new ITunes software for Windows, ITunes vers. 11.0.1.12, is extemely clumsy for managing my IPhone 4.  The help material is designed for the older version so is of no use.  The interface is extremely difficult to use except for buying music or video.  I'm trying to managing updating applications and syncing with my IPhone but there I can't find a drop-down menu or anything on help that tells me how to get to the IPhone window so I can initiate a re-sync on my IPhone.  This is very frustrating because Apple is supposed to make things "intuitive" and have "good" help.  Well, it's NOT intuitive and there is NO HELP.  You need to fix this.  I mean a terrible map application and now this terrible interface.  Nothing but downhill since Jobs left us.  Just remember, we all bolted from Microsoft because of this sort of crap and we can all bolt to Android if you keep up this trend.

    Ctrl + B to show the Top Menu
    View > Show Sidebar
    View > Show Staus Bar
    Deactivate Search Entire Library to speed things up.
    This should make managing your iPhone the same as it was before.

  • Application Sync Issue and Load Issue

    My newly purchased 16GB phone will no longer launch the free apps I have downloaded. I followed some directions that said to delete them from the phone and then sync from iTunes (after logging off and then back on iTunes). I get the error message:
    Some of the applications in your iTunes library, including "...", were not installed on the iphone "..." because you are not authorized for them on this computer.
    I have no idea what has happened and I am not finding the solution .

    Hallo over there
    After using creative cloud cleaner ....
    every things is ok...8-)
    Sendt fra mobilen....
    Med venlig hilsen/Kind regards
    Fotograf Hans Søndergaard
    Allégade 23  1.baghus
    DK 2000 Frederiksberg
    M: +45 4044 8190
    [email protected]
    www.soendergaard.com
    Den 07/11/2013 kl. 17.32 skrev Simon_P1 <[email protected]>:
    Re: CC application file sync issue and CC App broken menu..
    created by Simon_P1 in Adobe Creative Cloud - View the full discussion
    Since the CC app messed up again and yet another reinstall, it is working (sort of, after several sync failures of lrcat) properly, including the menu, all be it very slowly considering the fast upload I have.
    As is the setting sync finally.
    Thanks for keeping me informed, oh wait, you didn't!
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5823499#5823499
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5823499#5823499
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5823499#5823499. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Creative Cloud at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Will syncing (specially Music) with another iTune library erase all applications and information in the iPhone?

    Hi,
    Will syncing (specially Music) with another iTune library erase all applications and information in the iPhone?
    After adding folder of my favourite music to the itune library on my computer, it says: "your iphone is synced with another iTune library on another computer. Do you want to sync with this one?"
    What should i do?

    yes it will
    Sync process  is PC/Mac is server iOS device is client and will receive what ever is in iTunes

Maybe you are looking for