cancel
Showing results for 
Search instead for 
Did you mean: 

HttpConnectionException: Not found 404; The server has not found...

Former Member
0 Kudos

Hi All,

I have installed SAP NWA MI 7.0(SP 15) using Java stack and Abap. My OS is Windows and Data base is oracle. I have completed all the post installation steps too.When I tried to do Synchronization for the first time from Mobile Client(SP 14) to get device id, I am getting following error in the trace file.Please let me know where I have to look into to get device id on the mobile client.

Trace

[20080410 19:56:22:132] I [MI/API/Logging ] ***** LOG / TRACE SWITCHED ON

[20080410 19:56:22:132] I [MI/API/Logging ] ***** Mobile Infrastructure version: MI 70 SP 14 Patch 1 Build 200803051100

[20080410 19:56:22:132] I [MI/API/Logging ] ***** Current timezone: America/Los_Angeles[20080410 19:56:22:132] I [MI/API/Logging ] ***** Current Trace Level: 50

[20080410 19:58:17:471] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/trace/trace.jsp'

[20080410 19:58:23:065] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20080410 19:58:23:065] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20080410 19:58:23:065] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = 'tracechangeTraceLevel'

[20080410 20:00:24:029] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/trace/trace.jsp'

[20080410 20:00:25:685] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20080410 20:00:25:685] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20080410 20:00:25:685] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

[20080410 20:00:25:685] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'

[20080410 20:00:26:966] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20080410 20:00:26:966] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20080410 20:00:26:966] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

[20080410 20:00:26:966] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/home/syncpassword.jsp'

[20080410 20:00:32:982] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20080410 20:00:32:982] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20080410 20:00:32:982] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

[20080410 20:00:32:982] P [MI/Sync ] Notify R3 called

[20080410 20:00:32:982] D [MI/Sync ] There is already a container for method WAF_REGISTRY and user AMEERB in the outbound queue

[20080410 20:00:32:982] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'

[20080410 20:00:33:076] I [MI/Sync ] Synchronize with backend called, Thread=Thread-30

[20080410 20:00:33:076] I [MI/Sync ] Thread=Thread-30 took lock for synchronization.

[20080410 20:00:33:076] P [MI/Sync ] Use following gateway for synchronization: http://XYZ:50000

[20080410 20:00:33:076] D [MI/API/Services ] UrlConnectionTest: returning instance for same host 10.101.103.231

[20080410 20:00:33:076] D [MI/API/Services ] UrlConnectionTest: lastHostChecked was XYC

[20080410 20:00:33:076] D [MI/API/Services ] UrlConnectionTest: lastTimeOfCheck was 1207857540017

[20080410 20:00:33:076] D [MI/API/Services ] UrlConnectionTest: last check was 93059 ms ago

[20080410 20:00:33:076] D [MI/API/Services ] UrlConnectionTest: try number: 1

[20080410 20:00:33:122] D [MI/API/Services ] UrlConnectionTestThread: method run() started...

[20080410 20:00:33:122] D [MI/API/Services ] C:\Program Files\SAP Mobile Infrastructure\proxyauth.txt does not exist, therefore no Proxy-Authorization is set.

[20080410 20:00:33:122] D [MI/API/Services ] UrlConnectionTestThread: URL protocol is http

[20080410 20:00:33:138] D [MI/API/Services ] UrlConnectionTestThread: HTTP responsecode is 404

[20080410 20:00:33:138] W [MI/API/Services ] Not found 404; The server has not found anything matching the URI given

[20080410 20:00:33:576] D [MI/API/Services ] UrlConnectionTest: it took 500 ms to test the connection

[20080410 20:00:33:576] P [MI/API/Services ] UrlConnectionTest: Connection could not be established!!!

[20080410 20:00:33:576] W [MI/Sync ] Cannot connect to gateway

com.sap.ip.me.api.services.HttpConnectionException: Not found 404; The server has not found anything matching the URI given

at com.sap.ip.me.api.services.IOUtils.isConnectable(IOUtils.java:671)

at com.sap.ip.me.sync.SyncManagerImpl.doConnectionTest(SyncManagerImpl.java:679)

at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend(SyncManagerImpl.java:434)

at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend(SyncManagerImpl.java:324)

at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend(SyncManager.java:79)

at com.sap.ip.me.apps.jsp.Home$SyncRunnable.run(Home.java:641)

at java.lang.Thread.run(Thread.java:534)

[20080410 20:00:33:576] I [MI/Sync ] Synchronization finished, Thread=Thread-30

[20080410 20:00:43:153] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20080410 20:00:43:153] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20080410 20:00:43:153] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

[20080410 20:00:43:153] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/home/synclog.jsp'

[20080410 20:00:53:325] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20080410 20:00:53:325] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20080410 20:00:53:325] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

[20080410 20:00:53:325] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/home/home.jsp'

[20080410 20:00:54:856] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20080410 20:00:54:856] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20080410 20:00:54:856] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

[20080410 20:00:54:856] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:dispatch request to '/jsp/trace/trace.jsp'

[20080410 20:00:56:668] D [MI/Core ] Set current application to 'MOBILEENGINE_JSP'

[20080410 20:00:56:668] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:doGet(...) called

[20080410 20:00:56:668] D [MI/API/Runtime/JSP ] AbstractMEHttpServlet:getEvent() done with event name = ''

Regards,

Scott.

Edited by: Scott Winter on Apr 10, 2008 10:40 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Erick Ilarraza,

The reason why you get the following error is because the ABAP Sync Service which is used for synchronization is not activated in the middleware.

In order to activate ABAP Sync Service, you have to activate both mi_host and mi_service in the middleware. To do this, follow the steps mentioned below:

1. Execute transaction SICF in the middleware.

2. Enter MJC in the Service Name text box and click Execute. This will lead you to the path default_host/sap/bc/MJC.

3. Under this, you will find the mi_host and mi_service. Right click the on mi_host, and click on the Activate button. Also right click on mi_service and click on Activate button. This will activate both the services.

Once the three steps is completed, click on Test Service and you will be asked a windows prompt to enter your middleware user name and password for authentication. Once you are authenticated, a text MISYNC along with some XML parse errors will be displayed in your browser. Ignore the XML error and what is important is the text MISYNC being displayed in the browser. Now ABAP Sync Service is configured and this should solve your problem during synchronization.

Hope this helps.

Best Regards

Sivakumar

Former Member
0 Kudos

Thank you very much Sivakumar. I was able to connect with your advice accept one caveat. When we ran the "test service" under the node MJC service mi_host it brought up Firefox and gave a HTTP error .

This was the URL that poped up.

http://moon.xxxx.xxx:8000/sap/bc/mjc/mi_service?sap-client=100

When I removed the 'xxxx.xxx' part of the domain it then brought up the username/pw prompt. I put SAPJSF user, clicked OK and the ABAP sync worked.

My Question.

Do you know how to resolve this URL issue? It obviously is using the wrong URL prefix or something, below are the connections and URL prefixes from tcode SMICM if that helps.

Thanks!

Scott

Application Server State

HTTP Application Server Handler

ABAP Server operational = TRUE

J2EE Server configured = TRUE

J2EE HTTP port = 50000

J2EE HTTPS port = 50001

J2EE Server operational = TRUE

Default root access handler = J2EE

URL Prefix Table loaded = TRUE

URL Prefix Table

URL Prefix Virtual Host Case Sensitive Part

/sap/public/formgraphics/ :;

/sap_java/ :;

/test30/ :;

/sap/ :;

Former Member
0 Kudos

Hi Scott,

Did you check if the client SP level is compatible to the server ?

Thanks & Regards

Veerabhadram