Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure in multi-threaded mode #4319

Open
fmbenhassine opened this issue Mar 2, 2023 · 0 comments
Open

Build failure in multi-threaded mode #4319

fmbenhassine opened this issue Mar 2, 2023 · 0 comments
Labels
in: build status: for-internal-team Issues that are planned to be resolved by the Spring Batch team, and not open for contributions. type: bug
Milestone

Comments

@fmbenhassine
Copy link
Contributor

When building the project with the following command (skipping javadocs because the maven-javadoc-plugin is marked as non thread-safe):

$>./mvnw clean package -Dmaven.javadoc.skip=true --threads 4

the build fails with the following errors:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapter.java:[22,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/Tasklet.java:[20,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapter.java:[35,26] cannot find symbol
  symbol:   class RepeatStatus
  location: class org.springframework.batch.core.step.tasklet.CallableTaskletAdapter
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapter.java:[41,42] cannot find symbol
  symbol:   class RepeatStatus
  location: class org.springframework.batch.core.step.tasklet.CallableTaskletAdapter
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapter.java:[62,16] cannot find symbol
  symbol:   class RepeatStatus
  location: class org.springframework.batch.core.step.tasklet.CallableTaskletAdapter
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/scope/context/StepContext.java:[34,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/scope/context/StepContext.java:[35,48] package org.springframework.batch.repeat.context does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/scope/context/StepContext.java:[52,34] cannot find symbol
  symbol: class SynchronizedAttributeAccessor
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java:[26,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java:[31,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java:[72,26] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.StepExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java:[126,16] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.StepExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java:[134,41] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.StepExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java:[65,26] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.JobExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java:[278,41] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.JobExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java:[287,16] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.JobExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/Tasklet.java:[47,9] cannot find symbol
  symbol:   class RepeatStatus
  location: interface org.springframework.batch.core.step.tasklet.Tasklet
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[31,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[32,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[38,48] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[38,1] static import only from classes and interfaces
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[39,48] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[39,1] static import only from classes and interfaces
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[175,19] cannot find symbol
  symbol:   class MethodInvoker
  location: class org.springframework.batch.core.listener.AbstractListenerFactoryBean<T>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java:[58,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/repository/JobRepository.java:[27,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilder.java:[24,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilderHelper.java:[37,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[32,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[33,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[34,50] package org.springframework.batch.repeat.exception does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[35,50] package org.springframework.batch.repeat.exception does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[36,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[37,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[38,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[48,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[49,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[50,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[51,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[52,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[53,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[54,47] package org.springframework.batch.repeat.policy does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[55,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[56,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilder.java:[142,53] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.StepBuilder
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilder.java:[165,53] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.StepBuilder
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/Partitioner.java:[21,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/partition/PartitionHandler.java:[22,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/Partitioner.java:[43,21] cannot find symbol
  symbol:   class ExecutionContext
  location: interface org.springframework.batch.core.partition.support.Partitioner
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[75,17] cannot find symbol
  symbol:   class ItemReader
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[77,17] cannot find symbol
  symbol:   class ItemWriter
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[79,17] cannot find symbol
  symbol:   class ItemProcessor
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[83,17] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[85,17] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[60,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[61,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[62,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[63,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[64,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[34,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[35,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[36,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[37,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[38,46] package org.springframework.batch.item.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[39,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[40,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[41,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[42,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java:[49,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java:[50,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[197,46] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[213,47] cannot find symbol
  symbol:   class ItemReader
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[225,47] cannot find symbol
  symbol:   class ItemWriter
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[237,50] cannot find symbol
  symbol:   class ItemProcessor
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemReadListener.java:[18,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[21,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[22,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemProcessListener.java:[18,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[320,56] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[330,19] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[340,19] cannot find symbol
  symbol:   class ItemReader
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[344,19] cannot find symbol
  symbol:   class ItemWriter
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[348,19] cannot find symbol
  symbol:   class ItemProcessor
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[368,19] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[385,54] cannot find symbol
  symbol:   class ItemReader
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[386,25] cannot find symbol
  symbol:   class ItemProcessor
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[386,78] cannot find symbol
  symbol:   class ItemWriter
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[49,34] cannot find symbol
  symbol:   class Chunk
  location: interface org.springframework.batch.core.ItemWriteListener<S>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[57,33] cannot find symbol
  symbol:   class Chunk
  location: interface org.springframework.batch.core.ItemWriteListener<S>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[67,56] cannot find symbol
  symbol:   class Chunk
  location: interface org.springframework.batch.core.ItemWriteListener<S>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[80,17] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[87,17] cannot find symbol
  symbol:   class CompositeItemStream
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[184,32] cannot find symbol
  symbol:   class ItemStream
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[194,36] cannot find symbol
  symbol:   class ItemStream
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[204,39] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[287,30] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[292,29] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java:[180,29] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.step.AbstractStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java:[190,30] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.step.AbstractStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkMonitor.java:[20,38] package org.springframework.batch.item does not exist
[INFO] 100 errors 
[INFO] -------------------------------------------------------------

The build should succeed no matter the execution mode (sequential or parallel).

@fmbenhassine fmbenhassine added in: build type: bug status: for-internal-team Issues that are planned to be resolved by the Spring Batch team, and not open for contributions. labels Mar 2, 2023
@fmbenhassine fmbenhassine added this to the 6.0.0 milestone Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: build status: for-internal-team Issues that are planned to be resolved by the Spring Batch team, and not open for contributions. type: bug
Projects
None yet
Development

No branches or pull requests

1 participant