Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with non patch versions #14

Open
froque opened this issue Oct 17, 2023 · 0 comments
Open

Error with non patch versions #14

froque opened this issue Oct 17, 2023 · 0 comments

Comments

@froque
Copy link
Owner

froque commented Oct 17, 2023

❯ /usr/lib/jvm/temurin-21-jdk-amd64/bin/java \
    -jar FACTEMICLI-2.6.2-46755-cmdClient.jar \
    -i /home/froque/Downloads/saft_idemo599999999.xml \
    -n 599999993 \
    -p testes1234 \
    -a 2017 \
    -m 03 \
    -op enviar \
    --testes 
Exception in thread "main" java.lang.ExceptionInInitializerError
	at HA.<clinit>(Unknown Source)
	at Dg.a(Unknown Source)
	at Dg.a(Unknown Source)
	at Dg.d(Unknown Source)
	at pt.at.factemicli.cmdProcessor.FactemicliCmdClient.main(Unknown Source)
Caused by: java.lang.StringIndexOutOfBoundsException: Range [0, 3) out of bounds for length 2
	at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
	at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
	at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
	at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112)
	at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349)
	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4861)
	at java.base/java.lang.String.substring(String.java:2830)
	at HF.<clinit>(Unknown Source)
	... 5 more

this is due to System.getProperty("java.version").substring(0, 3);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant