[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-335) NullPointerException if user quikcly decides to click a different link or button before the page renders
by Karen Hundley (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-335?page=comments#action_12351471 ]
Karen Hundley commented on JBSEAM-335:
--------------------------------------
I am currently using the environment listed above and am getting this same error. The user clicks on a link then clicks another before the last one loads. This issue is listed as fixed and closed but I am wondering what I need to update to get this to work. Thanks!
> NullPointerException if user quikcly decides to click a different link or button before the page renders
> --------------------------------------------------------------------------------------------------------
>
> Key: JBSEAM-335
> URL: http://jira.jboss.com/jira/browse/JBSEAM-335
> Project: JBoss Seam
> Issue Type: Bug
> Components: JSF
> Environment: Seam 1.0.1.GA. JBoss 4.0.4, Windows XP, Facelets, MyFaces, Hibernate
> Reporter: Keith Naas
> Assigned To: Gavin King
> Priority: Critical
> Fix For: 1.1.0.BETA1
>
>
> When a user is on one of our screens, they can decide to click a link before the next page loads. Sometimes, when this do this quickly enough, it causes a NullPointerException in Manager.touchConversationStack at line 181. Somehow, the currentConversationEntry is null and it breaks when it executes getCurrentConversationEntry().touch().
> I tried unsuccessfully to duplicate this scenario on the Hotel and DVD Store demos hosted on JBoss.
> Stack Trace
> java.lang.NullPointerException
> at org.jboss.seam.core.Manager.touchConversationStack(Manager.java:181)
> at org.jboss.seam.core.Manager.storeConversation(Manager.java:368)
> at org.jboss.seam.jsf.AbstractSeamPhaseListener.storeAnyConversationContext(AbstractSeamPhaseListener.java:69)
> at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:45)
> at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
> at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> .....
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 2 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-675) Improve Pages API; Add generic Page properties / meta-data
by Ryan Dewell (JIRA)
Improve Pages API; Add generic Page properties / meta-data
------------------------------------------------------------
Key: JBSEAM-675
URL: http://jira.jboss.com/jira/browse/JBSEAM-675
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Reporter: Ryan Dewell
Priority: Minor
Ideas for getting the Page and Pages to be more useful to other parts of the application.
Two ways to get there:
-----
1. Add a getAllPages() or getPages() to Pages.java. Just returns all of the Page definitions / objects that are defined for the current web-app.
2. Generic Page-level properties or attributes:
<page....>
<property name="Type" value="UsedFor"/>
</page>
Then accessing that from a Page object obtained from Pages:
String value = page.getProperty(String name)
-----------
With these two additions, elsewhere in my application I could now 1) iterate over all of the defined Page's using getPages(), 2) figure out which Page has a property of a given value 3) now know the view-id to construct a URL for. Basically using it to look up a view id in an application controlled way.
This is one use case, but maybe there are more that would benefit from these 2 additions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 2 months