<?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 and/or ftp problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104381#M717481</link>
    <description>Tomek,  I am echoing Paddy's comments here.&lt;BR /&gt;&lt;BR /&gt;The NullPointer exception is for the input stream (or that input) and java is finding as null.&lt;BR /&gt;&lt;BR /&gt;Might be after connecting, it is crashing.  &lt;BR /&gt;&lt;BR /&gt;-Umapathy</description>
    <pubDate>Tue, 28 Oct 2003 12:53:07 GMT</pubDate>
    <dc:creator>Umapathy S</dc:creator>
    <dc:date>2003-10-28T12:53:07Z</dc:date>
    <item>
      <title>Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104374#M717474</link>
      <description>Hi,&lt;BR /&gt;i've got a java, or ftp, or network problem. I am using the very simple java class which connects to ftp server and downloading the file. So, on one of the servers this class crashed with exception:&lt;BR /&gt;Connected to URL ftp://user:pass@host/PROD/test.txt&lt;BR /&gt;Exception in thread "main" java.lang.NullPointerException&lt;BR /&gt;        at URLLineReader2.ready(URLLineReader2.java:67)&lt;BR /&gt;        at URLLineReader2.main(URLLineReader2.java:92)&lt;BR /&gt;&lt;BR /&gt;It is crashing when executing:&lt;BR /&gt;m_in = urlc.getInputStream(); &lt;BR /&gt;&lt;BR /&gt;I have many other machines, on which this class is running very well. On every machine i have 11i, java version is the same:&lt;BR /&gt;java version "JavaVM-1.3.0.01"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition (build jinteg:02/14/01-23:51)&lt;BR /&gt;HotSpot VM (build 1.0.1fcs jinteg:02/15/01-02:43 PA2.0, mixed mode)&lt;BR /&gt;&lt;BR /&gt;I cannot change the java versionbecause appserver is using it.&lt;BR /&gt;&lt;BR /&gt;I can connect from this machine to the ftp server using a normal ftp client, with the same user and password, and download this file... I've tried to use IP instead of host name.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;-Tomek</description>
      <pubDate>Tue, 28 Oct 2003 11:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104374#M717474</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2003-10-28T11:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104375#M717475</link>
      <description>Hi Tomek,&lt;BR /&gt; &lt;BR /&gt;I'm not sure just how that class works, but if it uses the ~username/.netrc file as input for the username/PW, then I would check the ownership &amp;amp; perms on that file.&lt;BR /&gt;It must be 600 &amp;amp; owned by that user &amp;amp; the primary group of that user.&lt;BR /&gt; &lt;BR /&gt;BTW - I strongly urge all to find other ways to do unattended ftp xfers - like ssh/sftp/scp so that you don't need .netrc files. They're HUGE security holes.&lt;BR /&gt; &lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 28 Oct 2003 11:32:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104375#M717475</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-10-28T11:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104376#M717476</link>
      <description>Tomek,&lt;BR /&gt;  I feel the problem is there in the java class.  Since, the plain ftp client has no problems, double check the java code.&lt;BR /&gt;&lt;BR /&gt;  You can attach it here, may be somebody can go through it and give some suggestions.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Tue, 28 Oct 2003 11:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104376#M717476</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-10-28T11:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104377#M717477</link>
      <description>No, it is not using .netrc&lt;BR /&gt;&lt;BR /&gt;And it is not the problem in java code - the same class is working on over 40 different machines (HPUX, NT) - only on the specified one i have a problems.</description>
      <pubDate>Tue, 28 Oct 2003 11:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104377#M717477</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2003-10-28T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104378#M717478</link>
      <description>Are the java-related patches on the HP server where the code is crashing different from the patchs on the other servers where it is not?&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 28 Oct 2003 12:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104378#M717478</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-10-28T12:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104379#M717479</link>
      <description>I am checking the patches now. But i am not using standard java - this java is provided with application server.&lt;BR /&gt;&lt;BR /&gt;-Tomek</description>
      <pubDate>Tue, 28 Oct 2003 12:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104379#M717479</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2003-10-28T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104380#M717480</link>
      <description>Seems like it can find the url mentioned or whatever is the unput stream yielding it.&lt;BR /&gt;&lt;BR /&gt;The exception says the value given by the input stream is non-existent or has some error naming it..&lt;BR /&gt;&lt;BR /&gt;can you attach the source so that we can analyse it further.</description>
      <pubDate>Tue, 28 Oct 2003 12:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104380#M717480</guid>
      <dc:creator>Paddy_1</dc:creator>
      <dc:date>2003-10-28T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104381#M717481</link>
      <description>Tomek,  I am echoing Paddy's comments here.&lt;BR /&gt;&lt;BR /&gt;The NullPointer exception is for the input stream (or that input) and java is finding as null.&lt;BR /&gt;&lt;BR /&gt;Might be after connecting, it is crashing.  &lt;BR /&gt;&lt;BR /&gt;-Umapathy</description>
      <pubDate>Tue, 28 Oct 2003 12:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104381#M717481</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-10-28T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java and/or ftp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104382#M717482</link>
      <description>Sorry i dont think i can put the source, it is not mine :(&lt;BR /&gt;But the fragments with connection are:&lt;BR /&gt;&lt;BR /&gt;// source is args[0]&lt;BR /&gt;URL sourceURL = new URL(source);&lt;BR /&gt;if (sourceURL == null)&lt;BR /&gt;{ [report error]; return false }&lt;BR /&gt;URLConnection urlc = sourceURL.openConnection();&lt;BR /&gt;m_in = urlc.getInputStream(); &lt;BR /&gt;--- and at this place is throwing sun.net.ftp.FtpProtocolException: PORT&lt;BR /&gt;&lt;BR /&gt;I am sure that user, pass, path, server is correct. &lt;BR /&gt;Another thing: i am using the sam class to retrieve files via HTTP, and it is working...</description>
      <pubDate>Tue, 28 Oct 2003 13:00:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-and-or-ftp-problem/m-p/3104382#M717482</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2003-10-28T13:00:54Z</dc:date>
    </item>
  </channel>
</rss>

