File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Not Enough space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Not Enough space" Watch "Not Enough space" New topic

Not Enough space

Neelam Gautam

Joined: Oct 23, 2006
Posts: 6
Hi All!

I want to do telnet from my unix server to a windows server for it i use JTA Api of java. but while i am running 'exec' function by my RunTime Object , i am getting " Not enough space" Exception. but i have enough space on my server. so whats the problem with my code..? is there any bug of IO..? my code snippet is as follows::

String exec="telnet 5501";
Runtime run=Runtime.getRuntime();
Process proc=run.exec(exec); // exception comes here ..

please help

Thnaks in advance.

naveen jain

Joined: Oct 02, 2008
Posts: 16
Carey Evans
Ranch Hand

Joined: May 27, 2008
Posts: 225

The Java exception doesn't seem to say where the error occurred, but it’s probably ENOSPC or similar from a call to pipe(2) or fork(2). It could be caused by exceeding some process quotas, or limits like virtual memory or number of open file descriptors. The last one is possible if you’re creating lots of processes, but not closing all three streams associated with them when you’re finished.

You could try using tools like strace or truss to identify the failing system call; or alternatively, use something like Apache Commons Net to do the Telnet protocol in pure Java.
subject: Not Enough space
jQuery in Action, 3rd edition