Maven error and javax.xml.bind.DatatypeConverter with jdk10
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system
Research direction
Start by locating the Maven build configuration and the compiler source and target properties mentioned in the issue. Run the example on JDK 8 and JDK 10, then trace the runtime failure involving javax.xml.bind.DatatypeConverter. Done means the example builds and runs without the reported compiler or runtime errors on the affected JDKs.
Written by the indexing model from the issue text.
Description
If you get the error
maven Source option 5 is no longer supported. Use 6 or later. [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
Add the following to the properties
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
That fixes the problem for jdk8.
For jdk10
The example builds but gives a runtime exception
An exception occured while executing the Java class. null: InvocationTargetException: javax/xml/bind/DatatypeConverter: javax.xml.bind.DatatypeConverter
as javax.xml.bind.DatatypeConverter is removed in JDK9 onwards
- Dominant language
- Java
- Stars
- 241
- Forks
- 345
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws-samples/aws-java-sample
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Build Error Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Build Failure Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
aws-samples/aws-java-sample#25 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
aws-samples/aws-java-sample#19 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in aws-samples/aws-java-sample
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FasterXML/jackson-databind#6229 ·