[JBoss JIRA] (JBSEAM-1388) s:fileUpload doesn't work in Portlet
by Marek Novotny (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-1388?page=com.atlassian.jira.plugi... ]
Marek Novotny closed JBSEAM-1388.
---------------------------------
Resolution: Out of Date
> s:fileUpload doesn't work in Portlet
> ------------------------------------
>
> Key: JBSEAM-1388
> URL: https://issues.jboss.org/browse/JBSEAM-1388
> Project: Seam 2
> Issue Type: Bug
> Components: JSF Integration, Portal
…
[View More]> Affects Versions: 1.2.1.GA
> Reporter: Jarkko Lietolahti
> Assignee: Shane Bryzak
>
> From UIFileUpload.java:
> @Override
> public void decode(FacesContext context)
> {
> super.decode(context);
>
> ServletRequest request = (ServletRequest) context.getExternalContext().getRequest();
> }
> In portal/portlet, one gets ActionRequest (which extends PortalRequest) instead of ServletRequest.
>
>
> Nested Exception is
> java.lang.ClassCastException: com.liferay.portlet.ActionRequestImpl cannot be cast to javax.servlet.ServletRequest
> at org.jboss.seam.ui.UIFileUpload.decode(UIFileUpload.java:35)
> at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:606)
> at javax.faces.component.UIForm.processDecodes(UIForm.java:53)
> at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
> at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:135)
> at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
> at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
> at org.apache.myfaces.portlet.MyFacesGenericPortlet.processAction(MyFacesGenericPortlet.java:220)
> at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:88)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
> at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
> at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:333)
> at com.liferay.portlet.CachePortlet.processAction(CachePortlet.java:157)
> at com.liferay.portal.action.LayoutAction._processPortletRequest(LayoutAction.java:269)
> at com.liferay.portal.action.LayoutAction._processActionRequest(LayoutAction.java:290)
> at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:113)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:156)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:479)
> at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:877)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:94)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:143)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:115)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter(LayoutCacheFilter.java:197)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.doFilter(AutoLoginFilter.java:117)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:169)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at net.hyperic.hq.product.servlet.filter.JMXFilter.doFilter(JMXFilter.java:277)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[View Less]
10 years, 9 months
[JBoss JIRA] (JBSEAM-1000) Propagation of conversations with pageflow in testing environment.
by Marek Novotny (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-1000?page=com.atlassian.jira.plugi... ]
Marek Novotny closed JBSEAM-1000.
---------------------------------
Fix Version/s: (was: The future)
Resolution: Out of Date
> Propagation of conversations with pageflow in testing environment.
> ------------------------------------------------------------------
>
> Key: JBSEAM-1000
> URL: https://issues.jboss.org/browse/JBSEAM-1000
> …
[View More] Project: Seam 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.0.GA
> Environment: windows 2000 jboss-4.0.5.GA
> Reporter: Denis Karpov
> Assignee: Pete Muir
>
> I think there is bug in testing environment (propagation of conversations with pageflow does not work)
> In this test there is 2 requests .
> In the first I start conversation and pageflow
> In the second conversation is lost.
> If I do not start pageflow then conversation propagates.
> Code:
> public class TOrdTest extends SeamTest{
> private static final Log log = LogFactory.getLog( TOrdTest.class );
>
> @Test
> public void Test1() throws Exception
> {
> String id = new FacesRequest(){
> @Override
> protected void invokeApplication() throws Exception {
> Conversation.instance().begin();
> Pageflow.instance().begin("val_buy"); // uses start-state
> setOutcome("browse");
> log.info("##### 1 Conversation_ID "+ Conversation.instance().getId());
> assert isLongRunningConversation();
> }
> @Override
> protected void renderResponse() throws Exception {
> }
> }.run();
> id = new FacesRequest("/exchange/buy_readonly.xhtml",id){
> @Override
> protected void beforeRequest()
> {
> log.info("#####beforeRequest Conversation_ID "+ getConversationId());
> }
> @Override
> protected void applyRequestValues() throws Exception {
> log.info("##### 2 Conversation_ID "+ Conversation.instance().getId()+" "+getConversationId());
> }
> @Override
> protected void invokeApplication() throws Exception {
> //Conversation.instance().beginNested();
> log.info("##### 3 Conversation_ID "+ Conversation.instance().getId()+" "+getConversationId());
> assert isLongRunningConversation();
> }
> }.run();
> }
> }
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[View Less]
10 years, 9 months