Forum Discussion
rajesh_74821
Nimbostratus
Sep 02, 2009iControlAssembly10.0.0 Java exception
i am iControlAssembly files in myeclipse java project.
i wrote one client sample client program as fallows, the ip, user name and password are currect here only xxx. after this running i am getting the exception after this program pasted..
import iControl.GlobalLBWideIPWideIPStatistics;
public class Client {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
iControl.Interfaces inter = new iControl.Interfaces("xxxx", "xxxx", "xxx!@");
//inter.initialize("xxxxx", "xxxx", "xxx");
long as = inter.getGlobalLBGlobals().get_down_threshold();
System.out.println("===>"+as);
//String[] ar1= inter.getLocalLBProfileHttp().get_list();
//for(int i=0;i //System.out.println("===>"+ar1);
//}
}catch(Exception e){
e.printStackTrace();
}
}
}
EXCEPTION:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.MalformedURLException: For input string: "443@12.3.83.22:443"
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.MalformedURLException: For input string: "443@12.3.83.22:443"
at java.net.URL.(URL.java:617)
at java.net.URL.(URL.java:480)
at java.net.URL.(URL.java:429)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:133)
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.GlobalLBGlobalsBindingStub.get_down_threshold(GlobalLBGlobalsBindingStub.java:1710)
at Client.main(Client.java:13)
Caused by: java.lang.NumberFormatException: For input string: "443@12.3.83.22:443"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.parseInt(Integer.java:514)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:217)
at java.net.URL.(URL.java:612)
... 14 more
{http://xml.apache.org/axis/}hostname:mobile5
java.net.MalformedURLException: For input string: "443@12.3.83.22:443"
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.GlobalLBGlobalsBindingStub.get_down_threshold(GlobalLBGlobalsBindingStub.java:1710)
at Client.main(Client.java:13)
Caused by: java.net.MalformedURLException: For input string: "443@12.3.83.22:443"
at java.net.URL.(URL.java:617)
at java.net.URL.(URL.java:480)
at java.net.URL.(URL.java:429)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:133)
... 11 more
Caused by: java.lang.NumberFormatException: For input string: "443@12.3.83.22:443"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.parseInt(Integer.java:514)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:217)
at java.net.URL.(URL.java:612)
... 14 more
please help me what way we can hadle...
- That's odd. I wonder if there's an issue with the "@" in the password. I'll test this out when I get into the office later this morning.
- I was correct. It looks like there is an issue with the iControl Interfaces class with it's support of the "" and "@" characters in the password. Is there any way you could change your password and remove those characters and see if it corrects the issue. I'll try to look for a workaround but in the meantime changing your password should correct the issue.
- rajesh_74821
Nimbostratus
HI joe, - Yes, it is an issue with the iControl.jar java library. I've got a fix and I'm building the distributions right now. I'll post when they are uploaded.
- Ok, I've updated the 10.0.0 Java library with the fixes to the Interfaces class to support the characters you've had a problem with. You can download it from the "iControl Assembly" Labs project. Look for "Java Binary Distribution" in the right column. The enclosed iControl.jar should be dated today.
- rajesh_74821
Nimbostratus
HI Joe, - Great, glad to help. Please feel free to post again if any other issues come up.
- rajesh_74821
Nimbostratus
Hi Joe, - Currently there are no javadocs for the iControl library for Java. All the methods are documented in the iControl API Reference in the wiki in a multi-language format. The only thing that isn't in there is the iControl.Interfaces class.
http://devcentral.f5.com/wiki/default.aspx/iControl/APIReference.html
- rajesh_74821
Nimbostratus
OK Thank you Joe.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects