
After synchronization, either a synchronization log appears with error messages or a message appears that the synchronization was successful, but no data was synchronized (for example, no device ID with the first synchronization).
|
Scenario Type: |
Error analysis |
|
SAP NetWeaver Component: |
MI Client Component MI Sync Servlet |
|
Validity: |
MI version 2.1 and higher |
Prerequisites
-
Main Tools
Text editor
Analysis
The following figure gives you an overview of the steps:
1. Check if MI is still running
Depending on the MI variant on the client, check if the MI is running:
http://127.0.0.1:4444/
2. Check the MI client (synchronization) settings
You must maintain the following settings:
See the Installation Guide for further details.
The relevant fields are marked red in the screenshots.
Settings MI 2.5 (Tomcat)
Settings ME 2.1 (Tomcat)
The AWT version of the MI contains dialogs with the corresponding input fields:
If the settings were maintained properly, continue with step 3. Otherwise adjust the synchronization settings and start the synchronization again.
3. Check the user name and (synchronization) password
Check if the user can log on to the corresponding Web AS.
If a synchronization password was prompted, enter the user name and synchronization password to log on to Web AS; the synchronization password was introduced with MI 2.5. (See SAP NetWeaver Security Guide .)
Otherwise, enter the user name and MI client logon password to log on to Web AS.
If the logon was successful, continue with Step 4.
Otherwise, adjust the user password. For example:
4. Check if the sync servlet is working
4.1. Check if the J2EE Engine is running
Open a Web browser and enter the following URL, replacing <HOST> and <PORT> with the corresponding host and port of the J2EE Engine to be used for synchronization:
http://<HOST>:<PORT>/
The welcome screen of the J2EE Engine should be displayed. If this is the case, continue with Step 4.2.
Otherwise check the host and port, and restart the J2EE Engine.
4.2. Check if the MI sync servlet is deployed
Open a Web browser and enter the following URL, replacing <HOST> and <PORT> with the corresponding host and port of the J2EE Engine to be used for synchronization:
http://<HOST>:<PORT>/meSync/
If a directory listing or an error message such as You are not authorized to view the content of the requested directory is displayed, you know that the MI sync servlet application has been deployed on this J2EE Engine. If this is the case, continue with Step 4.3.
Otherwise deploy the MI sync servlet to the J2EE Engine.
See also:
Installation Guide.
4.3. Check if the system properties file is installed and if it has the right content
Create a corresponding property file for each system against which a MI client should be able to synchronize.
For example, if a client wants to synchronize against a system XYZ, then a XYZ.props file has to be created in the System_Properties folder of the MI sync servlet installation.
There are two ways to check if the required property file is available:
http://<HOST>:<PORT>/meSync/System_Properties/<SYSTEM_ID>.props
for example:
http://pwdf1234:55000/meSync/System_Properties/XYZ.props
Since the J2EE Engine handles this request case-sensitively, you may need to correct the case of the letters in the system ID. Only lowercase or only uppercase is usually used in the system ID.
If this file is available, a browser download dialog is opened. Save the property file on your local disk.
If no such property file exists, you have to create one. See the Installation Guide.
Open the property file with a simple text editor (such as Notepad) and check the application host and system number.
Content of a sample system properties file
If the settings are correct, continue with Step 4.4.
Otherwise you have to change these settings. See the Installation Guide.
4.4. Execute test URL
Open a Web browser and enter the following URL:
http://<HOST>:<PORT>/meSync/servlet/meSync?~sysid=<SYSTEM_ID>&~login=<USERNAME>&~password=<PASSWORD>&~client=<CLIENT>&~language=<LANGUAGE>&~acknowledge=X&~test=true&
replacing <HOST>, <PORT>, <SYSTEM_ID>, <USERNAME>, <PASSWORD>, <CLIENT> and <LANGUAGE> with the correct values.
For example, if you want to check if the MI sync servlet on pwdf1234, port 55000, is working for system XYZ (client 100), user MAIER (password TEST) and language English, you have to enter the following URL:
http://pwdf1234.wdf.sap.corp:55000/meSync/servlet/meSync?~sysid=XYZ&~login=MAIER&~password=TEST&~client=100&~language=EN&~acknowledge=X&~test=true&
If you get one of the following results, the sync servlet is working properly:
&WAF_SYNC&STATUS=&Execution Time= & HeaderType = MEREPLICATION &MORE_PACKAGES_WAITING = & SyncCounter = 0 &
Or
&WAF_SYNC&STATUS=&Execution Time= 143629& HeaderType = MEREPLICATION &MORE_PACKAGES_WAITING = &
If you get one of the above results, report the problem to SAP and enclose all gathered information.
If you get an empty page, there is an error in the connection to the ABAP stack.