Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Maven error and javax.xml.bind.DatatypeConverter with jdk10

Open
#24 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws-samples/aws-java-sample

All issues in aws-samples/aws-java-sample

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.