1827262 Members
2331 Online
109717 Solutions
New Discussion

Re: Java problem

 
SOLVED
Go to solution
Karthik S S
Honored Contributor

Java problem

Hi,

I have installed JDK 1.3 on hp-ux 11.11.

I am seeing this erro when I run some java program

java.io.IOException: File table overflow
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:86)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.jav
a:564)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
at
org.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:162)
at
org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:250)
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:183)
at org.apache.tools.ant.ProjectHelper$TaskHandler.finished(ProjectHelper.java:4
89)
at org.apache.tools.ant.ProjectHelper$AbstractHandler.endElement(ProjectHelper.
java:204)
at
org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:347)
at
weblogic.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1411)
at weblogic.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVali
dator.java:1613)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentS
canner.java:1824)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat
ch(XMLDocumentScanner.java:1197)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:396)
at
weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:1119)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:144)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:326)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
at org.apache.tools.ant.Main.runBuild(Main.java:439)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)

clean:


WHat could be the problem??

Thanks,
Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
10 REPLIES 10
Ravi_8
Honored Contributor

Re: Java problem

Hi,

have you imported these files.

import java.io.FileNotFoundException;
import java.io.IOException;
never give up
Ravi_8
Honored Contributor

Re: Java problem

Hi,

have you imported these files.

import java.io.FileNotFoundException;
import java.io.IOException;
never give up
Ravi_8
Honored Contributor

Re: Java problem

Hi,

have you imported these files.

import java.io.FileNotFoundException;
import java.io.IOException;
never give up
Ravi_8
Honored Contributor

Re: Java problem

Hi,

Have you included these ?

import java.io.FileNotFoundException;
import java.io.IOException;
never give up
Ravi_8
Honored Contributor

Re: Java problem

Hi,

Have you included these ?

import java.io.FileNotFoundException;
import java.io.IOException;
never give up
Ravi_8
Honored Contributor

Re: Java problem

Hi, sorry

i had problem with my proxy
never give up
Karthik S S
Honored Contributor

Re: Java problem

Hi Ravi,

How to import these files? I am new to Java. This problem was reported by out client and I got to fix it.

Thanks
Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
T G Manikandan
Honored Contributor
Solution

Re: Java problem

File table overflow is that you have lot of open files on the system.

1.To fix it temporarily you need to close down the unrequired process which can reduce the number of open files.

2.A permanent fix would be to increase the kernel parameter "nfile"

Increase the parameter nfile.Rebuild the kernel and reboot

That should resolve the problem

Thanks
Ravi_8
Honored Contributor

Re: Java problem

Hi,

These are all classes

Here is a description of the classes included
to one my java file :
package org.xml.io;

import java.io.Writer;
import java.io.FilterWriter;
import java.io.IOException;
import java.util.Hashtable;

{program ...


}

never give up
Karthik S S
Honored Contributor

Re: Java problem

Thanks Mani. nfile did that magic :-)

Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn