JDK11提示找不到class
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description
使用的是openjdk version 11 执行datax报如下错误,有支持JDK11版本的datax版本吗?
经DataX智能分析,该任务最可能的错误原因是:
com.alibaba.datax.common.exception.DataXException: Code:[Framework-02], Description:[DataX引擎运行过程出错,具体原因请参看DataX运行结束时的错误诊断信息 .]. - java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.aliyun.odps.Odps.(Odps.java:101)
at com.alibaba.datax.plugin.writer.odpswriter.util.OdpsUtil.initOdpsProject(OdpsUtil.java:89)
at com.alibaba.datax.plugin.writer.odpswriter.OdpsWriter$Job.prepare(OdpsWriter.java:149)
at com.alibaba.datax.core.job.JobContainer.prepareJobWriter(JobContainer.java:724)
at com.alibaba.datax.core.job.JobContainer.prepare(JobContainer.java:309)
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:115)
at com.alibaba.datax.core.Engine.start(Engine.java:92)
at com.alibaba.datax.core.Engine.entry(Engine.java:171)
at com.alibaba.datax.core.Engine.main(Engine.java:204)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/java.net.URLClassLoader.findClassInternal(URLClassLoader.java:497)
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:456)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:626)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:558)
... 9 more
- java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.aliyun.odps.Odps.(Odps.java:101)
at com.alibaba.datax.plugin.writer.odpswriter.util.OdpsUtil.initOdpsProject(OdpsUtil.java:89)
at com.alibaba.datax.plugin.writer.odpswriter.OdpsWriter$Job.prepare(OdpsWriter.java:149)
at com.alibaba.datax.core.job.JobContainer.prepareJobWriter(JobContainer.java:724)
at com.alibaba.datax.core.job.JobContainer.prepare(JobContainer.java:309)
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:115)
at com.alibaba.datax.core.Engine.start(Engine.java:92)
at com.alibaba.datax.core.Engine.entry(Engine.java:171)
at com.alibaba.datax.core.Engine.main(Engine.java:204)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/java.net.URLClassLoader.findClassInternal(URLClassLoader.java:497)
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:456)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:626)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:558)
... 9 more
at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:40)
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:162)
at com.alibaba.datax.core.Engine.start(Engine.java:92)
at com.alibaba.datax.core.Engine.entry(Engine.java:171)
at com.alibaba.datax.core.Engine.main(Engine.java:204)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.aliyun.odps.Odps.(Odps.java:101)
at com.alibaba.datax.plugin.writer.odpswriter.util.OdpsUtil.initOdpsProject(OdpsUtil.java:89)
at com.alibaba.datax.plugin.writer.odpswriter.OdpsWriter$Job.prepare(OdpsWriter.java:149)
at com.alibaba.datax.core.job.JobContainer.prepareJobWriter(JobContainer.java:724)
at com.alibaba.datax.core.job.JobContainer.prepare(JobContainer.java:309)
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:115)
... 3 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/java.net.URLClassLoader.findClassInternal(URLClassLoader.java:497)
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:456)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:626)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:558)
... 9 more
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure with OpenJDK 11 and an ODPS writer job, then trace the stack from com.aliyun.datax.plugin.writer.odpswriter.util.OdpsUtil.initOdpsProject through OdpsWriter$Job.prepare. Check how the ODPS dependency is loaded and verify that the job starts successfully without the javax/xml/bind/JAXBException error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100