[jboss-user] [JBoss Seam] - Bug? Object with session scope randomly injected or not
chris@dvdb.de
do-not-reply at jboss.com
Sat Apr 14 09:45:06 EDT 2007
Hi!
I'm extending frameworks EntityQuery and injecting a session scoped object:
| @In(scope = ScopeType.SESSION)
| Mediabase mediabase;
|
If I paginate through the resultList the object is sometimes null (that means: on one result page it is not null, on second result page it might be null or not etc.). Even reloading the same result page sometimes gives me an exception sometimes not.
Here is the stacktrace:
| rg.jboss.seam.RequiredException: In attribute requires non-null value: searchDatabaseQuery.mediabase
| org.jboss.seam.Component.getValueToInject(Component.java:1919)
| org.jboss.seam.Component.injectAttributes(Component.java:1368)
| org.jboss.seam.Component.inject(Component.java:1195)
| org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| de.dvdb.database.action.SearchDatabaseQuery_$$_javassist_48.getResultCount(SearchDatabaseQuery_$$_javassist_48.java)
| sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source)
| sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| java.lang.reflect.Method.invoke(Method.java:585)
| javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
| javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| org.apache.el.parser.AstValue.getValue(AstValue.java:97)
| org.apache.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:21)
| org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:384)
| javax.faces.component.UIComponent.encodeAll(UIComponent.java:878)
| javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
| com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
| com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
Is it a bug or is it me :D?
Chris
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037299#4037299
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037299
More information about the jboss-user
mailing list