Hi, I get this exception when tried try-it in ESB. I think we have mistakenly assumed WSDL2FormGenerator receives only IPv4 URLs.
My initial GET request is http://localhost:8280/services/Version?tryit . Then at org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor#process; the URL is converted to "http://0:0:0:0:0:0:0:1:8280/services/Version?tryit" which is an IPv6 URL. So it throws the exception at WSDL2FormGenerator. [2011-04-12 12:29:06,301] ERROR {org.wso2.carbon.wsdl2form.WSDL2FormGenerator} - For input string: "0:0:0:0:0:0:1:8280" java.net.MalformedURLException: For input string: "0:0:0:0:0:0:1:8280" at java.net.URL.<init>(URL.java:601) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at org.wso2.carbon.wsdl2form.WSDL2FormGenerator.getInternalTryit(WSDL2FormGenerator.java:104) at org.wso2.carbon.tryit.TryitRequestProcessor.process(TryitRequestProcessor.java:49) at org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor.processWithGetProcessor(NHttpGetProcessor.java:134) at org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor.process(NHttpGetProcessor.java:227) at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:256) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) [2011-04-12 12:29:06,302] ERROR {org.wso2.carbon.tryit.TryitRequestProcessor} - org.wso2.carbon.CarbonException: java.net.MalformedURLException: For input string: "0:0:0:0:0:0:1:8280" [1] - http://download.oracle.com/javase/1.4.2/docs/api/java/net/URL.html#URL%28java.lang.String,%20java.lang.String,%20int,%20java.lang.String%29 -- Thanks, Denis ---------------------------------------------------------- *Denis Weerasiri* Software Engineer; WSO2 Inc.; http://wso2.com, *email: denis <http://goog_277208233/>** [AT] wso2.com* <http://wso2.com/>* blog: **http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>* twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri>* linked-in: **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
