Java.io.IOException: Not enough space - Weblogic 8.1 on Solaris 8
Hi,
We get "java.io.Exception: Not enough space" sometimes when trying to access
JSPs hosted on Weblogic 8.1 on Solaris 8. It looks like a problem because of
increased swap space usage. What should we do to get rid of this issue
Compilation of '.......java' failed:_____
(Failed to parse compiler output. See full output below). ____
Full compiler error(s):
java.io.IOException: Not enough space
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:491)
at java.lang.Runtime.exec(Runtime.java:457)
at weblogic.utils.Executable.exec(Executable.java:227)
at weblogic.utils.Executable.exec(Executable.java:156)
at weblogic.utils.Executable.exec(Executable.java:142)
at
weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:427)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:443)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Thanks,
Abhijeet Dev
Hello,
I had the same problem and I eradicated it by changing used % of /tmp dir from 97% to 81% by removing unwanted files in /tmp folder.
Try it out......
df -k
Now u will see that ur swap space is not sufficient.Check the corresponding mounting directory.Remove unwanted files from this dir. Restart ur server.Your problem should be solved.Note: Restarting server is not needed but for safe side restart ur server.
In mine case, my dir was /tmp.I removed all unwanted files and then the problem was solved.
Thanks
Chandra
Similar Messages
-
Java.io.IOException: Not enough space when running external command
Hi All,
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
We just ran into this problem yesterday. For us, it seemed to be a disk
space problem. If you run "df -k" you'll see how full your file systems
are. We cleared out some of the /var/log (capacity was 80%) files reducing
capacity to 50% and the problem went away, for now.
Jim Clark
Idea Integration
http://www.idea.com
"Joseph Weinstein" <[email protected]> wrote in message
news:[email protected]...
> Hi Pete,
> It seems to me that your JVM is just running out of space. The JVM has
default
> limits on the amount of memory (java or native) that it will take from the
OS,
> and you're hitting one of those limits. How are you starting the WebLogic
> server? If it's by the startWebLogic script, or other such, try adding, or
altering
> the arguments to the invocation of java, to allow more memory.
>
> Joe Weinstein at BEA, the home of Weblogic
>
> Peter Vennel wrote:
>
> > This is the exception I got at the server side. Does anyone know what
this
> > mean ....
> >
> > 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 <[email protected]> wrote in message
> > news:[email protected]...
> > > Hi All,
> > >
> > > 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
> > >
> > >
> > >
>
> --
>
> 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 [email protected]
> --------------------------------------------------------------------------
> 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
>
>
-
Java.io.IOException: Not enough space
Hi,
I get the following error after running Weblogic 4.5.1 on Solaris 2.7 (1GB
Ram). for a couple of days.
At first I thought it was running out of File Descriptors. I increased them
to 4096 from 1024.
But the problem still exists. I am unable to find any help in the
documentation.
Any help on this is greatly appreciated.
Thanks,
Sai
*******************Start of Error MEssage****************************
Tue Jun 20 10:09:50 CDT 2000:<I> <ServletContext-Servlets>
weblogic.servlet.JSPServlet: Generated java file: /space/weblogic/s
hop_server_com/jspclasses/jsp_servlet/_big/_DisplayItemList.java
Tue Jun 20 10:09:50 CDT 2000:<E> <ServletContext-Servlets>
weblogic.servlet.JSPServlet: Compilation of /space/weblogic/shop_
server_com/jspclasses/jsp_servlet/_big/_DisplayItemList.java failed:
java.io.IOException: Not enough space
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.forkAndExec(Compiled Code)
at java.lang.UNIXProcess.<init>(Compiled Code)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.execInternal(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
at weblogic.utils.Executable.exec(Compiled Code)
at weblogic.utils.Executable.exec(Compiled Code)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled
Code)
at weblogic.utils.compiler.CompilerInvoker.compile(Compiled Code)
at weblogic.servlet.JSPServlet.compilePage(Compiled Code)
at weblogic.servlet.JSPServlet.getStub(Compiled Code)
at weblogic.servlet.JSPServlet.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)
************************End of Error Message*****************I had the same problem before. Increase the swap space, if it is too small, increase it.
Vince
"Michael Reiche" <[email protected]> wrote:
>
This is the operating system running out of swap space. Recompiling JSP in 4.5.1 wastes a lot of memory.
If you run /usr/proc/bin/pmap -x <pid> you will likely see that the 'heap' segment is very large.
Mike
"Bengt Bäverman" <[email protected]> wrote:
I have also seen this, missleading, message.
I believe that we decreased our heap size from above 1GB to just below. I
remember looking at the Java code for java.io and I could not find any
string with that wording, so it must come from the operating system.
Bengt Baverman
[email protected]
"Vinod Shah" <[email protected]> skrev i meddelandet
news:[email protected]...
I have seen this with WL 4.5.1 and Solaris 2.6. Make sure you
are using the -native flag to use native threads when starting
the JVM. In my case this solved the problem. The
"java.io.IOException: Not enough space" message
fooled me too.
Vinod Shah
"Srikant Subramaniam" <[email protected]> wrote in message
news:[email protected]...
Here's why I think you're running out of disk space:
weblogic.servlet.JSPServlet: Compilation of
/space/weblogic/shop_server_com/jspclasses/jsp_servlet/_big/_DisplayItemList
.java
failed:
java.io.IOException: Not enough space
saiprasadp wrote:
Hi,
Definitely not. There is more than 13 Gig left (unused) on the
partition
where weblogic is installed and more than
4 Gig in /tmp.
Sai
Srikant Subramaniam <[email protected]> wrote in message
news:[email protected]...
Could you be running out of disk space?
Srikant.
saiprasadp wrote:
Hi,
I get the following error after running Weblogic 4.5.1 on Solaris
2.7
(1GB
Ram). for a couple of days.
At first I thought it was running out of File Descriptors. I
increased
them
to 4096 from 1024.
But the problem still exists. I am unable to find any help in the
documentation.
Any help on this is greatly appreciated.
Thanks,
Sai
*******************Start of Error
MEssage****************************
Tue Jun 20 10:09:50 CDT 2000:<I> <ServletContext-Servlets>
weblogic.servlet.JSPServlet: Generated java file:
/space/weblogic/s
hop_server_com/jspclasses/jsp_servlet/_big/_DisplayItemList.java
Tue Jun 20 10:09:50 CDT 2000:<E> <ServletContext-Servlets>
weblogic.servlet.JSPServlet: Compilation of /space/weblogic/shop_
server_com/jspclasses/jsp_servlet/_big/_DisplayItemList.javafailed:
java.io.IOException: Not enough space
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.forkAndExec(Compiled Code)
at java.lang.UNIXProcess.<init>(Compiled Code)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.execInternal(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
at weblogic.utils.Executable.exec(Compiled Code)
at weblogic.utils.Executable.exec(Compiled Code)
atweblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled
Code)
at
weblogic.utils.compiler.CompilerInvoker.compile(Compiled
Code)
at weblogic.servlet.JSPServlet.compilePage(Compiled Code)
at weblogic.servlet.JSPServlet.getStub(Compiled Code)
at weblogic.servlet.JSPServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
atweblogic.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)
************************End of Error Message*****************--
Srikant, [email protected], http://www.weblogic.com/, etc. -
Hi
I am getting this error
java.io.IOException: Not enough space
at sun.nio.ch.FileChannelImpl.map0(Native Method)
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:728)
I ahve a shell script which spawn three jvms
Two jvms have XMX=12288M
and the third XMX=10240M
Basically each jvm has around 12 threads to read in xml files and process them.
The HP machine has around 70 GB RAM.
So, in total the java uses around 36 GB only but still it crashes.
I then change the xml files so that the third jvm does not read any files
but it is just spawned for the sake of it.
Even then it crashes with the same error.
Any idea what can be done to fix this.
Thanksi have OSF DCE 1.1/HP DCE 1.8I'm afraid I'm not familiar with that.
Other than the comments I posted above,
perhaps ask on HP user groups to find tips
on increasing the available memory?
Oh, another thing: when you issue "java -Xmx", you are specifying
the desired amount of memory. But in UNIX, there is a per-user upperlimit.
Try typing "ulimit -a" on a command line, and it will
tell you a hard limit that was configured by the machine's administrator.
Eg. I have 4G on my machine, but by default, my user account
is limited to 512M per process (and no matter what I type in Xmx,
my java process cannot exceed the hard limit set by my
administrator)
% ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) 524288
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 11095
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 65536
cpu time (seconds, -t) unlimited
max user processes (-u) 5547
virtual memory (kbytes, -v) unlimited -
Hi All,
I am calling a shell script from the java using the Runtime class, the job of the shell script is to zip some content which is huge in size(max 500MB) while invoking the shell script i will give the arguments source & destination. I am using the waitFor() so that my java program will wait untill the shell script execution is over. Everything is working as expected but some times it's giving Exception java.io.IOException : Not enough space
What could be the reason for getting this kind of error ? Your suggestions are more appreciated.
Thanks,
Krishna Rajendra A.I don't know what the problem is but make sure you follow the advice for stdout and stderr in http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html because I bet the output from stdout or stderr will tell you what your problem is.
-
Java.io.IOException: Not enough files, skip(42225498) failed
dear expert,
During the migration of SAP CRM, on phase - Import Java dump, the following error occurs:
Apr 21, 2008 12:18:45 PM com.sap.inst.jload.Jload logStackTrace
SEVERE: java.io.IOException: Not enough files, skip(42225498) failed
at com.sap.inst.jload.io.SplitInputStream.skip(SplitInputStream.java:368)
at com.sap.inst.jload.io.SplitInputStream.close(SplitInputStream.java:193)
at com.sap.inst.jload.io.ChoppedInputStream.close(ChoppedInputStream.java:61)
at java.io.BufferedInputStream.close(BufferedInputStream.java:398)
at java.io.FilterInputStream.close(FilterInputStream.java:159)
at com.sap.inst.jload.io.DataFile.closeDataInputStream(DataFile.java:169)
at com.sap.inst.jload.db.DBTable.load(DBTable.java:301)
at com.sap.inst.jload.Jload.dbImport(Jload.java:323)
at com.sap.inst.jload.Jload.executeJob(Jload.java:397)
at com.sap.inst.jload.Jload.main(Jload.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
Apr 21, 2008 12:18:57 PM com.sap.inst.jload.db.DBConnection disconnect
i already increase ulimit nofile to 5000
all source migration already put on hardisk
our system using HPUX - oracle
thanks for your help ...
rgds
echohi thanks a lot for help ..
any way .. can you guide me how to set permanently ulimit our using HP UX ..
current ulimit configuration :
ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 60000
thanks a lot
rgds
echo
Edited by: echo haryono on Apr 22, 2008 11:35 AM -
Weblogic.security.Encrypt -and- Not enough space
This post has two questions.
I have a simple application on wls9.2 that is a web front end to the weblogic.security.Encrypt command line utility. It seems to work fine, but after a little bit of use I am seeing the following:
java.io.IOException: Not enough space
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:429)
at java.lang.Runtime.exec(Runtime.java:326)
at encrypt.wls92Encrypt(Unknown Source)
at encrypt.doGet(Unknown Source)
at encrypt.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3245)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
1) Here is the forking code:
try {
proc = Runtime.getRuntime().exec("java -Dweblogic.RootDirectory="+rootDir+" weblogic.security.Encrypt "+password);
BufferedReader bf=new BufferedReader(new InputStreamReader(proc.getInputStream()));
line=bf.readLine();
bf.close();
} catch (IOException e) {
Is there a better way to do this, without forking? Seems odd to execute a java call, in java, just to get the encrypted string. I'd like to call weblogic.security.Encrypt inline, but have been unable to do so.
2) Why would the Not enough space error creep up? Researching it, it seems like it is a swap problem, but that does not seem to be the case on our system. A top shows:
Memory: 8192M phys mem, 2769M free mem, 5004M swap, 5004M free swap
at the time of failure. Disk usage is looking great as well. The JVM heapsize is around 80% free. An lsof on the system shows about 150 open files on the managed server.
Any ideas on how to troubleshoot this would be appreciated.
ThanksI use CCleaner from the AppStore to delete the 'useless' stuff. It's free and works great for me
-
Not enough space to compile JSP!
Hi,
I've installed WLS 7.0 on a Sun e250 (256MB RAM, 8GB HD). The server runs ok,
console runs, web services run...
But when I try to access the JSP of a given web app, the JSP can't compile. I
get an IO.Exception: Not enough space.
I've turned down the amount of memory being allocated to the JVM - initially it
was ms32 mx200, now it's 32 and 64 respectively. This doesn't cure the problem
however. Also, I've no other memory-hogging processes running.
Surely my box is able enough to 7.0?
Any ideas?Hi Roy.
I found:
If you receive the following error message received when compiling JSP files on
a UNIX machine:
failed: java.io.IOException: Not enough space
try any or all of the following:
Add more RAM if you have only 256M.
Raise the file descriptor limit, for example:
set rlim_fd_max = 4096
set rlim_fd_cur = 1024
Use the -native flag to use native threads when starting the JVM.
from http://e-docs.bea.com/wls/docs61/notes/issues.html#1029041.
Could you give a try?
Thanks.
Ji Zhang
Developer Relations Engineer
BEA WebLogic Support
"Roy Martin" <[email protected]> wrote:
>
Hi,
I've installed WLS 7.0 on a Sun e250 (256MB RAM, 8GB HD). The server
runs ok,
console runs, web services run...
But when I try to access the JSP of a given web app, the JSP can't compile.
I
get an IO.Exception: Not enough space.
I've turned down the amount of memory being allocated to the JVM - initially
it
was ms32 mx200, now it's 32 and 64 respectively. This doesn't cure the
problem
however. Also, I've no other memory-hogging processes running.
Surely my box is able enough to 7.0?
Any ideas? -
IOException: Not enough storage is available... ?
Hello,
I write a tool who can convertes xml data into another kind of data.
Data will read in by "readLine()" from "BufferedReader" about console.
When I start my programm in command promt in windows this routine works normally very fine.
I copy some data, paste it into and my program works. But when I paste to many or to long lines into,
the program abortes with following error :
C:\>java Converter
Insert Data::
<?xml version="1.0" encoding="UTF-8"?>
java.io.IOException: Not enough storage is available to process this command
java.io.IOException: Not enough storage is available to process this command
at java.io.FileInputStream.available(Native Method)
at java.io.BufferedInputStream.read(BufferedInputStream.java:282)
at java.io.FilterInputStream.read(FilterInputStream.java:93)
at java.io.InputStreamReader.fill(InputStreamReader.java:173)
at java.io.InputStreamReader.read(InputStreamReader.java:249)
at java.io.BufferedReader.fill(BufferedReader.java:139)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
-funnily enough the first line was read
What is the problem? Is this a problem of Bufferedreader or a problem of my DOS-promt?
All my research in web wasn't successful. Please try to help me.
thxHi,
I have the same problem on WinNT with JDK 1.3.1_06 and JDK 1.4.1_01 .
To solve the problem I used the following code to read the console:
private static boolean wasCR = false;
private static boolean wasEoF = false;
private static int readLine(int maxLen, StringBuffer buffer) throws IOException {
if (wasEoF)
return -1;
int len = 0;
while (len < maxLen) {
int ch = System.in.read();
if (ch < 0) {
wasEoF = true;
if (len == 0)
return -1;
break;
} else if (ch == '\r') {
wasCR = true;
break;
} else if (ch == '\n') {
if (wasCR) {
wasCR = false;
continue;
break;
wasCR = false;
buffer.append((char) ch);
len++;
return len;
private static String readLine(int maxLen) throws IOException {
if (wasEoF)
return null;
StringBuffer buffer = new StringBuffer(maxLen);
return (readLine(maxLen, buffer) >= 0) ? buffer.substring(0) : null; -
DataOutput produces IOException because of "not enough space left"
This is the exception:
java.io.IOException: Can't write 32000 bytes, not enough space left.
java.lang.NullPointerException
at org.netbeans.modules.kjava.antext.StackTraceTranslator.getMethodCall(StackTraceTranslator.java:159)
at org.netbeans.modules.kjava.antext.StackTraceTranslator.checkMethod(StackTraceTranslator.java:129)
at org.netbeans.modules.kjava.antext.StackTraceTranslator.findMethod(StackTraceTranslator.java:121)
at org.netbeans.modules.kjava.antext.StackTraceTranslator.translate(StackTraceTranslator.java:68)
at org.netbeans.modules.kjava.antext.RunTask$StackTraceTranslatorHandler$1.flush(RunTask.java:603)
at org.netbeans.modules.kjava.antext.RunTask$StackTraceTranslatorHandler$1.run(RunTask.java:636)
at java.lang.Thread.run(Thread.java:619)
Occurs when trying to write data ( out.write(bytes) ) to a DataOutput. Is there any way to know the available space in the data output? Or any other method to avoid this exception?
Thanks for your attention! :)I'm not sure because the code that I'm testing is not written by me and it's very large. I suppose that must write into cache. Anyway, I've erased 3 lines and now the problem is moved to another line. In that line, the solution seems to be easier.
Thanks!
PS: this is the code (where the DataOutputStream doesn't make any useful thing :s):
private void keep(MapTile mt) {
// Move it to the top of the pile
cache.putLast(mt.xyz, mt);
if (mt.bytes != null && mt.rmsID == -1 && rms != null) {
// Freshly downloaded. Put it into the RMS cache.
byte[] buffer = (byte[])app.sharedBuffers.claimResourceIgnoreInterrupt();
try {
if (rms.getSizeAvailable()>buffer.length) {
FixedByteArrayOutputStream baos = new FixedByteArrayOutputStream(buffer);
// DataOutputStream dos = new DataOutputStream(baos);
// mt.writeTo(dos, MapTile.WITH_BYTES);
// dos.close();
baos.close();
mt.rmsID = rms.addRecord(buffer, 0, baos.count());
mt.rmsBytesUsed = mt.bytes.length;
catch (Exception e) {
app.exception("An error occured while caching a map tile to RMS.", e);
finally {
app.sharedBuffers.releaseResource(buffer);
} -
Getting Error "Not Enough Space" while deploying Java Webservice in AS
Hello,
I am trying to deploy a java web-service using OAS enterprise manager but getting an error saying "Not Enough Space". Below are the logs.
[Jul 21, 2010 12:06:17 PM] Application Deployer for MathAppl STARTS.
[Jul 21, 2010 12:06:35 PM] Copy the archive to /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear
[Jul 21, 2010 12:06:35 PM] Initialize /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear begins...
[Jul 21, 2010 12:06:35 PM] Unpacking MathAppl.ear
[Jul 21, 2010 12:06:35 PM] Done unpacking MathAppl.ear
[Jul 21, 2010 12:06:35 PM] Unpacking WebServices.war
[Jul 21, 2010 12:06:35 PM] Done unpacking WebServices.war
[Jul 21, 2010 12:06:35 PM] Initialize /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear ends...
[Jul 21, 2010 12:06:35 PM] Starting application : MathAppl
[Jul 21, 2010 12:06:35 PM] Initializing ClassLoader(s)
[Jul 21, 2010 12:06:35 PM] Initializing EJB container
[Jul 21, 2010 12:06:35 PM] Loading connector(s)
[Jul 21, 2010 12:06:35 PM] Starting up resource adapters
[Jul 21, 2010 12:06:35 PM] Initializing EJB sessions
[Jul 21, 2010 12:06:35 PM] Committing ClassLoader(s)
[Jul 21, 2010 12:06:35 PM] Initialize WebServices begins...
[Jul 21, 2010 12:06:35 PM] Initialize WebServices ends...
[Jul 21, 2010 12:06:35 PM] Started application : MathAppl
[Jul 21, 2010 12:06:35 PM] Binding web application(s) to site default-web-site begins...
[Jul 21, 2010 12:06:35 PM] Binding WebServices web-module for application MathAppl to site default-web-site under context root MathApple
[Jul 21, 2010 12:06:37 PM] Operation failed with error: Error compiling :/u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl/WebServices: Not enough space
When i checked the application server disk utilization, there is enough space. Below is the output.
bash-3.00$ df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 15G 3.5G 11G 25% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 76M 960K 75M 2% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
15G 3.5G 11G 25% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 286M 212M 75M 74% /tmp
swap 142M 67M 75M 48% /var/run
/dev/dsk/c1t0d0s3 48G 17G 30G 36% /u01
/dev/dsk/c1t1d0s0 67G 6.0G 61G 9% /u02
Please help.
-MjDear,
As suggested, i have checked for the JVM configuration for low heap size but i found the value of MaxPermSize to be 256M. So, i guess this is not causing the "Not Enough Space" issue.
Please let me know where else do I need to check as i completely clueless about this problem.
Thanks for your inputs.
-Mj -
MESSAGE:::Not enough space
We run OBI, DAC, INFOMATICA PC on SunSolairs and
we are having hundreds of "Not enough space" messages with "EXCEPTION CLASS::: java.io.IOException
" message . But it's not disk or SWAP or memory as far as it looks like. What might be the reason ?
1399 SEVERE Tue Aug 12 10:31:32 MEST 2008 Request to start workflow : 'CSW_SDE_PSFT_90_Adaptor:CSW_SDE_PSFT_PS_ACTION_TBL' has co
mpleted with error code 0
1400 SEVERE Tue Aug 12 10:31:38 MEST 2008 Request to start workflow : 'SDE_PSFT_90_Adaptor:SDE_PSFT_UserDimension_JobInformation'
has completed with error code 0
1401 SEVERE Tue Aug 12 10:31:51 MEST 2008 MESSAGE:::Not enough space
EXCEPTION CLASS::: java.io.IOException
java.lang.UNIXProcess.forkAndExec(Native Method)
java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
java.lang.ProcessImpl.start(ProcessImpl.java:65)
java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
java.lang.Runtime.exec(Runtime.java:591)
java.lang.Runtime.exec(Runtime.java:429)
java.lang.Runtime.exec(Runtime.java:326)
com.siebel.etl.functional.ExternalProcessExecutor.fire(ExternalProcessExecutor.java:142)
com.siebel.etl.functional.ExternalProcessExecutor.execute(ExternalProcessExecutor.java:111)
com.siebel.etl.engine.core.AttachToInformaticaProcess.getStatusFromPmCmd(AttachToInformaticaProcess.java:825)
com.siebel.etl.engine.core.AttachToInformaticaProcess.attachToWorkFlowWithPmCmd(AttachToInformaticaProcess.java:927)
com.siebel.etl.engine.core.AttachToInformaticaProcess.executeWorkFlow(AttachToInformaticaProcess.java:445)
com.siebel.etl.engine.core.Session$Task.executeThisSession(Session.java:1062)
com.siebel.etl.engine.core.Session$Task.execute(Session.java:459)
com.siebel.etl.engine.core.Session.executeTasks(Session.java:2458)
com.siebel.etl.engine.core.Session.run(Session.java:2975)
java.lang.Thread.run(Thread.java:595)Problem was fixed after alocating some more memory on UNIX box
-
Compilation process error : Not enough space
Hi Experts,
I have transported two mapping routines from development system to the Testing system, but when I am trying to activate the mapping routines only one got activated and the other shows the below error
Compilation process error : Not enough space
STACKTRACE:
com.sap.aii.utilxi.swing.framework.FrameworkException: Compilation process error : Not enough space
at com.sap.aii.ib.gui.editor.XiDocument.checkConsistency(XiDocument.java:780)
at com.sap.aii.ib.gui.editor.XiDocument.checkObject(XiDocument.java:799)
at com.sap.aii.ib.gui.editor.CheckObjectCommand.execute(CheckObjectCommand.java:38)
at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.sap.plaf.frog.FrogMenuItemUI$MouseInputHandler.mouseReleased(FrogMenuItemUI.java:833)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Please suggest to resolve the issue.
Thank you,
MKGoto XI server machine and check the drive spaces. U may also use DB2 transaction. Ur BASIS may help u with this
Regards,
Prateek -
My Lacie External backed up on Time Machine after the first back up but now says there's not enough room. I thought TM deleted old back ups to save new versions. What am I doing wrong. This happens to me constantly. Every single external hard drive I've purchased for the MacBook Pro (5 of them) has not worked either initially or at the second back up. It either isn't formatted properly so I have to go to Genius bar to help me set up for the first back up, or after the first back up, it says there's not enough space and I have to go back to Genius Bar. Is there a way I can fix this on my own?
I just purchased 2 external hardrives. a LaCie Minimus and a G Drive. Each 1 TB. The guy at Apple told me that would provide 2 good TM backups for me. My internal HD has 750 GB capacity, of which I'm using 700 GB. Perhaps the ratio is not great enough. I do wish they would have told me this before I purchased the two Bummmmer! I even had them format and get the first back-ups going because of issues I've had in the past. I also just bought a 750 GB for photos.
So, I won't be able to buy another bigger external since I've just purchased 3. Ugh. Well, I'll just exclude some files and divide things up. Eventually, I just want my 20,000 iphotos on one of the 1TB externals, and a TM back-up on another so that iphoto will function once more. It really hates how many photos I have and is brutally punishing me for it.I seriously need to do some housecleaning!
Thanks for the advice. Just moved from US to Australia last week and was hoping to upload a few photos and the domino effect has lead me to this. Just went to Genius Bar in Perth today and they told me how to reformat drive to transfer iphoto library over, but I got stuck at trying to back-up my TM. -
I changed my LCD last day and now i noticed all my pictures on my phone are gone. I tried to restore the back that I got yesterday but it wont let me because its telling me there is not enough space on my phone!!! That's wierd because I didn't download any app or anything else since my last backup and on the other hand about 3000 pictures are gone, how come there is not enough space left! I also check my usage on my phone and it shows that i have about 7.0 GB pictures!!! BUT my photos is empty! I want my picture back on my phone any solution anyone?
Thanks for your reply!
I just called the guy who changed my LCD and asked him what happend, he said there were no pictures on your phone when you gave it to me! i know he is lying tho!
My apple warranty is over and I have to pay them to get some help over the phone!
Maybe you are looking for
-
Help please
-
Function module to get the valid Subcontract BOM and components for Pur doc
Hello Gurus, I need help to create a z report of subcontracting bom and their components exploded in Schedule agreement. Seems like there is no standard report which can give the boms from purcashing doc. Can someone please tell me the name of the f
-
I am downloading the Creative Cloud desktop app on my Mac, and it starts to download but just stalls in the process and doesn't get any closer to finishing. Anyone have any suggestions. I've restarted my computer multiple times and restarted the down
-
VAT Rate is copied from Base Document, not taken from Invoice Posting Date
Hi, With the recent VAT Rate change in the UK, the following issue has come to light. If I have a sales order or delivery created in November 2008 the VAT rate is 17.5%, which is correct. If I then invoice that document in December 2008, the VAT rate
-
Adobe Dreamweaver cc won't open
I am having a hard time with my Adobe Dreamweaver CC program opening. When I open it up it crashes with a message saying it cannot find the menus.xml file. I have uninstalled and reinstalled the program and get the same results. Help!!