This exception has nothing to do with XML. First, jmeter can support most things being transported over http (in the request mind you) XML certainly being one of them. In fact, you can send arbitrary bytes through Jmeter (or more appropriately org.apache.http libraries).
Second, is the error. It seems that your machine cannot open up a port (or at least Jmeter can't). First I would check the if you've overridden the 'httpclient.localhost' setting in any of your properties files. If you have it set to anything other than 'localhost' or '127.0.0.1' or just plain commented out that is most likely your problem. If you've not set that property, than I would wonder if it's an OS/Network card issue which should be addressed elsewhere (because it's no longer a JMeter/Apache issue). I found this quickly and it may server you well: http://stackoverflow.com/questions/8965155/cannot-assign-requested-address-jvm-bind Subject: Cannot assign requested address: JVM_Bind Date: Wed, 28 May 2014 09:02:16 +0530 From: [email protected] To: [email protected] CC: [email protected] Hi, I am trying to send xml over http request. I am receiving the error mentioned below. Can anyone help me in this regard?First question is when sending xml as body over http. Whether this kind of scenario Jmeter does support or not.It would be helpful if you could provide an example for this case. Error java.net.BindException: Cannot assign requested address: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source) at java.net.AbstractPlainSocketImpl.bind(Unknown Source) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.Socket.bind(Unknown Source) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:120) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:481) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:298) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) at java.lang.Thread.run(Unknown Source) Thanks & Regards,LAL MANI KASHYAP | Sr. Software EngineerOffice: +91-120- 244-5144 | Extn: 5150 | Mobile: +91-7042373222 | Skype: lalmani77www.Infogain.com | Global Business and IT Consulting Leader
