Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19426

Failed to initialize mandatory document [Attachment.Code.MoveAttachment]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 14.1-rc-1
    • 14.0
    • Attachments
    • None
    • MariaDB 10.5.13
      Java 11.0.14
    • Unknown
    • N/A
    • N/A

    Description

      When starting XWiki I get the following error:

      [2022-02-11 10:47:54] [info] 2022-02-11 10:47:54,146 [XWiki initialization] ERROR c.x.x.XWiki                    - Failed to initialize mandatory document [Attachment.Code.MoveAttachment]
      [2022-02-11 10:47:54] [info] com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document xwiki:Attachment.Code.MoveAttachment
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:731)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:258)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:218)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:2049)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1954)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1415)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1379)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1288)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1225)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.XWiki.<init>(XWiki.java:1198)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:117)
      [2022-02-11 10:47:54] [info] #011at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
      [2022-02-11 10:47:54] [info] #011at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
      [2022-02-11 10:47:54] [info] #011at java.base/java.lang.Thread.run(Thread.java:829)
      [2022-02-11 10:47:54] [info] Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement
      [2022-02-11 10:47:54] [info] #011at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1406)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:493)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3285)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2420)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:449)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:183)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$300(JdbcResourceLocalTransactionCoordinatorImpl.java:40)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:281)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:101)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.internal.store.hibernate.HibernateStore.endTransaction(HibernateStore.java:880)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:602)
      [2022-02-11 10:47:54] [info] #011at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:722)
      [2022-02-11 10:47:54] [info] #011... 13 common frames omitted
      [2022-02-11 10:47:54] [info] Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement
      [2022-02-11 10:47:54] [info] #011at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:37)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:99)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:200)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:46)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3375)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3908)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:107)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:604)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.spi.ActionQueue.lambda$executeActions$1(ActionQueue.java:478)
      [2022-02-11 10:47:54] [info] #011at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:475)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:344)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:40)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1402)
      [2022-02-11 10:47:54] [info] #011... 24 common frames omitted
      [2022-02-11 10:47:54] [info] Caused by: java.sql.SQLSyntaxErrorException: (conn=63) Data too long for column 'XWS_VALUE' at row 1
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:62)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:158)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:266)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.ClientSidePreparedStatement.executeInternal(ClientSidePreparedStatement.java:229)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.ClientSidePreparedStatement.execute(ClientSidePreparedStatement.java:149)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.ClientSidePreparedStatement.executeUpdate(ClientSidePreparedStatement.java:181)
      [2022-02-11 10:47:54] [info] #011at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:136)
      [2022-02-11 10:47:54] [info] #011at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:136)
      [2022-02-11 10:47:54] [info] #011at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:136)
      [2022-02-11 10:47:54] [info] #011at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197)
      [2022-02-11 10:47:54] [info] #011... 36 common frames omitted
      [2022-02-11 10:47:54] [info] Caused by: org.mariadb.jdbc.internal.util.exceptions.MariaDbSqlException: Data too long for column 'XWS_VALUE' at row 1
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.util.exceptions.MariaDbSqlException.of(MariaDbSqlException.java:34)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.exceptionWithQuery(AbstractQueryProtocol.java:194)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.exceptionWithQuery(AbstractQueryProtocol.java:177)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:321)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.ClientSidePreparedStatement.executeInternal(ClientSidePreparedStatement.java:220)
      [2022-02-11 10:47:54] [info] #011... 42 common frames omitted
      [2022-02-11 10:47:54] [info] Caused by: java.sql.SQLException: Data too long for column 'XWS_VALUE' at row 1
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readErrorPacket(AbstractQueryProtocol.java:1694)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1556)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.getResult(AbstractQueryProtocol.java:1519)
      [2022-02-11 10:47:54] [info] #011at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:318)
      [2022-02-11 10:47:54] [info] #011... 43 common frames omitted
      

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: