You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, maven clean install reported the following error,
Caused by: java.lang.IndexOutOfBoundsException: Index 13 out of bounds for length 13
at jdk.internal.util.Preconditions.outOfBounds (Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex (Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex (Preconditions.java:266)
at java.util.Objects.checkIndex (Objects.java:359)
at java.util.ArrayList.get (ArrayList.java:427)
at io.dekorate.kubernetes.adapter.KubernetesConfigAdapter.toStringArray (KubernetesConfigAdapter.java:1510)
at io.dekorate.kubernetes.adapter.KubernetesConfigAdapter.newBuilder (KubernetesConfigAdapter.java:1014)
at io.dekorate.kubernetes.config.KubernetesConfigGenerator.addPropertyConfiguration (KubernetesConfigGenerator.java:46)
at io.dekorate.Session.lambda$addPropertyConfiguration$1 (Session.java:167)
at io.dekorate.Session.addConfiguration (Session.java:183)
at io.dekorate.Session.addPropertyConfiguration (Session.java:167)
at io.dekorate.spring.apt.SpringBootApplicationProcessor.process (SpringBootApplicationProcessor.java:76)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor (JavacProcessingEnvironment.java:1023)
Downloaded the source code of KubernetesConfigAdapter and it seemed the loop condition should be 'i < c.size()',
public static String[] toStringArray(Object o) {
.....ommitted.....
else if (o instanceof List) {
List c = (List) o;
String[] result = new String[c.size()];
for (int i=0; i <= c.size(); i++) {
result[i] = String.valueOf(c.get(i));
}
return result;
}
return new String[0];
}
dekorate version: 3.1.3
Please verify and let me know if my statements is not clear or any formatting guideline I should look at before posting. Thanks!
The text was updated successfully, but these errors were encountered:
Hi, I was trying to apply the following config to have Dekorate help to generate corresponding Kubernetes yaml,
Then,
maven clean install
reported the following error,Downloaded the source code of KubernetesConfigAdapter and it seemed the loop condition should be 'i < c.size()',
dekorate version: 3.1.3
Please verify and let me know if my statements is not clear or any formatting guideline I should look at before posting. Thanks!
The text was updated successfully, but these errors were encountered: