You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by dv...@newfoundmarket.com on 2008/01/26 09:47:51 UTC

Strange Sql exception accesing Wicket page

Hello:
I have several bookmarkable links that would bring up page with data retrieved from database via JPA/TOPLINK (EntityManager is always created fresh evertime data is retrieved).  The servlet session time is 30 minutes but after several days when accessing some links, I got this
WicketMessage: Error attaching this container for rendering .....
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-02396: exceeded maximum idle time, please connect again
Error Code: 2396
It appears that somewhere the page object is still holding on something causing this. After a few repeated clicking of browser refreshing button, the error would go away and a normal page is displayed without any other intervention. I'd think after a few days, all session related page objects would be no factors and it would work like the first time ever accessing it. Maybe I have problem with my jpa setup but I used similar methods under Seam(no EJB3) without issues so I think there maybe some issues with page caching?
Thanks

Re: Strange Sql exception accesing Wicket page

Posted by Scott Swank <sc...@gmail.com>.
Yes, this is an improperly configured connection pool.  In Tomcat you
would look at these settings such as the following:

timeBetweenEvictionRunsMillis
numTestsPerEvictionRun
minEvictableIdleTimeMillis

- Scott


On Jan 27, 2008 7:08 AM, Johan Compagner <jc...@gmail.com> wrote:
> that looks like a database pool, where connections are in and after a while
> a specific connection isn't used for a long time and oracle terminates or
> makes in invalid.
>
> configure your database pool that way that you test the connection before it
> gives you the connection
>
> johan
>
>
>
>
> On Jan 26, 2008 9:47 AM, <dv...@newfoundmarket.com> wrote:
>
> > Hello:
> > I have several bookmarkable links that would bring up page with data
> > retrieved from database via JPA/TOPLINK (EntityManager is always created
> > fresh evertime data is retrieved).  The servlet session time is 30 minutes
> > but after several days when accessing some links, I got this
> > WicketMessage: Error attaching this container for rendering .....
> > Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build
> > 060830)): oracle.toplink.essentials.exceptions.DatabaseException
> > Internal Exception: java.sql.SQLException: ORA-02396: exceeded maximum
> > idle time, please connect again
> > Error Code: 2396
> > It appears that somewhere the page object is still holding on something
> > causing this. After a few repeated clicking of browser refreshing button,
> > the error would go away and a normal page is displayed without any other
> > intervention. I'd think after a few days, all session related page
> > objects would be no factors and it would work like the first time ever
> > accessing it. Maybe I have problem with my jpa setup but I used similar
> > methods under Seam(no EJB3) without issues so I think there maybe some
> > issues with page caching?
> > Thanks
>



-- 
Scott Swank
reformed mathematician

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Strange Sql exception accesing Wicket page

Posted by Johan Compagner <jc...@gmail.com>.
that looks like a database pool, where connections are in and after a while
a specific connection isn't used for a long time and oracle terminates or
makes in invalid.

configure your database pool that way that you test the connection before it
gives you the connection

johan



On Jan 26, 2008 9:47 AM, <dv...@newfoundmarket.com> wrote:

> Hello:
> I have several bookmarkable links that would bring up page with data
> retrieved from database via JPA/TOPLINK (EntityManager is always created
> fresh evertime data is retrieved).  The servlet session time is 30 minutes
> but after several days when accessing some links, I got this
> WicketMessage: Error attaching this container for rendering .....
> Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build
> 060830)): oracle.toplink.essentials.exceptions.DatabaseException
> Internal Exception: java.sql.SQLException: ORA-02396: exceeded maximum
> idle time, please connect again
> Error Code: 2396
> It appears that somewhere the page object is still holding on something
> causing this. After a few repeated clicking of browser refreshing button,
> the error would go away and a normal page is displayed without any other
> intervention. I'd think after a few days, all session related page
> objects would be no factors and it would work like the first time ever
> accessing it. Maybe I have problem with my jpa setup but I used similar
> methods under Seam(no EJB3) without issues so I think there maybe some
> issues with page caching?
> Thanks

Re: Strange Sql exception accesing Wicket page

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
How do you store your dao? Is it a transient object on the page?


regards nino

dvd@newfoundmarket.com wrote:
> Hello:
> I have several bookmarkable links that would bring up page with data retrieved from database via JPA/TOPLINK (EntityManager is always created fresh evertime data is retrieved).  The servlet session time is 30 minutes but after several days when accessing some links, I got this
> WicketMessage: Error attaching this container for rendering .....
> Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
> Internal Exception: java.sql.SQLException: ORA-02396: exceeded maximum idle time, please connect again
> Error Code: 2396
> It appears that somewhere the page object is still holding on something causing this. After a few repeated clicking of browser refreshing button, the error would go away and a normal page is displayed without any other intervention. I'd think after a few days, all session related page objects would be no factors and it would work like the first time ever accessing it. Maybe I have problem with my jpa setup but I used similar methods under Seam(no EJB3) without issues so I think there maybe some issues with page caching?
> Thanks
>   

-- 
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org