java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 6
See original GitHub issueHi,
I have 486 edits and now I am not able to download the yml. Please help:
14:22:22,970 DEBUG [io.apicurio.hub.core.storage.jdbc.JdbcStorage] (default task-20) Selecting the content 'command' rows for API 2 since content version 207
14:22:22,984 ERROR [io.apicurio.hub.editing.EditApiDesignEndpoint] (default task-20) Failed to rollup commands for API with id: 2: io.apicurio.hub.core.js.OaiCommandException: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 6
at io.apicurio.hub.core.js.OaiCommandExecutor.executeCommands(OaiCommandExecutor.java:106)
at io.apicurio.hub.core.js.OaiCommandExecutor$Proxy$_$$_WeldClientProxy.executeCommands(Unknown Source)
at io.apicurio.hub.editing.EditApiDesignEndpoint.rollupCommands(EditApiDesignEndpoint.java:267)
at io.apicurio.hub.editing.EditApiDesignEndpoint.onCloseSession(EditApiDesignEndpoint.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at io.undertow.websockets.jsr.annotated.BoundMethod.invoke(BoundMethod.java:87)
at io.undertow.websockets.jsr.annotated.AnnotatedEndpoint$4.run(AnnotatedEndpoint.java:211)
at io.undertow.websockets.jsr.ServerWebSocketContainer$1.call(ServerWebSocketContainer.java:162)
at io.undertow.websockets.jsr.ServerWebSocketContainer$1.call(ServerWebSocketContainer.java:159)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.websockets.jsr.ServerWebSocketContainer.invokeEndpointMethod(ServerWebSocketContainer.java:575)
at io.undertow.websockets.jsr.ServerWebSocketContainer$6.run(ServerWebSocketContainer.java:561)
at io.undertow.websockets.jsr.OrderedExecutor$ExecutorTask.run(OrderedExecutor.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 6
at java.util.Arrays.rangeCheck(Arrays.java:120)
at java.util.Arrays.fill(Arrays.java:2868)
at jdk.nashorn.internal.runtime.BitVector.setRange(BitVector.java:273)
at jdk.nashorn.internal.runtime.arrays.DeletedArrayFilter.delete(DeletedArrayFilter.java:151)
at jdk.nashorn.internal.runtime.arrays.DeletedRangeArrayFilter.delete(DeletedRangeArrayFilter.java:231)
at jdk.nashorn.internal.runtime.ScriptObject.doesNotHaveEnsureDelete(ScriptObject.java:3125)
at jdk.nashorn.internal.runtime.ScriptObject.defineOwnProperty(ScriptObject.java:725)
at jdk.nashorn.internal.runtime.JSONFunctions.setPropertyValue(JSONFunctions.java:200)
at jdk.nashorn.internal.runtime.JSONFunctions.convertNode(JSONFunctions.java:182)
at jdk.nashorn.internal.runtime.JSONFunctions.convertNode(JSONFunctions.java:181)
at jdk.nashorn.internal.runtime.JSONFunctions.convertNode(JSONFunctions.java:181)
at jdk.nashorn.internal.runtime.JSONFunctions.convertNode(JSONFunctions.java:181)
at jdk.nashorn.internal.runtime.JSONFunctions.convertNode(JSONFunctions.java:181)
at jdk.nashorn.internal.runtime.JSONFunctions.parse(JSONFunctions.java:93)
at jdk.nashorn.internal.objects.NativeJSON.parse(NativeJSON.java:105)
at jdk.nashorn.internal.scripts.Script$Recompilation$1197$339564A$\^eval\_.L:5$OasDocumentFactory$createFromJson(<eval>:10249)
at jdk.nashorn.internal.scripts.Script$Recompilation$1195$533756A$\^eval\_.L:5$OasLibraryUtils$createDocument(<eval>:15107)
at jdk.nashorn.internal.scripts.Script$Recompilation$1194$44AA$\^eval\_.executeCommands(<eval>:4)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:640)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:387)
at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:192)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:381)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:187)
at io.apicurio.hub.core.js.OaiCommandExecutor.executeCommands(OaiCommandExecutor.java:102)
... 23 more
14:22:23,361 DEBUG [io.apicurio.hub.api.rest.impl.DesignsResource] (default task-21) Getting an API design with ID 2
14:22:23,364 DEBUG [io.apicurio.hub.core.storage.jdbc.JdbcStorage] (default task-21) Selecting a single API Design: 2
14:22:23,377 DEBUG [io.apicurio.hub.api.rest.impl.DesignsResource] (default task-22) Retrieving collaborators list for design with ID: 2
14:22:23,378 DEBUG [io.apicurio.hub.core.storage.jdbc.JdbcStorage] (default task-22) Selecting all collaborators for API Design: 2
14:22:26,008 DEBUG [io.apicurio.studio.shared.config.Configuration] (default task-23) Config Property: APICURIO_UI_HUB_API_URL/apicurio-ui.hub-api.url = null
14:22:26,014 DEBUG [io.apicurio.hub.api.rest.impl.DesignsResource] (default task-24) Getting content for API design with ID: 2
14:22:26,015 DEBUG [io.apicurio.hub.core.storage.jdbc.JdbcStorage] (default task-24) Selecting the most recent api_content row of type 'document' for: 2
14:22:26,016 DEBUG [io.apicurio.hub.core.storage.jdbc.JdbcStorage] (default task-24) Selecting the content 'command' rows for API 2 since content version 207
Issue Analytics
- State:
- Created 6 years ago
- Comments:26 (16 by maintainers)
Top Results From Across the Web
How to Fix the Array Index Out Of Bounds Excepiton in Java
The ArrayIndexOutOfBoundsException is a runtime exception in Java that occurs when an array is accessed with an illegal index.
Read more >What causes a java.lang.ArrayIndexOutOfBoundsException ...
IndexOutOfBoundsException is thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector)...
Read more >Array index out of range' using "Database Conversion Utility"
'ERROR: java.lang.ArrayIndexOutOfBoundsException: Array index out of range' using "Database Conversion Utility" · Problem · Symptom · Cause.
Read more >3 Tips to solve and Avoid java.lang ... - Javarevisited
The error ArrayIndexOutOfBoundsException: 1 means index 1 is invalid and it's out of bounding i.e. more than the length of the array. Since...
Read more >How to Fix java.lang.ArrayIndexOutOfBoundsException in ...
It occurs when a Java program tries to access an invalid index like. an index that is not positive or greater than the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Eric, Don’t worry. Ask what you need. The least thing I can do is try to help people building opensource software that I use.
Maven output:
Sorry it took so long to figure this out. When you reported version 151 of the JDK earlier in the thread, that seemed to discount the possibility of that JDK Nashorn bug being the culprit. I’m guessing you ended up having multiple JDKs installed. The only reason I came back to that as a possibility was that I noticed the same thing happened on my machine. After installing JDK 1.8.0_161, doing
java -version
would report 161 but doingjjs -v
would report 78!Fortunately for me, neither version I was running had the Nashorn bug in it.
Anyway, glad we solved the mystery, even if it took longer than either of us would have liked. 😃 If you have a moment, please let me know if this has fixed the original reported issue!