[seam-issues] [JBoss JIRA] (JBSEAM-5143) Random IllegalArgumentException: Stack must not be null

Robert Becker (JIRA) issues at jboss.org
Fri Nov 28 05:12:39 EST 2014


    [ https://issues.jboss.org/browse/JBSEAM-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023795#comment-13023795 ] 

Robert Becker commented on JBSEAM-5143:
---------------------------------------

I set the seam log level to debug and perhaps found a clue. This is a request on a page which lead to said exception:

Information: 2014-11-28 10:54:46,270 DEBUG - >>> Begin JSF request for /SAMS/ma/index.xhtml
Information: 2014-11-28 10:41:31,149 DEBUG - beginning transaction prior to phase: RESTORE_VIEW 1
Information: 2014-11-28 10:41:31,149 DEBUG - beginning JTA transaction
Information: 2014-11-28 10:41:31,150 DEBUG - committing transaction after phase: RESTORE_VIEW 1
Information: 2014-11-28 10:41:31,150 DEBUG - committing JTA transaction
Information: 2014-11-28 10:41:31,150 DEBUG - beginning transaction prior to phase: RENDER_RESPONSE 6
Information: 2014-11-28 10:41:31,150 DEBUG - beginning JTA transaction
Information: 2014-11-28 10:41:31,150 DEBUG - trying to inject with hierarchical context search: samsDatabase
Information: 2014-11-28 10:41:31,151 DEBUG - created seam managed persistence context from EntityManagerFactory
Information: 2014-11-28 10:41:31,151 DEBUG - trying to inject with hierarchical context search: identity
Information: 2014-11-28 10:41:31,151 DEBUG - trying to inject with hierarchical context search: identity
Information: Hibernate: /* SELECT [...]
Information: 2014-11-28 10:41:31,154 DEBUG - Beginning long-running conversation
Information: 2014-11-28 10:41:31,158 DEBUG - reading exception mappings from /WEB-INF/pages.xml
Information: 2014-11-28 10:41:31,161 ERROR - swallowing exception
javax.el.ELException: java.lang.IllegalArgumentException: Stack must not be null

And this is a request for the same page which was processed without error:

Information: 2014-11-28 10:54:46,271 DEBUG - beginning transaction prior to phase: RESTORE_VIEW 1
Information: 2014-11-28 10:54:46,271 DEBUG - beginning JTA transaction
Information: 2014-11-28 10:54:46,273 DEBUG - isPageContextActive is null
Information: 2014-11-28 10:54:46,273 DEBUG - Page Context will be lazilly created
Information: 2014-11-28 10:54:46,274 DEBUG - No stored conversation
Information: 2014-11-28 10:54:46,274 DEBUG - committing transaction after phase: RESTORE_VIEW 1
Information: 2014-11-28 10:54:46,274 DEBUG - committing JTA transaction
Information: 2014-11-28 10:54:46,275 DEBUG - beginning transaction prior to phase: RENDER_RESPONSE 6
Information: 2014-11-28 10:54:46,275 DEBUG - beginning JTA transaction
Information: 2014-11-28 10:54:46,369 DEBUG - trying to inject with hierarchical context search: samsDatabase
Information: 2014-11-28 10:54:46,371 DEBUG - created seam managed persistence context from EntityManagerFactory
Information: 2014-11-28 10:54:46,371 DEBUG - trying to inject with hierarchical context search: identity
Information: Hibernate: /* SELECT [...]
Information: 2014-11-28 10:54:46,546 DEBUG - trying to inject with hierarchical context search: samsDatabase
Information: 2014-11-28 10:54:46,546 DEBUG - trying to inject with hierarchical context search: identity
... and so on and later: "Beginning long-running conversation" (as expected)

The main difference in the latter request is that "isPageContextActive is null" is printed out by Contexts.isPageContextActive(). The method is commented with "Is PageContext set? If not, it is lazily created in case of RESTORE_VIEW is processing. This is a requirement for starting CONVERSATION - JSF2 change". Could it be that one condition here is not applied correctly?

> Random IllegalArgumentException: Stack must not be null
> -------------------------------------------------------
>
>                 Key: JBSEAM-5143
>                 URL: https://issues.jboss.org/browse/JBSEAM-5143
>             Project: Seam 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.1.Final
>            Reporter: Robert Becker
>
> Since upgrading to Seam 2.3 with Mojarra 2.1.29 on glassfish v3 from Seam 2.2.2, I get random IllegalArgumentExceptions with the message "Stack must not be null". The application worked fine for several years until now.
> The full stack trace is listed here: http://pastebin.com/RjLndvnE
> The exception randomly happens (in about 1 of 500 requests) when navigating between pages, submitting forms, switching (RichFaces) tabs and so on.
> I believe restarting glassfish and/or enabling client side state saving reduces the frequency of the issue whereas it seems to happen more often after multiple successive redeployments during development.  Sadly, due to several dependencies this is already in production but happens far less often there, but it still happens daily according to the server logs.
> I have also posted this on stackoverflow (http://stackoverflow.com/questions/27107870/seam-2-3-illegalargumentexception-stack-must-not-be-null) but have not received any answers yet.
> Besides Seam 2.3, the following libraries are used:
> - Mojarra 2.1.29
> - RF 4.5 (exception also occurred with 4.3.x)
> - Omnifaces 1.10RC1 (will upgrade to 2.0)
> - Primefaces 5.1



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the seam-issues mailing list