Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Latest commit

 

History

History
19 lines (10 loc) · 1.5 KB

TROUBLESHOOTING.md

File metadata and controls

19 lines (10 loc) · 1.5 KB

Troubleshooting

Things not going well? See if your problem is one that we've encountered before.

Java 9 compatibility - NoClassDefFoundError: javax/xml/bind/JAXBException when running project

Symptom - I try to run the application using Java 9, but I get an error message (e.g., NoClassDefFoundError) about missing modules

Solution - Java 9 changes to a modular architecture, which means that you need to tell Java to load certain modules required by the project.

Try including the java.xml.bind module with the --add-modules parameter:

java -Djsee.enableSNIExtension=false --add-modules java.xml.bind -jar gtfs-realtime-validator-webapp/target/gtfs-realtime-validator-webapp-1.0.0-SNAPSHOT.jar

SSL handshake still fails after following prerequisites

Symptom - I use java -Djsee.enableSNIExtension=false ... as instructed to run the app when retrieving GTFS or GTFS-realtime feeds from HTTPS URLs over SSL, but it fails with an error like javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching www.donneesquebec.ca found.

Solution - The underlying problem is probably with the server certificate configuration where the GTFS or GTFS-realtime data is hosted. You can try to change the parameter to -Djsse.enableSNIExtension=true instead, which has helped in the past for Linux deployments.