Question:
Business connector generating 404 HTTP error
Posted by: masni Posted: 27 Jul 2004 3:00 PM Reply
All,
We are trying to create a BC connection from SAP to a web server. This message is trigged by an Idoc going to the BC. After creating the routing and service, the system should be ready to go.
However, when we create the Idoc in SAP, BC generated the following error "http post failed: 404 Not Found"
We have tried to post the information from within a web page and sending the data via the post method and it works, it is only with BC that is does not work
---------------------------------error messge---------------------------------------
2004-07-27 14:55:56 CEST com.wm.app.b2b.server.ServiceException: http post failed: 404 Not Found
at KONE_Shared.raiseException(KONE_Shared.java:54)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:712)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
at com.wm.lang.flow.FlowState.step(FlowState.java:430)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:712)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:499)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:456)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:481)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:424)
at wm.PartnerMgr.gateway.transport.B2B.OutboundProcess(B2B.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:298)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:712)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
at com.wm.lang.flow.FlowState.step(FlowState.java:430)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:712)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:499)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:456)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:481)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:386)
at wm.PartnerMgr.gateway.runtime.InboundProcess(runtime.java:321)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:288)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:712)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:469)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:495)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:392)
at pub.sap.transport.ALE.InboundProcess(ALE.java:145)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:712)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:469)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:495)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:392)
at com.wm.pkg.sap.rfc.RFCApi.InboundProcess(RFCApi.java:53)
at com.wm.pkg.sap.SAPTransactionManager.execute(SAPTransactionManager.java:72)
at com.wm.pkg.sap.rfc.Listener.handleRequest(Listener.java:165)
at com.sap.mw.jco.JCO$Server.dispatchRequest(Unknown Source)
at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(Unknown Source)
at com.sap.mw.jco.JCO$Server.listen(Unknown Source)
at com.sap.mw.jco.JCO$Server.run(Unknown Source)
at com.wm.pkg.sap.rfc.Listener.run(Listener.java:86)
at java.lang.Thread.run(Thread.java:479)
Answer:
Error 404: The server has not found anything matching the Request-URI.
This would indicate that you are able to make a connection to the external server, but you asked for the wrong page. It probably all comes down to the URL you're asking for...
Just to be sure, I would make 2 tests...
1. using the server, I would load the URL in internet explorer to see if it loads.
2. in the SAP BC Developer/Integrator GUI, call the URL with the HTTP get service... debug your own test service and check the URL just before you invoke the HTTP get...
If 1 works and 2 doesn't, check the proxy setting in BC - they need to be the same as the browser.
_________________
Rgds,
Derek
_________________
For formal [onsite | telephone | IM | email] support on SAP Business Connector and ITS, please contact me directly