Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SMP3.0 with Android native - Error while connecting with outside network

HI,

We have developed the native application followed the blog,

SMP 3 - Android Native App Development

When we test the application in our internal network it is working fine and able to get the data  but

when we test in any external network like 3G  and click on get data it throws an  application stopped unexpectedly error

we are having the following logs in eclipse.

12-30 14:10:36.239: W/System.err(11791): javax.xml.parsers.ParserConfigurationException: http://xml.org/sax/features/external-general-entities

12-30 14:10:36.239: W/System.err(11791):     at org.apache.harmony.xml.parsers.DocumentBuilderFactoryImpl.setFeature(DocumentBuilderFactoryImpl.java:101)

12-30 14:10:36.249: W/System.err(11791):     at com.sap.smp.rest.SMPParser.parseXmlFile(SMPParser.java:24)

12-30 14:10:36.249: W/System.err(11791):     at com.sap.smp.rest.UserManager.onSuccess(UserManager.java:643)

12-30 14:10:36.249: W/System.err(11791):     at com.sap.mobile.lib.request.RequestManager$SuccessObject.execute(RequestManager.java:795)

12-30 14:10:36.249: W/System.err(11791):     at com.sap.mobile.lib.request.RequestManager$SuccessThread.run(RequestManager.java:846)

12-30 14:10:38.499: W/System.err(11791): javax.xml.parsers.ParserConfigurationException: http://xml.org/sax/features/external-general-entities

12-30 14:10:38.499: W/System.err(11791):     at org.apache.harmony.xml.parsers.DocumentBuilderFactoryImpl.setFeature(DocumentBuilderFactoryImpl.java:101)

12-30 14:10:38.499: W/System.err(11791):     at com.sap.smp.rest.SMPParser.parseXmlFile(SMPParser.java:24)

12-30 14:10:38.499: W/System.err(11791):     at com.sap.smp.rest.AppSettings.onSuccess(AppSettings.java:599)

12-30 14:10:38.499: W/System.err(11791):     at com.sap.mobile.lib.request.RequestManager$SuccessObject.execute(RequestManager.java:795)

12-30 14:10:38.499: W/System.err(11791):     at com.sap.mobile.lib.request.RequestManager$SuccessThread.run(RequestManager.java:846)

12-30 14:11:39.419: E/AndroidRuntime(11791): FATAL EXCEPTION: SocketConnectionHandler #3

12-30 14:11:39.419: E/AndroidRuntime(11791): java.lang.NullPointerException

12-30 14:11:39.419: E/AndroidRuntime(11791):     at com.sap.mobile.lib.request.AbstractConnectionHandler.processRequestsFromQueue(AbstractConnectionHandler.java:167)

12-30 14:11:39.419: E/AndroidRuntime(11791):     at com.sap.mobile.lib.request.SocketConnectionHandler.run(SocketConnectionHandler.java:142)

Former Member
Not what you were looking for? View more on this topic or Ask a question