aspose file tools*
The moose likes BEA/Weblogic and the fly likes HttpHostConnectException when using jmeter to trigger post request to weblogic hosted application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "HttpHostConnectException when using jmeter to trigger post request to weblogic hosted application" Watch "HttpHostConnectException when using jmeter to trigger post request to weblogic hosted application" New topic
Author

HttpHostConnectException when using jmeter to trigger post request to weblogic hosted application

Robinson Francis
Greenhorn

Joined: Aug 16, 2010
Posts: 22
I have some problems when trying to POST Http Requests to Application Hosted on WeblogiC 10gR3 server. My application is a Spring Framework based Middleware Java application. I have already deployed the EAR on my local machine(the Weblogic server is run on my local as well). I am trying to use JMeter to POST http requests to it but whenever I run the test plan, I get the following error:



The JMeter test is also run on my own computer.

Below are the parameters I have filled in the Http Request element configuration:

Server Name or IP: 127.0.0.1 Port Number: 7001 Protocol : HTTP Method : POST Path : /iCareEAI_Sync_App_war/httpMessageReceiver.do

And I have chosen to populate the Post Body tab with the XML that intend to POST.



I hope this could help. Please feel free to ask for more information. I am not sure as to what more to add. I was hoping that through an interactive session I will be able to arrive at a solution that is relevant to my needs. Thank you.!


[Download HTTP REQUEST.bmp] Download

anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

You would need to enable HTTP Tunneling on the WebLogic server. By default, t3 protocol is enabled for external clients.

HTTP tunneling provides a way to simulate a stateful socket connection between WebLogic Server and a Java client when your only option is to use the HTTP protocol. It is generally used to tunnel through an HTTP port in a security firewall. HTTP is a stateless protocol, but WebLogic Server provides tunneling functionality to make the connection appear to be a regular T3Connection. However, you can expect some performance loss in comparison to a normal socket connection.

You can follow the below oracle documentation.

http://docs.oracle.com/cd/E17904_01/web.1111/e13701/web_server.htm#i1059801

Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpHostConnectException when using jmeter to trigger post request to weblogic hosted application