johvargas / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

Proxy Network getBatchInfo() Not working. #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Proxy Network getBatchInfo() Not working
2.Need Inside getBatchInfo() -> doHttpGet() --> HttpURLConnection --> 
url.openConnection(proxy);
3. Exception in thread "main" java.lang.IllegalArgumentException: input 
stream can not be null
    at com.sforce.ws.parser.MXParser.setInput(MXParser.java:522)
    at com.sforce.ws.parser.XmlInputStream.setInput
(XmlInputStream.java:64)
    at com.sforce.async.RestConnection.parseAndThrowException
(RestConnection.java:112)
    at com.sforce.async.RestConnection.doHttpGet
(RestConnection.java:283)
    at com.sforce.async.RestConnection.getBatchInfoList
(RestConnection.java:190)

What is the expected output? What do you see instead?
Need Interface Setting for Proxy

What version of the product are you using? On what operating system?
17

Please provide any additional information below.
Proxy p = new Proxy( Proxy.Type.HTTP,new InetSocketAddress("proxy",8080));
getBatchInfoList(String jobId,proxy);
InputStream stream = doHttpGet(url,proxy);
HttpURLConnection connection = (HttpURLConnection) url.openConnection
(proxy);

Original issue reported on code.google.com by s.thanga...@gmail.com on 21 Oct 2009 at 12:39

GoogleCodeExporter commented 8 years ago
Proxy p = new Proxy( Proxy.Type.HTTP,new 
InetSocketAddress(config.getProxy(),8080));
HttpURLConnection connection = (HttpURLConnection) url.openConnection
(proxy);

Original comment by s.thanga...@gmail.com on 21 Oct 2009 at 12:55

GoogleCodeExporter commented 8 years ago
This is fixed in WSC Version 18. Please try it out.

Original comment by manoj.ch...@gmail.com on 6 Apr 2010 at 11:11