benlilaj / gears

Automatically exported from code.google.com/p/gears
0 stars 1 forks source link

NullPointerExceptin while running GWT application with a lot of public reousrces under Eclipse #999

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
steps to reproduce the problem:
1. Have a project with gears support and many resources in public folder
(977 small icons in our case) under Eclipse on linux (Gentoo) platform (or 
other way limit number of open files).
2. try to run it with Google Eclipse plugin

   Expect to run application under Firefox. Instead have 
NullPointerException at: GearsManifestLinker.java:218
Sometimes it does work (something like 1 in 50 times)

Product Versions:
   Eclipse: 3.4.1
       GWT: 2.0.0
   Google suite plugin etc:1.2.0v200912070510

Additional information:
    Bug appears because at GearsManifestLinker.java:214 linker opens 
files, but never explicetly closes them. Hunted down to 
com.google.gwt.dev.resource.impl.FileResource.java:82, where code silently 
ignores FileNotFoundException. The message for the exceptin says "too many 
open files". Gentoo linux by default allows 1024 files to be opened by 
process, hence the exception. After setting limit to 10240 files it does 
work.

Original issue reported on code.google.com by Yury.Alt...@gmail.com on 28 Jan 2010 at 5:59