[JBoss Seam] - Exception handling problem
by msduk
I cannot seem to get the exception handling working even with the basic catch all in the pages.xml
| <exception>
| <end-conversation/>
| <redirect view-id="/error.html">
| <message>Catch-all exception</message>
| </redirect>
| </exception>
|
Before I add this I get the usual 500 tomcat page with the thrown exception stack printed. After adding this I get the following
javax.servlet.ServletException: Stack must not be null
| org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:103)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73)
| halvor.filter.TimerFilter.doFilter(TimerFilter.java:46)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| java.lang.IllegalArgumentException: Stack must not be null
| org.jboss.seam.core.ConversationEntry.<init>(ConversationEntry.java:40)
| org.jboss.seam.core.ConversationEntries.createConversationEntry(ConversationEntries.java:50)
| org.jboss.seam.core.Manager.createConversationEntry(Manager.java:685)
| org.jboss.seam.core.Manager.beforeRedirect(Manager.java:834)
| org.jboss.seam.core.Manager.beforeRedirect(Manager.java:852)
| org.jboss.seam.core.Manager.redirect(Manager.java:1067)
| org.jboss.seam.core.Navigator.redirect(Navigator.java:45)
| org.jboss.seam.exceptions.RedirectHandler.handle(RedirectHandler.java:45)
| org.jboss.seam.core.Exceptions.handle(Exceptions.java:79)
| org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:91)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73)
| halvor.filter.TimerFilter.doFilter(TimerFilter.java:46)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
The error page is just a bit of very basic html so nothing fancy to trip it up on there.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073034#4073034
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073034
18Â years, 10Â months
[JBoss Seam] - selectItems & noSelectionLabel
by hager
Hello,
I'm using selectItems and noSelectionLabel,and i have some problems
this my code
| <h:selectOneMenu id="selectOneSituationDeFamille" value="#{collaborateurHome.instance.situationDeFamille}" >
|
| <s:selectItems value="#{collaborateurHome.situationFamilleKeys}"
| var="situationFamilleIterator"
| label="#{collaborateurHome.situationFamilleMap[situationFamilleIterator]}"
| id="selectSituations"
| noSelectionLabel="Select Situation"/>
| </h:selectOneMenu>
|
when i choose the selectItem "Select Situation", and i submit the form, I want to insert in the database the value "no situation Selected"? How can I do?
I'm using seam 1.2.1
collaborateurHome.situationFamilleKeys is a Set that contains the Keys of the MAP.
thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073032#4073032
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073032
18Â years, 10Â months
[JBoss Seam] - Re: flush-mode=
by rmemoria
Hi,
I have a workaround for that until it's not implemented in SEAM.
I created a bean like that:
package com.rmemoria.utils;
|
| import org.jboss.seam.annotations.FlushModeType;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.core.Conversation;
|
| @Name("beginConversationEvent")
| public class BeginConversationEvent {
|
| @In
| private Conversation conversation;
|
| public void setFlushModeManual() {
| conversation.changeFlushMode(FlushModeType.MANUAL);
| }
| }
And in components.xml include the following line:
<event type="org.jboss.seam.beginConversation">
| <action expression="#{beginConversationEvent.setFlushModeManual}" />
| </event>
So every long running conversation you start will be flush-mode=manual.
regards,
Ricardo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073027#4073027
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073027
18Â years, 10Â months