0 Replies Latest reply on Mar 6, 2008 10:41 AM by Krunoslav Samardzic

    Conversation not stored

    Krunoslav Samardzic Newbie

      I am using seam 2.0.0, richFaces 3.1.4 GA in JBOSS 4.2.2 AS
      I am working with long running conversations.
      The problem is that conversation does not get stored:



      2008-03-06 09:19:11,925 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: RESTORE_VIEW 1
      2008-03-06 09:19:11,925 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] beginning transaction prior to phase: RESTORE_VIEW 1
      2008-03-06 09:19:11,925 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: RESTORE_VIEW 1
      
      --->2008-03-06 09:19:11,925 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: 9
      
      2008-03-06 09:19:11,925 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: APPLY_REQUEST_VALUES 2
      2008-03-06 09:19:11,972 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: APPLY_REQUEST_VALUES 2
      2008-03-06 09:19:11,972 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: PROCESS_VALIDATIONS 3
      2008-03-06 09:19:12,019 DEBUG [orka.core.convert.BigDecimalBroj] RADIM CONVERT BIGDECIMAL U OBJEKT
      2008-03-06 09:19:12,019 DEBUG [orka.core.convert.BigDecimalBroj] RADIM CONVERT BIGDECIMAL U OBJEKT
      2008-03-06 09:19:12,019 DEBUG [orka.core.convert.BigDecimalBroj] RADIM CONVERT BIGDECIMAL U OBJEKT
      2008-03-06 09:19:12,019 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: PROCESS_VALIDATIONS 3
      2008-03-06 09:19:12,019 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: UPDATE_MODEL_VALUES 4
      2008-03-06 09:19:12,066 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: UPDATE_MODEL_VALUES 4
      2008-03-06 09:19:12,066 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: INVOKE_APPLICATION 5
      2008-03-06 09:19:12,066 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: INVOKE_APPLICATION 5
      2008-03-06 09:19:12,066 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] committing transaction after phase: INVOKE_APPLICATION 5
      2008-03-06 09:19:12,066 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: RENDER_RESPONSE 6
      2008-03-06 09:19:12,066 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE 6
      2008-03-06 09:19:20,738 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: RESTORE_VIEW 1
      2008-03-06 09:19:20,754 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] beginning transaction prior to phase: RESTORE_VIEW 1
      2008-03-06 09:19:20,754 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: RESTORE_VIEW 1
      
      ---->2008-03-06 09:19:21,925 DEBUG [org.jboss.seam.core.Manager] No stored conversation, or concurrent call to the stored conversation
      
      2008-03-06 09:19:22,066 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: APPLY_REQUEST_VALUES 2
      2008-03-06 09:19:22,144 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: APPLY_REQUEST_VALUES 2
      2008-03-06 09:19:22,144 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: PROCESS_VALIDATIONS 3
      2008-03-06 09:19:22,222 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: PROCESS_VALIDATIONS 3
      2008-03-06 09:19:22,222 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: UPDATE_MODEL_VALUES 4
      2008-03-06 09:19:22,285 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: UPDATE_MODEL_VALUES 4
      2008-03-06 09:19:22,300 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] committing transaction after phase: UPDATE_MODEL_VALUES 4
      2008-03-06 09:19:22,316 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 11
      2008-03-06 09:19:22,441 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: RESTORE_VIEW 1
      2008-03-06 09:19:22,472 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] beginning transaction prior to phase: RESTORE_VIEW 1
      2008-03-06 09:19:22,472 TRACE [org.jboss.seam.jsf.SeamPhaseListener] after phase: RESTORE_VIEW 1
      2008-03-06 09:19:23,504 DEBUG [org.jboss.seam.core.Manager] No stored conversation, or concurrent call to the stored conversation
      2008-03-06 09:19:23,519 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] committing transaction after phase: RESTORE_VIEW 1
      2008-03-06 09:19:23,535 TRACE [org.jboss.seam.jsf.SeamPhaseListener] before phase: RENDER_RESPONSE 6
      2008-03-06 09:19:23,550 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE 6
      2008-03-06 09:19:43,378 DEBUG [orka.core.postavke.PostavkeAplikacija] OPER orka.core.maticni.operater.Operater@2049509
      2008-03-06 09:19:43,410 DEBUG [orka.kadrovska.maticni.osobe.TraziOsobaBean] KREIRAM TRAZI TraziOsobaBean
      2008-03-06 09:19:43,410 ERROR [orka.kadrovska.maticni.osobe.TraziOsobaBean] NEMA OPERTERA U KONVERZACIJI
      2008-03-06 09:19:43,441 DEBUG [orka.core.convert.BigDecimalBroj] RADIM CONVERT BIGDECIMAL U STRING
      2008-03-06 09:19:43,457 WARN  [javax.enterprise.resource.webcontainer.jsf.lifecycle] executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@dd28cb) threw exception
      javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /kadrovska/maticni/zaposlenik/AkcijaZaposlenik.jsp]
      


      The biggest problem is that I can not reproduce bug, it happends something like once in 5 days. Is it possible that there is some bug that happends in phase 6 so that transaction that starts in phase 6 does not get commited
      and conversation does not get stored?
      My web.xml is :


      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
           version="2.5">
      
           <!-- relativna putanja do direktorija od user.home direktorija -->
           <context-param>
                <param-name>slike</param-name>
                <param-value>jbossPodaci/slikeKorisnici</param-value>
           </context-param>
      
           <context-param>
                <param-name>cronPutanja</param-name>
                <param-value>jbossPodaci/cron</param-value>
           </context-param>
      
           <context-param>
                <param-name>org.richfaces.LoadScriptStrategy</param-name>
                <param-value>DEFAULT</param-value>
           </context-param>
      
           <context-param>
                <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
                <param-value>false</param-value>
           </context-param>
      
           <context-param>
                <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
                <param-value>false</param-value>
           </context-param>
      
      
           <context-param>
                <param-name>fontsDir</param-name>
                <param-value>/fontovi/</param-value>
           </context-param>
      
           <context-param>
                <param-name>jasperDir</param-name>
                <param-value>/jasper/</param-value>
           </context-param>
      
      
           <context-param>
                <param-name>razvoj</param-name>
                <param-value>false</param-value>
           </context-param>
      
           <!-- Seam -->
           <filter>
                <filter-name>Seam Filter</filter-name>
                <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
           </filter>
      
      
           <filter-mapping>
                <filter-name>Seam Filter</filter-name>
                <url-pattern>/*</url-pattern>
           </filter-mapping>
      
      
           <listener>
                <listener-class>
                     org.jboss.seam.servlet.SeamListener
                </listener-class>
           </listener>
      
           <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.jsp</param-value>
           </context-param>
           <!-- MyFaces -->
      
      
           <!--          kruno doadao zbog brzine-->
           <context-param>
                <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                <param-value>server</param-value>
           </context-param>
      
           <servlet>
                <servlet-name>Faces Servlet</servlet-name>
                <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
           </servlet>
      
           <!-- Propagate conversations across redirects -->
      
           <servlet-mapping>
                <servlet-name>Faces Servlet</servlet-name>
                <url-pattern>*.orka</url-pattern>
           </servlet-mapping>
      
      
      
      
           <servlet>
                <servlet-name>Slika</servlet-name>
                <servlet-class>orka.core.util.SlikaServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
           </servlet>
           <servlet-mapping>
                <servlet-name>Slika</servlet-name>
                <url-pattern>/slika/*</url-pattern>
           </servlet-mapping>
      
           <!-- kruno dodao zbog brzine-->
           <context-param>
                <param-name>com.sun.faces.responseBufferSize</param-name>
                <param-value>500000</param-value>
           </context-param>
      
      
           <context-param>
      
                <param-name>org.richfaces.SKIN</param-name>
      
                <param-value>#{postavkeAplikacija.izgled}</param-value>
      
           </context-param>
      
           <!--     kruno dodao zbog brzine-->
           <context-param>
                <param-name>com.sun.faces.numberOfViewsInSession</param-name>
                <param-value>50</param-value>
           </context-param>
           <context-param>
                <param-name>com.sun.faces.numberOfLogicalViews</param-name>
                <param-value>50</param-value>
           </context-param>
      
           <!--          dodavde-->
      
      
           <filter>
                <filter-name>MyFacesExtensionsFilter</filter-name>
                <filter-class>
                     org.apache.myfaces.webapp.filter.ExtensionsFilter
                </filter-class>
                <init-param>
                     <param-name>maxFileSize</param-name>
                     <param-value>20m</param-value>
                     <description>
                          Set the size limit for uploaded files. Format: 10 - 10
                          bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
                     </description>
                </init-param>
           </filter>
      
           <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages  -->
           <filter-mapping>
                <filter-name>MyFacesExtensionsFilter</filter-name>
                <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
                <servlet-name>Faces Servlet</servlet-name>
           </filter-mapping>
      
           <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.)  -->
           <filter-mapping>
                <filter-name>MyFacesExtensionsFilter</filter-name>
                <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
           </filter-mapping>
      
           <!-- ResponseHeaderFilter (oznaka za ant build - NE DIRAJ) NAPISATI-->
           <!-- kruno test chache (Tomo: Filter prebacen u orka.slusatelj paket)-->
           <filter>
                <filter-name>ResponseHeaderFilter</filter-name>
                <filter-class>orka.core.view.ResponseHeaderFilter</filter-class>
                <init-param>
                     <param-name>Cache-Control</param-name>
                     <param-value>max-age=43200</param-value>
                </init-param>
                <init-param>
                     <param-name>Pragma</param-name>
                     <param-value />
                </init-param>
           </filter>
      
           <filter-mapping>
                <filter-name>ResponseHeaderFilter</filter-name>
                <url-pattern>/slike/*</url-pattern>
           </filter-mapping>
      
           <filter-mapping>
                <filter-name>ResponseHeaderFilter</filter-name>
                <url-pattern>/css/*</url-pattern>
           </filter-mapping>
           <filter-mapping>
                <filter-name>ResponseHeaderFilter</filter-name>
                <url-pattern>/javascript/*</url-pattern>
           </filter-mapping>
           <filter-mapping>
                <filter-name>ResponseHeaderFilter</filter-name>
                <url-pattern>/cssPozicije/*</url-pattern>
           </filter-mapping>
           <filter-mapping>
                <filter-name>ResponseHeaderFilter</filter-name>
                <url-pattern>/fontovi/*</url-pattern>
           </filter-mapping>
      
           <servlet>
                <servlet-name>jcaptcha</servlet-name>
                <servlet-class>
                     orka.core.view.ImageCaptchaServlet
                </servlet-class>
                <load-on-startup>1</load-on-startup>
           </servlet>
      
           <servlet-mapping>
                <servlet-name>jcaptcha</servlet-name>
                <url-pattern>/jcaptcha</url-pattern>
           </servlet-mapping>
      
           <!-- kruno test chache -->
      
      
           <session-config>
                <!-- u minutama -->
                <session-timeout>30</session-timeout>
           </session-config>
      </web-app>



      Thanks in advance Kruno.