hi jochen,

currently there is no qualifier support for @ViewRef and @ViewControllerRef.
(that's independent of the scope.)

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2014-05-27 12:48 GMT+02:00 Jochen Traunecker <
[email protected]>:

> *
>
> Hi,
>
>
> I'm playing around with DeltaSpike and it's various scope support. I ran
> into an exception when trying to utilize a ConversationGroup together with
> ViewRef:
>
>
> @Named
>
> @GroupedConversationScoped
>
> @ConversationGroup(SandboxGroup.class)
>
> @ViewRef(config=Pages.Playground.Sandbox.class)
>
> public class SandboxPage implements Serializable{
>
>    ...
>
>    @PreRenderView
>
>    public void beforeRendering(){
>
>        log.debug("preRender View");
>
>
>    }
>
>   }
>
>
> Everythings works fine with @WindowScoped or @GroupConversationScoped
> without @ConversationGroup or by omitting @ViewRef.at all.
>
>
> Is this a bug or did I just get something wrong ?
>
>
> I'm running the example in Jetty 8.1.14.x
> <jsf-myfaces.version>2.2.3</jsf-myfaces.version>
> <openwebbeans.version>1.2.0</openwebbeans.version>
> <deltaspike.version>0.8-SNAPSHOT</deltaspike.version>
> <primefaces-version>5.0</primefaces-version>
>
>
> Cheers,
>
> Jochen
>
>
> phaseId=RENDER_RESPONSE(6)
>
>
> java.lang.IllegalStateException: Could not find beans for Type=class
> pages.playground.SandboxPage and qualifiers:[]
> at org.apache.deltaspike.core.api.provider.BeanProvider.
> getContextualReference(BeanProvider.java:150)
> at org.apache.deltaspike.core.api.provider.BeanProvider.
> getContextualReference(BeanProvider.java:119)
> at org.apache.deltaspike.core.api.provider.BeanProvider.
> getContextualReference(BeanProvider.java:100)
> at org.apache.deltaspike.core.api.config.view.metadata.CallbackDescriptor.
> getTargetObject(CallbackDescriptor.java:83)
> at org.apache.deltaspike.core.api.config.view.metadata.
> ExecutableCallbackDescriptor.execute(ExecutableCallbackDescriptor.java:56)
> at org.apache.deltaspike.core.api.config.view.metadata.
> SimpleCallbackDescriptor.execute(SimpleCallbackDescriptor.java:44)
> at org.apache.deltaspike.jsf.impl.util.ViewControllerUtils.
> executeViewControllerCallback(ViewControllerUtils.java:42)
> at org.apache.deltaspike.jsf.impl.listener.phase.DeltaSpikePhaseListener.
> processPreRenderView(DeltaSpikePhaseListener.java:236)
> at org.apache.deltaspike.jsf.impl.listener.phase.DeltaSpikePhaseListener.
> onBeforeRenderResponse(DeltaSpikePhaseListener.java:89)
> at org.apache.deltaspike.jsf.impl.listener.phase.DeltaSpikePhaseListener.
> beforePhase(DeltaSpikePhaseListener.java:79)
> at org.apache.myfaces.lifecycle.PhaseListenerManager.
> informPhaseListenersBefore(PhaseListenerManager.java:77)
> at org.apache.myfaces.lifecycle.LifecycleImpl.render(
> LifecycleImpl.java:260)
> at org.apache.deltaspike.jsf.impl.listener.request.
> DeltaSpikeLifecycleWrapper.render(DeltaSpikeLifecycleWrapper.java:111)
> at javax.faces.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:31)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> doFilter(ServletHandler.java:1496)
> at org.apache.deltaspike.servlet.impl.event.EventBridgeFilter.
> doFilter(EventBridgeFilter.java:59)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> doFilter(ServletHandler.java:1484)
> at org.apache.deltaspike.servlet.impl.produce.RequestResponseHolderFilter.
> doFilter(RequestResponseHolderFilter.java:63)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> doFilter(ServletHandler.java:1484)
> at dummy.DummyWebfilter.doFilter(DummyWebfilter.java:24)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> doFilter(ServletHandler.java:1476)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.access.ExceptionTranslationFilter.
> doFilter(ExceptionTranslationFilter.java:113)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.session.SessionManagementFilter.
> doFilter(SessionManagementFilter.java:103)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.
> AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.
> java:113)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.servletapi.
> SecurityContextHolderAwareRequestFilter.doFilter(
> SecurityContextHolderAwareRequestFilter.java:154)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilter(RequestCacheAwareFilter.java:45)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.ui.
> DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilt
> er.java:155)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.
> AbstractAuthenticationProcessingFilter.doFilter(
> AbstractAuthenticationProcessingFilter.java:199)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.authentication.logout.
> LogoutFilter.doFilter(LogoutFilter.java:110)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.header.HeaderWriterFilter.
> doFilterInternal(HeaderWriterFilter.java:57)
> at org.springframework.web.filter.OncePerRequestFilter.
> doFilter(OncePerRequestFilter.java:108)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.context.SecurityContextPersistenceFilt
> er.doFilter(SecurityContextPersistenceFilter.java:87)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.context.request.async.
> WebAsyncManagerIntegrationFilter.doFilterInternal(
> WebAsyncManagerIntegrationFilter.java:50)
> at org.springframework.web.filter.OncePerRequestFilter.
> doFilter(OncePerRequestFilter.java:108)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> at org.springframework.security.web.FilterChainProxy.doFilterInternal(
> FilterChainProxy.java:192)
> at org.springframework.security.web.FilterChainProxy.doFilter(
> FilterChainProxy.java:160)
> at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(
> DelegatingFilterProxy.java:344)
> at org.springframework.web.filter.DelegatingFilterProxy.doFilter(
> DelegatingFilterProxy.java:261)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.
> doFilter(ServletHandler.java:1467)
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(
> ServletHandler.java:499)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(
> ScopedHandler.java:137)
> at org.eclipse.jetty.security.SecurityHandler.handle(
> SecurityHandler.java:557)
> at org.eclipse.jetty.server.session.SessionHandler.
> doHandle(SessionHandler.java:231)
> at org.eclipse.jetty.server.handler.ContextHandler.
> doHandle(ContextHandler.java:1086)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(
> ServletHandler.java:428)
> at org.eclipse.jetty.server.session.SessionHandler.
> doScope(SessionHandler.java:193)
> at org.eclipse.jetty.server.handler.ContextHandler.
> doScope(ContextHandler.java:1020)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(
> ScopedHandler.java:135)
> at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
> ContextHandlerCollection.java:255)
> at org.eclipse.jetty.server.handler.HandlerCollection.
> handle(HandlerCollection.java:154)
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
> HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:370)
> at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(
> AbstractHttpConnection.java:494)
> at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(
> AbstractHttpConnection.java:971)
> at org.eclipse.jetty.server.AbstractHttpConnection$
> RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> at org.eclipse.jetty.server.AsyncHttpConnection.handle(
> AsyncHttpConnection.java:82)
> at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(
> SelectChannelEndPoint.java:667)
> at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(
> SelectChannelEndPoint.java:52)
> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
> QueuedThreadPool.java:608)
> at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(
> QueuedThreadPool.java:543)
> at java.lang.Thread.run(Thread.java:722)
>
>
> *
>

Reply via email to