[xwiki-users] about big attachments

2008-04-27 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

Working with not updated 1.3.8295 (I would like to avoid to update it 
right now, if possible) I have received an error message while attaching 
a big (around 13Mb) file. This error read:

*
2008-04-27 10:24:58,604 
[http://xpescaderias.environmentalchange.net/xwiki/bin/upload/Main/VideoPromocional]
 
[http-193.144.34.240-80-9] WARN  web.XWikiAction - 
Uncaught exception: Error number 3232 in 3: Exception while saving 
attachment pescaderiasLongo.wmv of document Main.VideoPromocional
Wrapped Exception: Could not execute JDBC batch update
com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while 
saving attachment pescaderiasLongo.wmv of document Main.VideoPromocional
Wrapped Exception: Could not execute JDBC batch update
at 
com.xpn.xwiki.store.XWikiHibernateAttachmentStore.saveAttachmentContent(XWikiHibernateAttachmentStore.java:99)
at 
com.xpn.xwiki.doc.XWikiDocument.saveAttachmentContent(XWikiDocument.java:2517)
at 
com.xpn.xwiki.doc.XWikiDocument.saveAttachmentContent(XWikiDocument.java:2499)
at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:129)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:188)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
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:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


java.sql.BatchUpdateException: Data truncation: Data too long for column 
'XWA_ARCHIVE' at row 1
at 
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1669)
at 
com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1085)
at 
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
at 
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
at 
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
at 
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)
at 
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
at 
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:222)
at 
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2224)
at 
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2660)
at 
org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:56)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at 
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at 
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:778)
 

Re: [xwiki-users] about big attachments

2008-04-27 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Thanks, Vincent,

Vincent Massol wrote:
 Hi,

 Yep, this is known, see
 http://jira.xwiki.org/jira/browse/XWIKI-2339

 The solution is to replace mediumblob by longblob in your DB for the  
 XWA_ARCHIVE column.

 Thanks
 -Vincent

As this only happened once, I do prefer not to touch the database now 
and wait for an update to 1.4. Am I in danger without this modification 
if I don't attach more big files? Thanks.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users