Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-28621

Nexus DB Migrator 3.33.0 fails with java.lang.StringIndexOutOfBoundsException error

    XMLWordPrintable

    Details

    • Story Points:
      5
    • Sprint:
      NXRM Rocket Sprint 15, NXRM Rocket Sprint 16

      Description

      ISSUE:

      Latest DB Migrator, 3.33.0, fails with below error when trying to port to Postgres or H2.

       

      ERROR:

      13:37:36 [main] INFO  o.s.batch.core.job.SimpleStepHandler - Executing step: [processComponentStep]
      13:37:36 [main] ERROR o.s.batch.core.step.AbstractStep - Encountered an error executing step processComponentStep in job migrationFromOrientJob
      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      	at java.lang.String.charAt(String.java:658)
      	at com.sonatype.nexus.db.migrator.processor.content.AssetProcessor.formatPath(AssetProcessor.java:91)
      	at com.sonatype.nexus.db.migrator.processor.content.AssetProcessor.process(AssetProcessor.java:72)
      	at com.sonatype.nexus.db.migrator.processor.content.AssetProcessor.process(AssetProcessor.java:34)
      	at org.springframework.batch.item.support.ClassifierCompositeItemProcessor.processItem(ClassifierCompositeItemProcessor.java:63)
      	at org.springframework.batch.item.support.ClassifierCompositeItemProcessor.process(ClassifierCompositeItemProcessor.java:54)
      	at org.springframework.batch.item.support.ClassifierCompositeItemProcessor.processItem(ClassifierCompositeItemProcessor.java:63)
      	at org.springframework.batch.item.support.ClassifierCompositeItemProcessor.process(ClassifierCompositeItemProcessor.java:54)
      	at org.springframework.batch.core.step.item.SimpleChunkProcessor.doProcess(SimpleChunkProcessor.java:134)
      	at org.springframework.batch.core.step.item.SimpleChunkProcessor.transform(SimpleChunkProcessor.java:319)
      	at org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:210)
      	at org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:77)
      	at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:407)
      	at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:331)
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
      	at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:273)
      	at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:82)
      	at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:375)
      	at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)
      	at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:145)
      	at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:258)
      	at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:208)
      	at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)
      	at org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:68)
      	at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:68)
      	at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)
      	at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)
      	at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:137)
      	at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:319)
      	at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:147)
      	at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
      	at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:140)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      	at org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$PassthruAdvice.invoke(SimpleBatchConfiguration.java:127)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
      	at com.sun.proxy.$Proxy50.run(Unknown Source)
      	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.execute(JobLauncherCommandLineRunner.java:192)
      	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.executeLocalJobs(JobLauncherCommandLineRunner.java:166)
      	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.launchJobFromProperties(JobLauncherCommandLineRunner.java:153)
      	at org.springframework.boot.autoconfigure.batch.JobLauncherCommandLineRunner.run(JobLauncherCommandLineRunner.java:148)
      	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
      	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:768)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:322)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
      	at com.sonatype.nexus.db.migrator.MigratorApplication.main(MigratorApplication.java:61)
      13:37:36 [main] INFO  o.s.batch.core.step.AbstractStep - Step: [processComponentStep] executed in 240ms
      13:37:36 [main] INFO  c.s.n.d.m.l.ProvidingJobInfoListener - Migration job finished at Tue Aug 10 13:37:36 AEST 2021
      13:37:36 [main] INFO  c.s.n.d.m.l.ProvidingJobInfoListener - Migration job took 3 seconds to execute
      13:37:36 [main] INFO  c.s.n.d.m.l.ProvidingJobInfoListener - 1077 records were processed
      13:37:36 [main] INFO  c.s.n.d.m.l.ProvidingJobInfoListener - 12 records were filtered
      13:37:36 [main] INFO  c.s.n.d.m.l.ProvidingJobInfoListener - 0 records were skipped
      13:37:36 [main] INFO  c.s.n.d.m.l.ProvidingJobInfoListener - 965 records were migrated
      13:37:36 [main] INFO  c.s.n.d.m.l.ProvidingJobInfoListener - ------------------------------------------------------------
      13:37:36 [main] INFO  c.s.n.d.m.l.ProvidingJobInfoListener - Migration job finished with status FAILED.
      

       
      CAUSE:

      Suspecting assets with no name.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iudovika Igor Udovika
              Reporter:
              sappusamy Srinivasan Appusamy
              Last Updated By:
              Hardeep Nagra Hardeep Nagra
              Team:
              NXRM - Rocket Raccoon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title