Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: interesting problem with session beans


Message #1 by Stephen Sutherland <stephensutherland@y...> on Fri, 1 Jun 2001 09:29:51 -0700 (PDT)
Please disregard this post. Problem is resolved. To my knowledge you 
simply can not refer to the same bean in 2 different windows in this 
fashion. I would have to put the resultset into a vector. And then after 
doing so I would be able to do this

Sincerely
Stephen Sutherland


> hi java guys
> 
> i have a very interesting error using 1 session bean 
> in 2 different frames.
> 
> I'm using a servlet controller to handle each frames
> request.
> 
> if the servlet controller finds that the person
> request the framset.jsp page,
> it will instantiate all the beans required for the
> main page and put it in the session.
> 
> now here is the challenge. i need to use that session
> bean in 2 frames. 
> the session beans simply has a result set in it. so
> when the jsp page loops through
> the result set in one frame . by the time it gets to
> looping through the result set in the 
> second frame an error .
> 
> if i keep refreshing the errors switch back and forth
> between frames.
> interesting right ? 
> 
> I guess i should just put the result set in a vector
> at the bean level 
> and just go back to the top of index and pull it out
> like that since i can't go to the first 
> result of the recordset . 
> 
> is that how you guys fixed this problem (if you
> encountered it) 
>   
> ------
> here are the errors that switch back and forth between
> frames as you refresh it. 
> 
> 500 Internal Server Error
> /juv_frame_left.jsp:
> 
> javax.servlet.ServletException: Exception thrown on
> line '16' from page 'C:\\Program
> Files\\Allaire\\JRun\\servers\\default\\default-app\\juv_frame_left.jsp'.
> java.sql.SQLException: Closed Statement: next
> 	at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
> 	at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
> 	at
> oracle.jdbc.dbaccess.DBError.check_error(DBError.java:775)
> 	at
> oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:170)
> 	at
> CCI.juvenileTreatement.ClientSummaryDataPool.next
(ClientSummaryDataPool.java:37)
> 
> 
> 500 Internal Server Error
> /juv_client_home_page.jsp:
> 
> javax.servlet.ServletException: Exception thrown
> processing JSP page.
> java.sql.SQLException: Closed Statement: next
> 	at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
> 	at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
> 	at
> oracle.jdbc.dbaccess.DBError.check_error(DBError.java:775)
> 	at
> oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:170)
> 	at
> CCI.juvenileTreatement.ClientSummaryDataPool.next
(ClientSummaryDataPool.java:37)
> 	at
> jrun__juv_client_home_page2ejsp19._jspService
(jrun__juv_client_home_page2ejsp19.java:57)
> 	at
> allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40)
> 	at
> allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
> 	at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
> 	at
> allaire.jrun.servlet.JRunNamedDispatcher.forward
(../servlet/JRunNamedDispatcher
> 

  Return to Index