Problem in Generic Sync example

Hi
I downloaded the generic sync templete from the MDK documentation and deployed it to my MI client but when i try to get the information from the WEBAS it is giving the following error
Error: 500
Location: /SAMPLE_GENERICSYNC/start
Internal Servlet Error:
java.lang.NullPointerException
     at com.sap.ip.me.sync.SyncHeader.(Unknown Source)
     at com.sap.ip.me.sync.SyncOutboundContainer.(Unknown Source)
     at com.sap.ip.me.sync.SyncOutboundContainer.(Unknown Source)
     at com.sap.ip.me.sync.ContainerFactory.createOutboundContainer(Unknown Source)
     at genericsyncexample1.GenericSyncExample.getUserInfo(Unknown Source)
     at genericsyncexample1.GenericSyncExample.doHandleEvent(Unknown Source)
     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)
The Trace error from the MI Client is
E There is no MSD for current application (genericsync_simple)
how do i set the MSD for the Application?
do i have to make any changes to the template and then deploye or is there anything missing in the SAP WebAS installed?
i also checked the BWAFMAPP table for the method name "MDK_USER_INFO_READ"
Thanks and Regards
Gopi

Hi Gopi!
You are getting the following error from the Trace error from the MI Client is
"E There is no MSD for current application "(genericsync_simple)
Is that right?
(1) Log On to MI Web Console, Verify you have Uploaded the Mobile Component "genericsync_simple" correctly in the MI WebConsole.Since you have deployed the application in MI Client you should have your MCD Description here.Make sure the deployment info is correct.
(2) Log on to SAP MI Server and go to transaction MCD and then display your MCD "genericsync_simple' and make sure the information provided under Deployment Tab matches correctly with your info in MI Web Console.It should be the same.
(3) You have already checked table BWAFMAPP for method MDK_USER_INFO_READ and make sure you have the correct BAPI Wrapper assigned here.You are fine here i guess.
(4)Verify that table MEMAPPDEST has the correct RFC Destination defined for the Method MDK_USER_INFO_READ.
(5) Did you Re-Start your MI Client after the First Sync that deployed the application in your MI Client.
Setting up MCD is part of Step 1 and 2.You should have completed it already.
Let me know your results.
Thanks
Gisk
Message was edited by: Sivakumar Ganesan(Gisk)

