5 Replies Latest reply on Jun 25, 2009 11:38 AM by amitev

    Limit on post data size

    raomadhavrao

      Is there any limit on the post data size thatcan be sent through seam contexts? Our application is running into a problem sending text fields with more than 1.9 million characters (yes clinet needs this feature to send 10 million characters!)as post data. It appears that the Seam context class  Contexts.lookupInStatefulContexts() return a null object.

        • 1. Re: Limit on post data size
          clerum

          Since a String.length() returns a int Java API


          Doesn't that limit a String to 2,147,483,647 characters (due to the int being signed)?

          • 2. Re: Limit on post data size
            raomadhavrao

            Thanks for your reply. Yes, that limit would be 2 billion characters, but through Seam i am not able to pass more than 1.9 million characters before the post parameter is retrieved throgh seam as null. Why is that?

            • 3. Re: Limit on post data size
              clerum

              Not sure if it works for all post data but there is an option in web.xml to control the max file size for upload. Not sure if a large String would be blocked by that..defaults to 1 Million bytes


              <filter>
                    <filter-name>Seam Filter</filter-name>
                    <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
                    
                    <init-param>
                         <param-name>createTempFiles</param-name>
                      <param-value>false</param-value>
                    </init-param>
                    <init-param>
                      <param-name>maxRequestSize</param-name>
                      <param-value>10000000</param-value>
                   </init-param>
                         
                 </filter>
              

              • 4. Re: Limit on post data size
                raomadhavrao

                will that be applied to text fields as well?

                • 5. Re: Limit on post data size
                  amitev

                  No. This should be configured at server level. Look Here. In the table there is a property 'maxPostSize'.