• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.FileNotFoundException (File too large)

 
Sanket Akre
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

OS : Linux cspl-edix-03.***.sg.local 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
File system: ext3
The folder /data/fsijne/translation/Output/1828/ having about 1674560 files.

Can somebody help for the error occurred below:


Fri Jul 05 18:02:07 HKT 2013 : Err While Creating XML Output NEW =>java.io.FileNotFoundException: /data/fsijne/translation/Output/1828/EODPRPC1477817.3.201307050207.834.xml.tmp (File too large)
java.io.FileNotFoundException: /data/fsijne/translation/Output/1828/EODPRPC1477817.3.201307050207.834.xml.tmp (File too large)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at java.io.FileOutputStream.<init>(FileOutputStream.java:104)
at jreport.bean.nA.B(Unknown Source)
at jreport.bean.nA.A(Unknown Source)
at jreport.bean.nA.A(Unknown Source)
at jreport.CreateOutLogDO.doPost(Unknown Source)
at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at jreport.key.U.A(Unknown Source)
at jreport.key.U.C(Unknown Source)
at jreport.key.LocalConnection.getInputStream(Unknown Source)
at jreport.translator.d.A(Unknown Source)
at jreport.translator.d.A(Unknown Source)
at jreport.translator.CmdLineTranslator.genOutLog(Unknown Source)
at jreport.translator.CmdLineTranslator.processOutput(Unknown Source)
at jreport.translator.CmdLineTranslator.generateCmdLineTranlation(Unknown Source)
at jreport.translator.CmdLineTranslator.execCmdLineTranslator(Unknown Source)
at jreport.bean.p.A(Unknown Source)
at jreport.AuthServlet.doPost(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at jreport.key.U.A(Unknown Source)
at jreport.key.U.C(Unknown Source)
at jreport.key.LocalConnection.getInputStream(Unknown Source)
at jreport.A.B(Unknown Source)
at jreport.bean.g.A(Unknown Source)
at jreport.bean.g.D(Unknown Source)
at jreport.bean.g.A(Unknown Source)
at jreport.bean.g.A(Unknown Source)
at jreport.ProcessRuntimeServlet.doPost(Unknown Source)
at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at jreport.key.U.A(Unknown Source)
at jreport.key.U.C(Unknown Source)
at jreport.key.LocalConnection.getInputStream(Unknown Source)
at jreport.O.a.A(Unknown Source)
at jreport.O.a.C(Unknown Source)
at jreport.O.a.B(Unknown Source)
at jreport.bean.kC.A(Unknown Source)
at jreport.J.B(Unknown Source)
at jreport.J.run(Unknown Source)
 
Maxim Karvonen
Ranch Hand
Posts: 121
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do that file exists? Do you open that file for writing or for appending? What output do the command "java -version" yields? I suspect you use 32-bit java and get a EFBIG/EOVERFLOW error from open syscall (see "man 2 open" for a description). If so you should try 64-bit jvm.
 
Sanket Akre
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maxim,
Thanks for help.

Scenario is file temporarily created in given folder and later on rename with some other name.
Yes we are using 64 java.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!