hi all,
i am writing a module that needs to refresh itself, inorder to populate the HTML 
elements with table data. I donot want the form to be refreshed and therefore am using 
Hidden Servlet, the Servlet forms a part of my Frame but has not space allocated on 
the Browser window, such that it operates invisibly and gets the data from the backend 
and populates the visible form elements through a JavaScript statement (being fired 
explicity, once it has data from the table). Although it works fine and gives me the 
desired results, it poses a unique problem, i.e. if i don't use the Browser window for 
some time and activate it after some time, the data doesn't gets populated (although 
the Hidden Servlet does gets invoked !).

Although as i said above i haven't allocated any space to the Hidden Servlet on my 
Brower window, i did allocate 5% of space once and got the following text from 'View 
Source' Option:

<html><head><title>500 Internal Server Error</title></head>
<h1>500 Internal Server Error</h1><body>
<P>The servlet named CciCashAllocateHidden at the requested URL <blockquote> <a 
href="http://localhost:8080/servlet/CciCashAllocateHidden";>http://localhost:8080/servlet/CciCashAllocateHidden</a></blockquote>
 reported this exception: java.lang.ClassCastException.  Please report this to the 
administrator of the web server.<p><em><blockquote>
java.lang.ClassCastException
        at CciCashAllocateHidden.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at com.sun.server.ServletState.callService(Compiled Code)
        at com.sun.server.ServletManager.callServletService(Compiled Code)
        at com.sun.server.http.servlet.InvokerServlet.service(InvokerServlet.java:137)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at com.sun.server.ServletState.callService(Compiled Code)
        at com.sun.server.ServletManager.callServletService(Compiled Code)
        at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
        at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
        at com.sun.server.http.stages.Runner.process(Runner.java:79)
        at com.sun.server.ProcessingSupport.process(Compiled Code)
        at com.sun.server.Service.process(Service.java:204)
        at 
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374)
        at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
        at com.sun.server.HandlerThread.run(Compiled Code)
</blockquote></em>
<p>
</body></html>

Do i face the above problem, bcoz the object is destroyed by the Garbage Collector ?

Thanks in advance
Purnima Das

 
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to