Similar Messages

  • 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

  • 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

  • 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.

  • BAPI call generic sync?

    Hi,
    i am an absoulte newbie in this area of mobile infrastructure.
    I want to know if it is possible to call a BAPI in the backend from a JSP application with generic sync?
    If yes, how does it work?
    If no, how can i use that BAPIS anyway?
    Thanx
    Tim
    Message was edited by: Tim Nees
    Message was edited by: Tim Nees

    Hi,
    please check the following example in the MDK:
    http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/genericsync/introduction.html
    To generate wrapper modules for your bapis check out the transaction ME_WIZARD.
    Rgds Thomas

  • 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.

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • 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 see the data in data containers when working on Generic Sync ?

    Hi All,
    I am working on Mobile Sales For HandHeld Generic Sync based application. To check the data transafer from Mi Client > MI server> CRM backend, we are using Generic Sync Queue Monitor in NWA. But how to check the actual dara in data containers showed on the monitor? Any specific transaction ( e.g. merep_mon for smart sync) to chk the same?
    Thanks & regards,
    Rucha Atre

    Hi,
    This is a tedious process of viewing the data in the containers since there is no tool to monitor the same. The data sent from the client is stored MESYHEAD and MESYBODY. Once the entire processing is completed then the entries from this table is deleted. If the processing has failed or not taken place then the entries will in this table.
    Data Containers will name value pairs with field name and data in the data field. This table will also contain data from smart sync applications.
    Thanks..
    Preetham S

  • Hello everyone, I have a problem when I sync my apple device. I plug it in and a message comes up saying, this device could not be synced because this computer is not authorized for the purchased items on this phone. I already tried to authorize again.

    Hello everyone, I have a problem when I sync my apple device. I plug it in and a message comes up saying, this device could not be synced because this computer is not authorized for the purchased items on this phone. I already tried to authorize again, after deautherizing it. HELP ME PLEASE

    Hi applerinneedforhelp,
    Thanks for visiting Apple Support Communities.
    If iTunes is asking you to authorize the computer, and you've already done so, the troubleshooting steps in this article can help:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Regards,
    Jeremy

  • HT1727 How can i retrieve purchased audiobooks that were not synced (problem encountered during sync process).  My account shows the purchase history, but the apps are no longer displayed in itunes or on my ipad or iphone

    How can i retrieve purchased audiobooks that were not synced (problem encountered during sync process)?  My account shows the purchase history, but the apps are no longer displayed in itunes or on my ipad or iphone.  I'm not very savvy with using iTunes - I don't think is very intuitive (unlike me:)).  Any help would be appreciated.
    Thanks

    Hello mcegirl4,
    Thanks for using Apple Support Communities.
    Please refer to the instructions in the following article to assist in downloading those previous purchases from iTunes and the App Store:
    Download past purchases
    http://support.apple.com/kb/HT2519
    Take care,
    Alex H.

  • Hi, I download the latest version of itunes and i have problem now to sync my iphone with my computer, I have windows 7 home premium service pack 1, can somebody tell me how to fix it. thanks

    Hi, I download the latest version of itunes and i have problem now to sync my iphone with my computer, I have windows 7 home premium service pack 1, can somebody tell me how to fix it. thanks

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes forums.
    Regards.

  • Problems with mobileme syncing ...

    Hi everyone. I'm having massive problems with mobileme sync with my iphone, my macbook and MacPC G5. Essentially I want the iphone contacts and calender data to overwrite anything on laptop and pc but I keep getting message that contacts couldn't be synced due to inconsistent data.  Despite me overriding it.  I'm not sure how I go about confirming that the computers data is valid and actually whether I want to because its the iphone data I want.  Then despite saying its synced calenders its not updating on my macbook or PC ... any suggestions gratefully received.  Its doing my head in!  Oh I'm on Leopard OS.

    Hi Chris, Thanks for the advice, I haven't tried that yet. Will do so and pray that it will work. This however doesn't solve the problem of appointments I'm putting on my iphone not updating on PC and laptop - they do however update on mobile me cloud!  Any advice greatly appreciated!

  • Need help with CONTACT sync example

    I have been trying to work with the Sync example that utilizes the MEREP_CONTACT_* BAPI wrappers.  Is there anyone who has been able to get this example to work that could give more information on it?  I can create the programs, but cannot get data to it.  Which SyncType is it supposed to use?  What directory do you create the data from MEREP_SAP_EXM002_DATA_GEN1?
    Any information would be greatly appreciated.
    Thanks
    Brian Timothy
    [email protected]

    hello brian,
    i created the contactaddress test application and used these BAPIs on the backend mapped to syncBos SAP_EXM001 and SAP_EXM002. the basic requirement for this is to deploy your application together with the xml metadata.
    after your application is installed in the ME, the framework will automatically send a data download request for syncBos SAP_EXM001 and SAP_EXM002 on the next synchronization. Prior to this, the application tables in the backend like the MEREP_PERSON which is mapped to the syncbo SAP_EXM002 should be filled with data.
    use MEREP_SAP_EXM002_DATA_GEN2 and MEREP_SAP_EXM001_DATA_GEN1 to fill-up the tables with data.
    you should have at least a data viewer for the corresponding syncbo data on your application.
    hope this helps.
    regards
    jo

Maybe you are looking for

  • How can I transfer contacts from IPHone to Mac?,

    First of all, thanks to everyone who will help me. I syncronised many times my Iphone 3GS with Mac and everything was OK (apart that I found all the contacts twice or 3 times in Iphone). I backuped Iphone sometimes on the Mac and others on ICloud. La

  • Keeping iTunes synced to multiple PCs

    I have a have a Windows laptop and iPhone and purchase content from iTunes on both. Syncing with the two devices is straighforward. I've just added a desktop component, as well as and AppleTV to my network. Any suggestions on how I can keep iTunes on

  • Trouble trying to execute a binary from jsp

    Hello, I need to make an http request to a Solaris box that will execute a binary that exports data. I have been connecting to the Solaris machine using putty and executing a command like this: /usr/prms/prod/bin/exportEngine -f/usr/prms/run/work/exp

  • When i sync my ipad to a new one and transfer my apps will i have to start my game from the beginning

    when i sync my ipad to a new one and transfer my apps will i have to start my games from the beginning or will they sync over to where i left off?

  • Encoding "Squishes" Footage

    I had some old 8mm film transferred to 1080p for archiving. The aspect ratio is 1560x1080, and it's display aspect ratio is 1.4444/1 I want to make SD DVD's for everyday watching, and to pass around to the family. DVDSP, (or Compressor), both have no