2 Replies Latest reply on May 27, 2008 2:44 PM by Gregory Nikle

    Seam 2.0.2 WEB Session error

    Gregory Nikle Apprentice

      hi, i moved my app to seam 2.0.2 and still get this error:
      and on my jboss 4.2.1 console over hundred



      startup on: org.jboss.seam.web.session




      2008-05-27 11:37:59,418 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing
      java.lang.ArrayIndexOutOfBoundsException: 8192
           at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:711)
           at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:618)
           at org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:491)
           at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1599)
           at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:934)
           at org.apache.coyote.Response.action(Response.java:183)
           at org.apache.coyote.Response.sendHeaders(Response.java:379)
           at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
           at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:273)
           at org.apache.catalina.connector.Response.finishResponse(Response.java:486)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:257)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:595)


        • 1. Re: Seam 2.0.2 WEB Session error
          Gregory Nikle Apprentice

          You can find screen how this looks like here:
          Screen

          • 2. Re: Seam 2.0.2 WEB Session error
            Gregory Nikle Apprentice

            Any help?


            This is my configuration:



            <?xml version="1.0" encoding="UTF-8"?>
            <components xmlns="http://jboss.com/products/seam/components"
                        xmlns:core="http://jboss.com/products/seam/core"
                        xmlns:international="http://jboss.com/products/seam/international"
                        xmlns:persistence="http://jboss.com/products/seam/persistence"
                        xmlns:drools="http://jboss.com/products/seam/drools"
                        xmlns:web="http://jboss.com/products/seam/web"
                        xmlns:security="http://jboss.com/products/seam/security"
                        xmlns:transaction="http://jboss.com/products/seam/transaction"            
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xmlns:async="http://jboss.com/products/seam/async"
                        xsi:schemaLocation=
                            "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
                             http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd                
                             http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
                             http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.0.xsd
                             http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
                             http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.0.xsd              
                             http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
                             http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
            
                <!-- <core:init jndi-pattern="@jndiPattern@" debug="false"/>-->
                 <core:init jndi-pattern="Universum/#{ejbName}/local" debug="false"/>
                <async:timer-service-dispatcher />
                <transaction:ejb-transaction />
                   
                <component name="org.jboss.seam.core.manager">
                    <property name="conversationTimeout">120000</property>
                </component>
                
                <core:manager concurrent-request-timeout="500" />
                
                <security:identity authenticate-method="#{authenticator.authenticate}" 
                                   security-rules="#{securityRules}"/>
                
                <drools:rule-base name="securityRules">
                   <drools:rule-files>
                       <value>/META-INF/security-rules.drl</value>
                   </drools:rule-files>
                </drools:rule-base>
                
                <web:multipart-filter create-temp-files="true" 
                                      max-request-size="1000000" 
                                      url-pattern="*.seam"/>
                                      
                <web:context-filter url-pattern="/content/*"/>
            
                <persistence:managed-persistence-context name="em" auto-create="true"
                            persistence-unit-jndi-name="java:/sguEntityManagerFactory"/>
                
                <component name="org.jboss.seam.remoting.remoting">
                  <property name="debug">false</property>
                </component>    
                    
                <factory name="remoteAddr" value="#{facesContext.externalContext.request.remoteAddr}" />
                            
                <international:locale-selector cookie-enabled="true"/>
            </components>




            web.xml


            <?xml version="1.0" encoding="UTF-8"?>
            <web-app version="2.5"
                xmlns="http://java.sun.com/xml/ns/javaee"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
                
                <!-- Seam -->
                
                <listener>
                    <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
                </listener>
                
                <servlet>
                    <servlet-name>Seam Resource Servlet</servlet-name>
                    <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
                </servlet>
                
                <servlet-mapping>
                    <servlet-name>Seam Resource Servlet</servlet-name>
                    <url-pattern>/seam/resource/*</url-pattern>
                </servlet-mapping>
                
                <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>
                
                <!-- JSF -->
                
                <context-param>
                    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                    <param-value>.xhtml</param-value>
                </context-param>
                
                <context-param>
                    <param-name>facelets.DEVELOPMENT</param-name>
                    <param-value>true</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>
                
                <servlet-mapping>
                    <servlet-name>Faces Servlet</servlet-name>
                    <url-pattern>*.seam</url-pattern>
                </servlet-mapping>
            
                <session-config>
                    <session-timeout>60</session-timeout> 
                </session-config>    
                
            </web-app>
            



            <?xml version='1.0' encoding='UTF-8'?>
            <faces-config version="1.2"
                          xmlns="http://java.sun.com/xml/ns/javaee"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
            
                <!-- Facelets support -->
                <application>
                    <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
                </application>
                
                <application>
                      <message-bundle>messages</message-bundle>
                      <locale-config>
                           <default-locale>pl</default-locale>
                           <supported-locale>en</supported-locale>
                           <supported-locale>pl</supported-locale>
                      </locale-config>
                 </application>    
                
            </faces-config>