Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366812

Summary: RUI deploy fails with 'Too many files open' error
Product: z_Archived Reporter: Will Smythe <smythew>
Component: EDTAssignee: Yun Feng Ma <mayunf>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh, mayunf, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Will Smythe CLA 2011-12-15 09:46:11 EST
This issue was reported internally against RBD, but may also occur in EDT. See internal work item 85426.

Below is the message being displayed during deployment of a simple RUI app. Jimmy determined this to be a bug in the deployment code (one place in the code is not releasing file handles until the end of the deployment process).

 Messages
Info: IWN.DEP.8303.i 0/0 The com.ibm.us.hahnt.helloworld.HelloWorld RUIHandler is being deployed to RichUIHelloWebProject.
Error: IWN.DEP.8327.e 0/0 The config/includeDojo.html file which is used by /RichUIHelloProject/EGLSource/com/ibm/us/hahnt/helloworld/HelloWorld.egl could not be found. Generate all required projects.
Info: IWN.DEP.8319.i 0/0 The WebContent/rununit-eze$$rt.js runtime properties file deployed.
Info: IWN.DEP.8322.i 0/0 The WebContent/egl/messages/RuiMessages-en_US.js runtime message bundle deployed.
Info: IWN.DEP.8320.i 0/0 The WebContent/HelloWorld-en_US.html HTML file deployed.
Error: IWN.DEP.8305.e 0/0 Deployment failed for com.ibm.us.hahnt.helloworld.HelloWorld.


Error: The WebContent/dijit/themes/soria/images/progressBarAnim.gif file failed to be moved to the RichUIHelloWebProject project.
Error: Exception: java.io.FileNotFoundException:/home/tjh/Documents/IBM/rationalsdp/NewWorkspace/com.ibm.egl.rui.dojo.runtime.local_1.5/WebContent/dijit/themes/soria/images/progressBarAnim.gif (Too many open files) 
Error: The WebContent/dojo/cldr/nls/kab/gregorian.js file failed to be moved to the RichUIHelloWebProject project.
Error: Exception: java.io.FileNotFoundException:/home/tjh/Documents/IBM/rationalsdp/NewWorkspace/com.ibm.egl.rui.dojo.runtime.local_1.5/WebContent/dojo/cldr/nls/kab/gregorian.js (Too many open files) 
Error: The WebContent/dojo/cldr/nls/kam/gregorian.js file failed to be moved to the RichUIHelloWebProject project.
Error: Exception: java.io.FileNotFoundException:/home/tjh/Documents/IBM/rationalsdp/NewWorkspace/com.ibm.egl.rui.dojo.runtime.local_1.5/WebContent/dojo/cldr/nls/kam/gregorian.js (Too many open files)
Comment 1 Yun Feng Ma CLA 2012-01-05 10:34:58 EST
Created attachment 209081 [details]
Patch

Hi Tony, please review the patch. Thanks a lot.
Comment 2 Tony Chen CLA 2012-01-05 21:17:15 EST
Patch looks good to me. Thanks!
Comment 3 Yun Feng Ma CLA 2012-01-06 03:59:34 EST
The fix is in now. Thanks.
Comment 4 Will Smythe CLA 2012-02-21 10:08:27 EST
I have no way to verify this fix, but I looked at the patch, and it seems it will address the problem.