Skip to Content
avatar image
Former Member

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)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 30, 2014 at 09:16 AM

    Can you check if you are able to hit http://smpserverip:8080 from external network?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Jitendra,

      We are able to hit the url from external network.

      Registration with SMP is working fine, but error occurs while fetching the data from backend.

      Inside the corporate network, successfully fetching from backend.

  • avatar image
    Former Member
    Dec 30, 2014 at 03:25 PM

    Try to ping on you SMP server and backend from outside your network.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      In Registration_Success class there is a method private void initializeRequestBuilder() and you adding your endPointURL as link to your backend server, so the backend must be reachable.

      Regards.