We recently introduced some code on our site which appears to be 
causing SocketExceptions that eventually bring JRun to its knees. The 
site is running JRun 3.02a.47579 on Solaris 8, and with the exception 
of this new code, has run like a champ for over a year.

The new code is using the following line in a bean to retrieve 2-3 
small jsp files from the filesystem and plug them into a parent jsp 
file:

pageContext.include(m.getFileName());


I've included the stack trace below. This line is what occurs at 
SlabTag.java:44.


The working theory is that these reads to the file system are 
overloading system resources. I'm wondering if someone can tell me if 
JRun caches the information obtained from pageContext.include() or if 
it is indeed reading from the file system each time this line is run. 
If this is a plausible theory, can someone give me some pointers for 
revising this line to something similar which does caching? If the 
theory is not even in the ballpark, what else might cause this error?


thanks, Kari


Stack Trace from default.event.log:

10/14 15:26:18 error (jcp) Error in getRealPathFromConn 
[java.net.SocketException: Socket closed]
java.net.SocketException: Socket closed
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at 
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
         at 
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
         at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69)
         at 
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127)
         at 
allaire.jrun.jrpp.ProxyEndpoint.getWebserverRealPath(ProxyEndpoint.java:286)
         at 
allaire.jrun.servlet.RequestWrapper.getWebserverRealPath(RequestWrapper.java:105)
         at 
allaire.jrun.servlet.RequestWrapper.getWebserverRealPath(RequestWrapper.java:105)
         at 
allaire.jrun.servlet.RequestWrapper.getWebserverRealPath(RequestWrapper.java:105)
         at 
allaire.jrun.servlet.RequestRealPathResolver.getRealPath(RequestRealPathResolver.java:46)
         at 
allaire.jrun.servlet.WebserverResourceContainer.getWebserverResource(WebserverResourceContainer.java:83)
         at 
allaire.jrun.servlet.WebserverResourceContainer.getResource(WebserverResourceContainer.java:66)
         at 
allaire.jrun.resource.ResourceContainerManager.resolvePath(ResourceContainerManager.java:81)
         at 
allaire.jrun.resource.ResourceContainerManager.getResource(ResourceContainerManager.java:26)
         at 
allaire.jrun.servlet.JRunResourceManager.getResource(JRunResourceManager.java:146)
         at 
allaire.jrun.jsp.JSPServlet.servletNeedsCreating(JSPServlet.java:334)        
at allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:191)
         at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:171)
         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024)
         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936)
         at 
allaire.jrun.servlet.JRunRequestDispatcher.include(JRunRequestDispatcher.java:126)
         at 
allaire.jrun.jsp.JRunPageContext.include(JRunPageContext.java:341)
         at com.tirerack.tags.SlabTag.doStartTag(SlabTag.java:44)





Kari M. Scott
Software Engineer
Berbee
5520 Research Park Drive
Madison, WI  53711-5377
[EMAIL PROTECTED]
608.298.1223    Fax: 608.288.3037

Berbee...putting the E in business

______________________________________________________________________
Get the JRun Web Application Construction Kit - the only book written specifically for 
JRun developers.
http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to