Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1502

RS if external reference of resource is too long

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.2.5
    • Component/s: None
    • Labels:
      None

      Description

      Fix the check against the length of the database field

      RedScreen on czm 10.2.4
      2015-03-30 15:02:57,956 [ajp-apr-8011-exec-5] ERROR DBRuntimeException - OLAT::ERROR ^%^ N11-E11 ^%^ org.olat.core.logging
      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 ^%^ **RedScreen** commit failed, rollback transaction
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_bgrep</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.control.Event</class&gt;
      			<command>validation ok</command>
      			<tostring>com:validation ok,org.olat.core.gui.control.Event@d62b3f02</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.repository.ui.author.RepositoryEditDescriptionController</controllername>
      		<controllername>org.olat.course.run.CourseRuntimeController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.DBRuntimeException: commit failed, rollback transaction
      -> at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:777)
         at org.olat.repository.RepositoryManager.setDescriptionAndName(RepositoryManager.java:804)
         at org.olat.repository.ui.author.RepositoryEditDescriptionController.formOK(RepositoryEditDescriptionController.java:556)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:369)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:201)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:238)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:236)
         at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.fireValidation(FormWrapperContainer.java:122)
         at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:500)
         at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:472)
      >>> stack of 2.cause::javax.persistence.RollbackException: Error while committing the transaction
      -> at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:94)
         at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:731)
         at org.olat.repository.RepositoryManager.setDescriptionAndName(RepositoryManager.java:804)
         at org.olat.repository.ui.author.RepositoryEditDescriptionController.formOK(RepositoryEditDescriptionController.java:556)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:369)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:201)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:238)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:236)
         at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.fireValidation(FormWrapperContainer.java:122)
         at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:500)
      >>> stack of 3.cause::javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute statement
      -> at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763)
         at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677)
         at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:82)
         at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:731)
         at org.olat.repository.RepositoryManager.setDescriptionAndName(RepositoryManager.java:804)
         at org.olat.repository.ui.author.RepositoryEditDescriptionController.formOK(RepositoryEditDescriptionController.java:556)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:369)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:201)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:238)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:236)
      >>> stack of 4.cause::org.hibernate.exception.DataException: could not execute statement
      -> at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:69)
         at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
         at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
         at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
         at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:211)
         at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3285)
         at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3183)
         at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3525)
         at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:159)
         at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)
         at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
      >>> stack of 5.cause::com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'external_ref' at row 1
      -> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3885)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
         at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530)
         at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2141)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062)
         at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
         at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              srosse Stéphane Rossé
              Tester:
              Florian Gnägi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m