Aggregation Method Combo Box IndexOutOfBounds Exception
See original GitHub issuePrerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Running the latest version of Constellation
- Attached the Support Package via
Help
>Support Package
- Checked the FAQs: https://github.com/constellation-app/constellation/wiki/FAQ
- Checked that your issue isn’t already filed: https://github.com/constellation-app/constellation/issues
- Checked that there is not already a module that provides the described functionality: https://github.com/constellation-app/constellation/wiki/Catalogue-of-Repositories
Description
In the Analytic View, when attempting to change the Aggregation Method combo box after making a selection of nodes/transactions on the graph an IndexOutOfBounds Exception is thrown. An Analytic must be chosen from the categories above the combo box for the exception to occur.
Steps to Reproduce
- Open a Sphere Graph and the Analytic View
- Choose an analytic from the categories list
- Make a selection on the graph and attempt to change the aggregation method combo box
Expected behaviour: The combo box to update to the new value
Actual behaviour: An IndexOutOfBounds Exception is thrown
Reproduces how often: 100%
Additional Information
Example of the bug:
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
JavaFX IndexOutOfBoundsException when calling ComboBox ...
I have a ComboBox with some Integers, e.g. lets say 3 Integer 1,2 and 3. When the user selects one of them the...
Read more >IndexOutOfBoundsException (Java Platform SE 7 )
Constructs an IndexOutOfBoundsException with the specified detail message. Method Summary. Methods inherited from class java.lang.Throwable · addSuppressed, ...
Read more >out of bounds. Index 0 for empty list." | OutSystems
If you want to display all Sheet1, then an Aggregate is the right choice to read them, but accessing them by indexing the...
Read more >Levenshtein Distance Single Choice fields resets everytime a ...
The Aggregation method selection will also throw an IndexOutOfBounds Exception when the change of selection occurs.
Read more >Accessors and Mutators
To use one of the methods of an object element of an array: ... If index > myList.size(), the method throws an IndexOutOfBounds...
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
@arcturus2 I did some testing and could not reproduce the issue on version 2.0. In version 2.0, when making a selection of transactions on a graph the aggregation combo box would reset to displaying as empty but the rest of the functionality still worked and a value was able to be reselected. @Polaris5514 was looking into this issue for a while with the now fixed issue #842, so this issue has been present for ~2 months.
Currently I would bet that the issue is actually AnalyticViewTopComponent:127-131. In this bit of code createParameters() is called but if you look at the javadoc for it it says: “This method will only be called once and the results will be cached for future use.” Which makes it seem like it shouldn’t be getting called here and instead we should be updating the parameters a different way.