cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

HI,

We have developed the native application followed the blog,

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)

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

0 Kudos

Hi Ibrahem Ahmed

we can ping SMP server from outside network by using the public IP and port 8080 . but SAP can't be pinged from outside network as it is private IP.

Former Member
0 Kudos

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.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

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.