java.util.MissingResourceException: Can't find bundle for base name com.alibaba.datax.common.util.LocalStrings, locale zh_CN
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description
今天使用java集成调用datax,使用datax包的时候报了这个错,一开始以为是datax版本的问题,后来发现还是使用的问题,特此记录一下。

我使用datax的时候,由于条件不同,所以写了多个调用datax方法的地方,在主线程里调用了一次,下面又用异步的形式调用了多次,结果就是在异步传递数据的时候,提示该报错。猜测是应该是高并发的情况下一些数据加载的问题。
最后解决方案是不使用异步调用datax,异步返回数据以后,统一在主线程里继续调用就没问题了。

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Java integration described in the issue, using multiple asynchronous DataX calls alongside a call from the main thread and the reported zh_CN locale. Trace how com.alibaba.datax.common.util.LocalStrings is loaded during concurrent execution and compare it with the working synchronous flow. Done means the cause is confirmed and a reproducible fix or project-level guidance is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100