cancel
Showing results for 
Search instead for 
Did you mean: 

Inexplainable Timeout Problem

Former Member
0 Kudos

Hello Everybody,

I am currently developing a Java Webservice for Netweaver 7.11. The web service should trigger the execution of a jar file which is locally available at the server on which the web service is deployed.

The process which is locally executed needs about 60s to be finished.

But when trying to start this process via a web service I get the following message:

Invalid transport binding settings.Read timed out

But this message still appears if I set the timeout settings to a value of 900s, which is definately long enough.

I would be really thankful if somebody has an idea, where the problem is located and how to solve it.

Kind Regards,

Carl Heckmann

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Did you expose it as service and configure endpoint properly? this error happen most of them time because of incorrect binding.

please check and respond.

Regards,

Gourav

Former Member
0 Kudos

Hi Gouray,

Thanks for your reply. I assume, that I configured it correctly, since I exposed 2 web services with this EJB, and the other one is running just fine.

The code of the EJB can be found below. The Service startDataCollectionProcess does not work, due to the timeout problem. The other service, isSystemOnlineCheck works without any problems.:

package com.sap.nwdemo.sidct.services;


@WebService(name = "SIDCTServicesBean", portName = "SIDCTServicesBeanPort", serviceName = "SIDCTServicesBeanService", targetNamespace = "http://sap.com/nwdemo/sidct/services/")
@Stateless
public class SIDCTServicesBean {
	
	/**
	 * Starts the data collection process COuld be also started using the
	 * console
	 */
	@WebMethod
	public Long startDataCollectionProcess() {

		SIDCT sidct = new SIDCT();
		Long duration = sidct.gatherData();
		
		return duration;
	}

	
	@WebMethod
	@WebResult(name = "isOnline")
	public boolean isSystemOnlineCheck(@WebParam(name = "SID")
	String sid, @WebParam(name = "InstanceNumber")
	String systemNumber, @WebParam(name = "NetworkID")
	int nwguid) {

[....]
	}

}

I hope this is enough information for you to tell me if the service is configured properly or not.

Kind Regards,

Carl

Former Member
0 Kudos

Hi,

Try to execute this service first with SOAP UI.

Also monitor how much time it takes. I see nothing wrong with code and it should work but check following:

- Change port name to something else and then deploy service again for testing.

Regards,

Gourav

Former Member
0 Kudos

I measured the time, the service needs and took this time*10 as timeout value, but still atimeout occured.

The problem is most likely connected to the actual code.

Within the gatherData() method a lot of filesystem operations are executed and also somme HttP-connections are used. Does anybody know if this might cause problems when wrapping this functionality into web services´apart from problems concerning concurrency.

Best Regards,

Carl

Answers (0)