[jboss-user] [JBoss Seam] - s:fileUpload throw

cchee do-not-reply at jboss.com
Fri May 11 19:15:32 EDT 2007


Hi,

Not sure if anyone ask about this before. I am trying to resolve an issue with <s:fileUpload>

My components.xml is 

  | <?xml version="1.0" encoding="UTF-8"?>
  | <components xmlns="http://jboss.com/products/seam/components"
  |             xmlns:core="http://jboss.com/products/seam/core"
  |             xmlns:drools="http://jboss.com/products/seam/drools"
  |             xmlns:security="http://jboss.com/products/seam/security"
  |             xmlns:mail="http://jboss.com/products/seam/mail"
  |             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |             xsi:schemaLocation=
  |                 "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd 
  |                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd
  |                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
  |                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd
  |                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd">
  | 
  |    <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
  |      
  |    <core:manager concurrent-request-timeout="500" 
  |                  conversation-timeout="120000" 
  |                  conversation-id-parameter="cid" 
  |                  conversation-is-long-running-parameter="clr"/>
  |     
  |    <core:managed-persistence-context name="entityManager"
  |                               auto-create="true"
  |                persistence-unit-jndi-name="java:/FBISEntityManagerFactory"/>
  | 
  |    <core:ejb installed="@embeddedEjb@"/>
  |    
  |    <component class="org.jboss.seam.web.MultipartFilter">
  |        <property name="createTempFiles">true</property>
  |        <property name="maxRequestSize">5000000</property>
  |    </component>                 
  |   
  |    <drools:rule-base name="securityRules">
  |        <drools:rule-files>
  |            <value>/security.drl</value>
  |        </drools:rule-files>
  |    </drools:rule-base>
  | 
  |    <security:identity authenticate-method="#{authenticator.authenticate}"
  |                            security-rules="#{securityRules}"/>
  |    
  |    <event type="org.jboss.seam.notLoggedIn">
  |        <action expression="#{redirect.captureCurrentView}"/>
  |    </event>
  |    <event type="org.jboss.seam.postAuthenticate">
  |        <action expression="#{redirect.returnToCapturedView}"/>
  |    </event>
  |    
  |    <mail:mail-session host="localhost" port="2525" username="test" password="test" />
  |         
  |    <!-- For use with jBPM pageflow or process management -->
  |    <!--  
  |    <core:jbpm>
  |       <core:process-definitions></core:process-definitions>
  |       <core:pageflow-definitions></core:pageflow-definitions>
  |    </core:jbpm>
  |    -->
  |       
  | </components>
  | 

When I save the Edit form with <s:fileUpload> in it, I got the exception shown below. The file size for uploading is only 82KBytes. My maxRequestFilesize is 5MBytes. Any idea?

Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for column 'asset_request_form' at row 1
  |         at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1213)
  |         at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:912)
  |         at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519)
  |         at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
  |         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
  |         ... 81 more
  | 19:05:25,746 ERROR [ExceptionFilter] uncaught exception
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045153#4045153

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045153



More information about the jboss-user mailing list