<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java socket connection exception in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741555#M721990</link>
    <description>I'm not using a proxy server. I even checked its use in the code, so that cant be the problem.</description>
    <pubDate>Tue, 11 Jun 2002 13:43:31 GMT</pubDate>
    <dc:creator>Chamitha Wijesekera</dc:creator>
    <dc:date>2002-06-11T13:43:31Z</dc:date>
    <item>
      <title>Java socket connection exception</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741553#M721988</link>
      <description>Hi, my application creates an agent at a specified port and then requests a url from that port. &lt;BR /&gt;&lt;BR /&gt;url = new URL( "http://eshpa004:8082/vgnstatus/xmltree"); &lt;BR /&gt;urlConn = (HttpURLConnection)url.openConnection(); &lt;BR /&gt;is = urlConn.getInputStream(); &lt;BR /&gt;&lt;BR /&gt;where, &lt;BR /&gt;url = URL object &lt;BR /&gt;urlConn = HttpURLConnection object &lt;BR /&gt;is = InputStream object &lt;BR /&gt;eshpa004 = machine name (HP-UX) &lt;BR /&gt;&lt;BR /&gt;The following exception is thrown by the getInputStream method. &lt;BR /&gt;&lt;BR /&gt;java.net.ConnectException: Connection refused &lt;BR /&gt;at java.net.PlainSocketImpl.socketConnect(Native Method) &lt;BR /&gt;at java.net.PlainSocketImpl.doConnect(Unknown Source) &lt;BR /&gt;at java.net.PlainSocketImpl.connectToAddress(Unknown Source) &lt;BR /&gt;at java.net.PlainSocketImpl.connect(Unknown Source) &lt;BR /&gt;at java.net.Socket.(Unknown Source) &lt;BR /&gt;at java.net.Socket.(Unknown Source) &lt;BR /&gt;at sun.net.NetworkClient.doConnect(NetworkClient.java:50) &lt;BR /&gt;at sun.net.&lt;A href="http://www.http.HttpClient.openServer(HttpClient.java:331)" target="_blank"&gt;www.http.HttpClient.openServer(HttpClient.java:331)&lt;/A&gt; &lt;BR /&gt;at sun.net.&lt;A href="http://www.http.HttpClient.openServer(HttpClient.java:517)" target="_blank"&gt;www.http.HttpClient.openServer(HttpClient.java:517)&lt;/A&gt; &lt;BR /&gt;at sun.net.&lt;A href="http://www.http.HttpClient.(HttpClient.java:267)" target="_blank"&gt;www.http.HttpClient.(HttpClient.java:267)&lt;/A&gt; &lt;BR /&gt;at sun.net.&lt;A href="http://www.http.HttpClient.(HttpClient.java:277)" target="_blank"&gt;www.http.HttpClient.(HttpClient.java:277)&lt;/A&gt; &lt;BR /&gt;at sun.net.&lt;A href="http://www.http.HttpClient.New(HttpClient.java:289)" target="_blank"&gt;www.http.HttpClient.New(HttpClient.java:289)&lt;/A&gt; &lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:411)" target="_blank"&gt;www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:411)&lt;/A&gt; &lt;BR /&gt;at utests.java.classes.unit.monitor.framework.AgentTest.send(AgentTest.java:401) &lt;BR /&gt;&lt;BR /&gt;I can load the url in a web browser perfectly. Hence the agent is connected and online. Any suggestions?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jun 2002 20:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741553#M721988</guid>
      <dc:creator>Chamitha Wijesekera</dc:creator>
      <dc:date>2002-06-10T20:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Java socket connection exception</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741554#M721989</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If your normal connections from your web browser (e.g. IE) is through a HTTP proxy server, then your perl script's direct connection to port 80 will not work. This is because a direct connect does not go through the HTTP proxy server and is thus blocked.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 11 Jun 2002 00:51:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741554#M721989</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-11T00:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Java socket connection exception</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741555#M721990</link>
      <description>I'm not using a proxy server. I even checked its use in the code, so that cant be the problem.</description>
      <pubDate>Tue, 11 Jun 2002 13:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741555#M721990</guid>
      <dc:creator>Chamitha Wijesekera</dc:creator>
      <dc:date>2002-06-11T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Java socket connection exception</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741556#M721991</link>
      <description>The exact same code works fine on a Windows 2000 platform. So it sure seems like an HP-UX OS issue.</description>
      <pubDate>Wed, 12 Jun 2002 15:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-socket-connection-exception/m-p/2741556#M721991</guid>
      <dc:creator>Chamitha Wijesekera</dc:creator>
      <dc:date>2002-06-12T15:48:38Z</dc:date>
    </item>
  </channel>
</rss>

