Occasional weird Glassfish errors, resolved by a restart?

Posted by Pooria on Stack Overflow See other posts from Stack Overflow or by Pooria
Published on 2010-02-19T18:10:43Z Indexed on 2010/05/12 23:04 UTC
Read the original article Hit count: 264

Filed under:
|
|
|
|

I'm developing a web app using netbeans with GlassFishv3.

Every once in a while when I add a new feature in my app, glassfish starts nagging with stupid errors, after a lot of time wasting and panicking, i restart glassfish and run my application again, then suddenly the errors all go away and my site starts acting correctly. (or in case I have made a real mistake, i receive a reasonable & descriptive error from GF.)

[Edit: the rest of the question was revealed to have been my own mistake.]

But the problems don't end there. Recently, i added the ability to write comments in a (JSF) page, after the user submits their comment, i add it to the database and redirect to the same page, so that hopefully the page refreshes with the new comment, but it wont!

The underlying Mysql database shows that the new comment has been added, but the page just wont show the new comment! I've tried everything (e.g. deleting browser cache, using different browsers) but only after restarting GF is when the page shows the new comment!

Do you have any idea what the problem could be? Could this be a Glassfish bug?

What i am using: JSF2, EJB3.1, JPA, MySql

© Stack Overflow or respective owner

Related posts about glassfishv3

Related posts about ejb3