Hasan_35483
Apr 20, 2012Nimbostratus
Connection reset exception while using iControl Asseumbly 10.2 Java
I have included all the library jars available with icontrol assembly 10.2 java download.
I am able to create a LTM pool from the UI and using tmsh commands , but it fails while using iControl Assembly. Below is the code I hv written and the exceptions generated. Pls advice.
iControl.CommonIPPortDefinition [][] membersAofA = new iControl.CommonIPPortDefinition[1][];
membersAofA[0] = new iControl.CommonIPPortDefinition[1];
membersAofA[0][0] = new iControl.CommonIPPortDefinition();
String addr = members.keySet().iterator().next();
membersAofA[0][0].setAddress(addr);
membersAofA[0][0].setPort(members.get(addr));
LocalLBLBMethod lb =LocalLBLBMethod.LB_METHOD_DYNAMIC_RATIO;
LocalLBLBMethod[] lBMethods = {lb};
m_interfaces.getLocalLBPool().create(poolNames, lBMethods, membersAofA);
ERROR:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Connection reset
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:180)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:230)
at java.io.BufferedInputStream.read(BufferedInputStream.java:249)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:601)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at iControl.LocalLBPoolBindingStub.create(LocalLBPoolBindingStub.java:1064)
at bigIPF5LoadBalancer.LoadBalancerPolicy.createPool(LoadBalancerPolicy.java:92)
at bigIPF5LoadBalancer.Test.main(Test.java:69)
{http://xml.apache.org/axis/}hostname:tpmoutbound9
java.net.SocketException: Connection reset
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at iControl.LocalLBPoolBindingStub.create(LocalLBPoolBindingStub.java:1064)
at bigIPF5LoadBalancer.LoadBalancerPolicy.createPool(LoadBalancerPolicy.java:92)
at bigIPF5LoadBalancer.Test.main(Test.java:69)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:180)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:230)
at java.io.BufferedInputStream.read(BufferedInputStream.java:249)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:601)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
... 12 more