File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Not Enough space" Watch "Not Enough space" New topic
Author

Not Enough space

Neelam Gautam
Greenhorn

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 "java.io.IOException: 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 203.187.192.75 5501";
Runtime run=Runtime.getRuntime();
Process proc=run.exec(exec); // exception comes here ..

please help

Thnaks in advance.

naveen jain
Greenhorn

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Not Enough space
 
Similar Threads
"No enough space "java.io.IOException
java.io.IOException: There is not enough space on the disk
How to invoke the os's ping
how to clear applet screen
"No enough Space" Exception