I noticed this morning that my JSF application running on GlassFish 4.1 was throwing the following error when my users log out of the web application:
MyAuthenticator is a javax.faces.view.ViewScoped CDI bean with an @PreDestroy annotated method.
As a test, I removed the @PreDestroy annotation and verified that the error disappeared.
I then added the @PreDestroy annotation back to MyAuthenticator along with many debug messages and performed the following tests:
Test 1
Test 2
The debug messages showed the following behaviour in both tests:
I believe that error is the result of Weld calling the @PreDestroy method on my already destroyed MyAuthenticator.
Questions
This issue is resolved in GlassFish 4.1.2.