[forge-issues] [JBoss JIRA] (FORGE-2548) Better error message what is wrong in a custom wizard for addon developers

Claus Ibsen (JIRA) issues at jboss.org
Tue Dec 8 09:06:00 EST 2015


    [ https://issues.jboss.org/browse/FORGE-2548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138420#comment-13138420 ] 

Claus Ibsen commented on FORGE-2548:
------------------------------------

Some of the other camel components work fine, usually with fewer options such as ahc (the first one).

But the ones with many options like jms, file, netty4-http fails. I suspect its related maybe to a dodgy UIInput that somehow causes something internally in IDEA to fail etc. There was once a problem with UISelectOne type (from enum) that the value choice and the default value was not 100% identical. eg different in lower vs upper case in a String etc. Also maybe a UISelectOne must it have a defaultValue set?

> Better error message what is wrong in a custom wizard for addon developers
> --------------------------------------------------------------------------
>
>                 Key: FORGE-2548
>                 URL: https://issues.jboss.org/browse/FORGE-2548
>             Project: Forge
>          Issue Type: Enhancement
>    Affects Versions: 3.0.0.Alpha2
>            Reporter: Claus Ibsen
>
> When you develop custom addon's then various things can go wrong. And whether the command runs in CLI or IDEA or Eclipse then it works a little bit differently.
> I have a command wizard that fails with this cryptic index out of bounds exception. I finally found the stracktrace in idea.log file, as IDEA itself says nothing
> {code}
> 2015-12-08 10:45:34,976 [ 148775]  ERROR - llij.ide.plugins.PluginManager - Index: 2, Size: 2 
> java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
> 	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
> 	at java.util.ArrayList.get(ArrayList.java:429)
> 	at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.getCurrentEntry(WizardCommandControllerImpl.java:491)
> 	at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.getCurrentController(WizardCommandControllerImpl.java:502)
> 	at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.getInputs(WizardCommandControllerImpl.java:244)
> 	at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.getInputs(NoUIWizardControllerDecorator.java:189)
> {code}
> As all the stacktrace is purely in forge code, I cannot really see what I do wrong.
> Can you guys improve that part of the code that has the index out of bounds and do a better exception message that can help me what is the problem / as well other addon developers.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the forge-issues mailing list