<?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 error: cannot create pipe in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-error-cannot-create-pipe/m-p/4507588#M654024</link>
    <description>&lt;!--!*#--&gt;I know nothing, but ...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; maxfiles_lim      4095            8192&lt;BR /&gt;&lt;BR /&gt;That "4095" must be either an amazing&lt;BR /&gt;coincidence, or else very suspicious.&lt;BR /&gt;&lt;BR /&gt;Output from "ulimit" (as the user in&lt;BR /&gt;question) might be interesting.  Or, perhaps&lt;BR /&gt;there's some Java-specific open-file limit&lt;BR /&gt;set somewhere?</description>
    <pubDate>Mon, 05 Oct 2009 13:54:47 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-10-05T13:54:47Z</dc:date>
    <item>
      <title>java error: cannot create pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-error-cannot-create-pipe/m-p/4507587#M654023</link>
      <description>&lt;!--!*#--&gt;Hello all. I have an oracle script that runs system file copy operation (HP UX 11.31, Oracle 10.2.0.4, hp rx8640) .  Everything works fine but about 2 weeks ago it has started to generate the following java exception: "User-Defined Exception cannot create pipe" and after that an oracle error: "ORA-12157: TNS:internal network communication error".&lt;BR /&gt;&lt;BR /&gt;Here is a listing of the script:&lt;BR /&gt;&lt;BR /&gt;create or replace and compile java source named OSCommand as&lt;BR /&gt;import &lt;BR /&gt;java.io.*;                                                             &lt;BR /&gt;public class OSCommand{&lt;BR /&gt; public static String Run(String &lt;BR /&gt;Command){                                         &lt;BR /&gt;try{                                                                              &lt;BR /&gt;String Result="";&lt;BR /&gt;       String[] envParams = null;&lt;BR /&gt;&lt;BR /&gt;       Process p = Runtime.getRuntime().exec(Command, envParams, null);&lt;BR /&gt;       int status = p.waitFor();&lt;BR /&gt;              LineNumberReader r;&lt;BR /&gt;       if (status==0 ){&lt;BR /&gt;         r = new LineNumberReader(new &lt;BR /&gt;InputStreamReader(p.getInputStream()));&lt;BR /&gt;       }else{&lt;BR /&gt;         r = new LineNumberReader(new &lt;BR /&gt;InputStreamReader(p.getErrorStream()));&lt;BR /&gt;         Result="ERROR1: "+status;&lt;BR /&gt;       };&lt;BR /&gt;       String s = r.readLine(); Result+=s;&lt;BR /&gt;       while (s!=null){&lt;BR /&gt;         s=r.readLine();&lt;BR /&gt;         if (s!=null) {Result+="\n"+s;};&lt;BR /&gt;       };&lt;BR /&gt;              return Result;&lt;BR /&gt;    }&lt;BR /&gt;    catch (Exception e){&lt;BR /&gt;       System.out.println("ERROR2: (running command) " + Command +&lt;BR /&gt;                                "\n" + e.getMessage());           &lt;BR /&gt;return(e.getMessage());      &lt;BR /&gt;}                                                                          &lt;BR /&gt;}                                                                          &lt;BR /&gt;}  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CREATE OR REPLACE FUNCTION OSCommand_Run(Command IN STRING)&lt;BR /&gt;RETURN VARCHAR2 IS&lt;BR /&gt;LANGUAGE JAVA&lt;BR /&gt;NAME 'OSCommand.Run(java.lang.String) return int';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;begin&lt;BR /&gt;...&lt;BR /&gt;OSCommand_Run('cp '||p_datafile_name||' '||p_directory_path);&lt;BR /&gt;...&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;I thought that the problem is in kernel tunables but everything looks fine here.&lt;BR /&gt;&lt;BR /&gt;Tunable           Current Usage     Current Setting&lt;BR /&gt;filecache_max   17107095552     17118151065&lt;BR /&gt;maxdsiz           52625408        1073741824&lt;BR /&gt;maxdsiz_64bit     133611152       4294967296&lt;BR /&gt;maxfiles_lim      4095            8192&lt;BR /&gt;maxssiz           1683456         134217728&lt;BR /&gt;maxssiz_64bit   786432  1073741824&lt;BR /&gt;maxtsiz    2101248  100663296&lt;BR /&gt;maxtsiz_64bit   213909504 1073741824&lt;BR /&gt;maxuprc    70  3780&lt;BR /&gt;max_thread_proc   65  1100&lt;BR /&gt;msgmni     2  4200&lt;BR /&gt;msgtql    0  4200&lt;BR /&gt;nflocks    4044  4096&lt;BR /&gt;ninode    6928  35648&lt;BR /&gt;nkthread   664  7366&lt;BR /&gt;nproc    306  4200&lt;BR /&gt;npty    0  60&lt;BR /&gt;nstrpty    7  60&lt;BR /&gt;nstrtel    0  60&lt;BR /&gt;nswapdev   1  32&lt;BR /&gt;nswapfs    0  32&lt;BR /&gt;semmni     26  4200&lt;BR /&gt;semmns    463  8400&lt;BR /&gt;shmmax    4294967296 4294967296&lt;BR /&gt;shmmni    20  512&lt;BR /&gt;shmseg    10  300&lt;BR /&gt;&lt;BR /&gt;Maybe somebody knows that the problem is?&lt;BR /&gt;Thanks in advance for your answers</description>
      <pubDate>Mon, 05 Oct 2009 06:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-error-cannot-create-pipe/m-p/4507587#M654023</guid>
      <dc:creator>andreyP</dc:creator>
      <dc:date>2009-10-05T06:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: java error: cannot create pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-error-cannot-create-pipe/m-p/4507588#M654024</link>
      <description>&lt;!--!*#--&gt;I know nothing, but ...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; maxfiles_lim      4095            8192&lt;BR /&gt;&lt;BR /&gt;That "4095" must be either an amazing&lt;BR /&gt;coincidence, or else very suspicious.&lt;BR /&gt;&lt;BR /&gt;Output from "ulimit" (as the user in&lt;BR /&gt;question) might be interesting.  Or, perhaps&lt;BR /&gt;there's some Java-specific open-file limit&lt;BR /&gt;set somewhere?</description>
      <pubDate>Mon, 05 Oct 2009 13:54:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-error-cannot-create-pipe/m-p/4507588#M654024</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-10-05T13:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: java error: cannot create pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-error-cannot-create-pipe/m-p/4507589#M654025</link>
      <description>How soon after the error did you generate the kernel tunables list?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; nflocks          4044      4096&lt;BR /&gt;&lt;BR /&gt;I think the number of file locks in use is very close to the current setting. Is the filecopy local within your server or is from a remote server?&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Oct 2009 14:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-error-cannot-create-pipe/m-p/4507589#M654025</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-10-05T14:44:50Z</dc:date>
    </item>
  </channel>
</rss>

