Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-350

Wrong length calculation for an i18n string in JDBC repository schema

    Details

      Description

      EXECUTIONEXCEPTION column is defined as VARCHAR(2048) and a longer string than it is truncated by org.jberet.repository.TableColumns.formatException(). This truncation is not considering i18n strings, those are string.length() != string.getBytes().length in UTF-8.

      ERROR [org.jberet] (Batch Thread - 1) JBERET000007: Failed to run job in_out_file_test_0015, , org.jberet.job.model.Job@dbfbdf19: javax.batch.operations.BatchRuntimeException: JBERET000626: Failed to run UPDATE STEP_EXECUTION SET ENDTIME=?, BATCHSTATUS=?, EXITSTATUS=?, EXECUTIONEXCEPTION=?, PERSISTENTUSERDATA=?, READCOUNT=?, WRITECOUNT=?, COMMITCOUNT=?, ROLLBACKCOUNT=?, READSKIPCOUNT=?, PROCESSSKIPCOUNT=?, FILTERCOUNT=?, WRITESKIPCOUNT=?, READERCHECKPOINTINFO=?, WRITERCHECKPOINTINFO=? WHERE STEPEXECUTIONID=?
              at org.jberet.repository.JdbcRepository.updateStepExecution(JdbcRepository.java:673)
              at org.jberet.repository.JdbcRepository.savePersistentData(JdbcRepository.java:685)
              at org.wildfly.extension.batch.jberet.job.repository.JobRepositoryService.savePersistentData(JobRepositoryService.java:189)
              at org.wildfly.extension.batch.jberet.job.repository.JdbcJobRepositoryService.savePersistentData(JdbcJobRepositoryService.java:44)
              at org.jberet.runtime.context.StepContextImpl.savePersistentData(StepContextImpl.java:190)
              at org.jberet.runtime.runner.StepExecutionRunner.run(StepExecutionRunner.java:165)
              at org.jberet.runtime.runner.CompositeExecutionRunner.runStep(CompositeExecutionRunner.java:164)
              at org.jberet.runtime.runner.CompositeExecutionRunner.runFromHeadOrRestartPoint(CompositeExecutionRunner.java:88)
              at org.jberet.runtime.runner.JobExecutionRunner.run(JobExecutionRunner.java:59)
              at org.wildfly.extension.batch.jberet.impl.BatchEnvironmentService$WildFlyBatchEnvironment$1.run(BatchEnvironmentService.java:243)
              at org.wildfly.extension.requestcontroller.RequestController$QueuedTask$1.run(RequestController.java:497)
              at org.jberet.spi.JobExecutor$3.run(JobExecutor.java:161)
              at org.jberet.spi.JobExecutor$1.run(JobExecutor.java:99)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
              at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      Caused by: java.sql.SQLException: ORA-12899: ...
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  cfang Cheng Fang
                  Reporter:
                  osamu.nagano Osamu Nagano
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: