Symptom
Executing an initial sync to create the OData offline store fails to complete. The following error occurred in the SMP server log:
2016 031510:43:31#0-400#ERROR#com.sap.mobile.platform.server.mobilink.SessionLogger##testcopilot2#Thread-144##b0518a23-e352-492c-b062-c28d6620b852#com.xxxxxx.xxxxxxxxx#c7655326-e9f1-11e5-8000-a747d10b8706#RequestResponse#500##[-100025] An error occurred while communicating with the OData server to retrieve the result of request "http://xxxxxxx.na.xxxxx.com:8000/com.xxxxxx.xxxxxxx/$metadata" com.sap.odata.offline.util.MODataException: [-100025] An error occurred while communicating with the OData server to retrieve the result of request "http://xxxxxxxxx.na.xxxxxx.com:8000/com.xxxxxx.copilotstaging/$metadata"
at com.sap.odata.offline.request.RequestHandler.retrieveMetadataDocument(RequestHandler.java:230)
at com.sap.odata.offline.scripts.ODataSyncHandler.prepareMetadata(ODataSyncHandler.java:358)
at com.sap.odata.offline.scripts.ODataSyncHandler.doHandleUploadData(ODataSyncHandler.java:210)
at com.sap.odata.offline.scripts.ODataSyncHandler$1.call(ODataSyncHandler.java:175)
at com.sap.odata.offline.smp.MLSMPFactory.executeWithContext(MLSMPFactory.java:162)
at com.sap.odata.offline.smp.MLSMPFactory.executeWithContext(MLSMPFactory.java:179)
at com.sap.odata.offline.scripts.ODataSyncHandler.handle_UploadData(ODataSyncHandler.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at ianywhere.ml.script.MethodInfo.invoke(MethodInfo.java:11834)
Caused by: com.sap.odata.offline.util.MODataException: [-100010] Retrieve metadata failed because the OData server returned HTTP code, 500, with message: null
at com.sap.odata.offline.request.RequestHandler.retrieveMetadataDocument(RequestHandler.java:199)
There were no errors in the NetWeaver Gateway log.
Read more...
Environment
SMP 3.0.8 and above
NetWeaver Gateway 2.0 and above
Product
Keywords
SMP OData MODataException , KBA , MOB-ONP-OOD , SAP Mobile On Premise Offline OData Server , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.