sam2099 opened a new issue #1909:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1909
## Bug Report
### Which version of ElasticJob did you use?
elasticjob-lite-spring-boot-starter 3.0.0-RC1
spring-boot 2.2.12.RELEASE
zookeeper-3.7.0
### Which project did you use? ElasticJob-Lite or ElasticJob-Cloud?
ElasticJob-Lite
### Expected behavior
### Actual behavior
every time i need delete zookeeper data when i start spring boot
application,
otherwise error as below :
```java
[main] ERROR o.s.boot.SpringApplication - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.apache.shardingsphere.elasticjob.lite.spring.boot.job.ElasticJobBootstrapConfiguration':
Invocation of init method failed; nested exception is
org.apache.shardingsphere.elasticjob.infra.exception.JobConfigurationException:
Job conflict with register center. The job 'nucleicAcidData1' in register
center's class is
'xxxx.NucleicAcidDataSimpleJob$$EnhancerBySpringCGLIB$$c45ad338', your job
class is 'xxxx.NucleicAcidDataSimpleJob$$EnhancerBySpringCGLIB$$f2816b1e'
```
### Reason analyze (If you can)
### Steps to reproduce the behavior.
### Example codes for reproduce this issue (such as a github link).
yaml
```xml
elasticjob:
tracing:
type: RDB
regCenter:
serverLists: 192.168.5.10:12181
namespace: elasticjob-lite
jobs:
nucleicAcidData1:
elasticJobClass: xxxx.NucleicAcidDataSimpleJob
cron: "* 0/5 * * * ?"
shardingTotalCount: 4
shardingItemParameters: 0=a,1=b,2=c,3=d
```
`NucleicAcidDataSimpleJob`
```java
@Service
@Scope(value="prototype")
@Transactional(rollbackFor = Exception.class)
public class NucleicAcidDataSimpleJob implements SimpleJob {
private final Logger logger =
LoggerFactory.getLogger(NucleicAcidDataSimpleJob.class);
@Autowired
private NucleicAcidResultService resultService;
@Override
public void execute(ShardingContext shardingContext) {
logger.info("Item: {} | Time: {} | Thread: {} | {}",
shardingContext.getShardingItem(),
DateUtil.getFormatNow("HH:mm:ss"), Thread.currentThread().getId(), "DATAFLOW
FETCH");
resultService.processNucleicAcidData(shardingContext.getShardingTotalCount(),
shardingContext.getShardingItem());
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]