I am trying to call gzip utility from my servlet.
The code line is as below :
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("gzip -f -9 " +fileName);
I got the following error :
java.io.IOException: Not enough space
I even tried to use the actual path of gzip in the code :
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("/usr/bin/gzip -f -9 "
+fileName);
But still I got the same error.
Can anyone tell me what I am missing out.....
Thanks.
Peter Vennel
java.io.IOException: Not enough space
at java.lang.UNIXProcess.<init>(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
at JSOliDocument.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Peter Vennel <Peter....@wcom.com> wrote in message
news:8e7d2t$hqa$1...@bayview.weblogic.com...
Joe Weinstein at BEA, the home of Weblogic
Peter Vennel wrote:
--
PS: Folks: BEA WebLogic is in S.F., and now has some entry-level positions for
people who want to work with Java and E-Commerce infrastructure products. Send
resumes to j...@beasys.com
--------------------------------------------------------------------------------
The Weblogic Application Server from BEA
JavaWorld Editor's Choice Award: Best Web Application Server
Java Developer's Journal Editor's Choice Award: Best Web Application Server
Crossroads A-List Award: Rapid Application Development Tools for Java
Intelligent Enterprise RealWare: Best Application Using a Component Architecture
http://weblogic.beasys.com/press/awards/index.htm
--
Jim Clark
Idea Integration
http://www.idea.com
"Joseph Weinstein" <j...@weblogic.com> wrote in message
news:39077FE1...@weblogic.com...