aws-samples / aws-samples/aws-java-sample

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

Ouverte
#24 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
241
Forks
345
Métriques de merge des PR
Aucune PR mergée en 30 j

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
1.6
1.6

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
build-system
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.