Skip to content

Instantly share code, notes, and snippets.

@ovnicraft
Created December 19, 2019 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ovnicraft/2bf864981f3d86385f908070d6d865c9 to your computer and use it in GitHub Desktop.
Save ovnicraft/2bf864981f3d86385f908070d6d865c9 to your computer and use it in GitHub Desktop.
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:373)
at java.base/java.util.ArrayList.get(ArrayList.java:425)
at ec.com.virtualsami.xades_firma.GenericXMLSignature.getFirstCertificate(GenericXMLSignature.java:234)
at ec.com.virtualsami.xades_firma.GenericXMLSignature.execute(GenericXMLSignature.java:96)
at ec.com.virtualsami.xades_firma.XAdESBESSignature.firmarDocumento(XAdESBESSignature.java:44)
at firma2.Program.main(Program.java:60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment