[JBoss JIRA] (FORGE-2544) Add support for CDI 1.2
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2544?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2544:
-----------------------------------
Component/s: Java EE
(was: UI - NetBeans)
> Add support for CDI 1.2
> -----------------------
>
> Key: FORGE-2544
> URL: https://issues.jboss.org/browse/FORGE-2544
> Project: Forge
> Issue Type: Feature Request
> Components: Java EE
> Affects Versions: 3.0.0.Alpha2
> Environment: Windows 10 OS, Netbeans 8.1, JDK 8u66
> Reporter: Randy Hector Bartumeu Huergo
> Fix For: 3.x Future
>
>
> In netbeans not given the option to use the specification 1.2 for CDI when using CDI: Setup, although the libraries are, but the interface does not give me the option
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 1 month
[JBoss JIRA] (FORGE-2544) Add support for CDI 1.2
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2544?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2544:
-----------------------------------
Issue Type: Feature Request (was: Bug)
> Add support for CDI 1.2
> -----------------------
>
> Key: FORGE-2544
> URL: https://issues.jboss.org/browse/FORGE-2544
> Project: Forge
> Issue Type: Feature Request
> Components: UI - NetBeans
> Affects Versions: 3.0.0.Alpha2
> Environment: Windows 10 OS, Netbeans 8.1, JDK 8u66
> Reporter: Randy Hector Bartumeu Huergo
> Fix For: 3.x Future
>
>
> In netbeans not given the option to use the specification 1.2 for CDI when using CDI: Setup, although the libraries are, but the interface does not give me the option
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 1 month
[JBoss JIRA] (FORGE-2533) The installation of the angularjs addon is broken (2.20.1.Final)
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2533?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2533.
----------------------------------
Assignee: George Gastaldi
Resolution: Done
> The installation of the angularjs addon is broken (2.20.1.Final)
> ----------------------------------------------------------------
>
> Key: FORGE-2533
> URL: https://issues.jboss.org/browse/FORGE-2533
> Project: Forge
> Issue Type: Quality Risk
> Environment: *Location*: http://forge.jboss.org/document/jboss-forge-2,-java-ee-easily,-so-easily
> *User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
> *Screen Resolution*: 1093 x 614
> Reporter: Víctor-Polo De Gyves-Montero
> Assignee: George Gastaldi
> Labels: collector-719046f7
>
> When I try to install the angularjs addon, it fails with:
> ***INFO*** Installing Addon from Git:Removing previous addon installation (org.jboss.addon:angularjs,2.1.6-SNAPSHOT) [3/4] ...
> ***INFO*** Installing Addon from Git:Installing addon (org.jboss.addon:angularjs,2.1.6-SNAPSHOT) [4/4] ...
> ***ERROR*** Error while executing 'addon-install-from-git'
> ***INFO*** (type "export VERBOSE=true" to enable stack traces)
> ***ERROR*** Addon(s) [org.jboss.addon:angularjs,2.1.6-SNAPSHOT] could not be installed: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.jboss.addon:angularjs:jar:forge-addon:2.1.6-SNAPSHOT in central (http://repo1.maven.org/maven2)
> Maybe it is a maven problem?
> *Reporter*: Victor Polo de Gyves
> *E-mail*: [mailto:degyves@gmail.com]
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 1 month
[JBoss JIRA] (FORGE-2548) Better error message what is wrong in a custom wizard for addon developers
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2548?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2548.
----------------------------------
Fix Version/s: 3.0.0.CR1
Assignee: George Gastaldi
Resolution: Done
> 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
> Assignee: George Gastaldi
> Fix For: 3.0.0.CR1
>
>
> 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)
9 years, 1 month
[JBoss JIRA] (FORGE-2530) IndexOutOfBoundsException in IDEA when running custom command
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2530?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2530.
----------------------------------
Fix Version/s: 3.0.0.CR1
Resolution: Done
Fixed in forge core. Added logging statements to ease further debugging
> IndexOutOfBoundsException in IDEA when running custom command
> -------------------------------------------------------------
>
> Key: FORGE-2530
> URL: https://issues.jboss.org/browse/FORGE-2530
> Project: Forge
> Issue Type: Bug
> Components: UI - IntelliJ IDEA
> Affects Versions: 3.0.0.Alpha1
> Environment: IDEA 15 with latest forge plugin update installed
> Reporter: Claus Ibsen
> Assignee: George Gastaldi
> Fix For: 3.0.0.CR1
>
>
> I run the Camel forge addon, where we have a multi step wizard.
> And when I click next I can get this exception from within forge itself.
> {code}
> 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.getMetadata(WizardCommandControllerImpl.java:262)
> at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.getMetadata(NoUIWizardControllerDecorator.java:207)
> at sun.reflect.GeneratedMethodAccessor1712.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
> at org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_95731ae3-f50e-4add-917c-6a0b2360542a.getMetadata(CommandController_$$_javassist_95731ae3-f50e-4add-917c-6a0b2360542a.java)
> at org.jboss.forge.plugin.idea.ui.wizard.ForgeWizardStep.getExplanation(ForgeWizardStep.java:144)
> at com.intellij.ui.wizard.WizardDialog.c(WizardDialog.java:172)
> at com.intellij.ui.wizard.WizardDialog.onStepChanged(WizardDialog.java:224)
> at com.intellij.ui.wizard.WizardModel.a(WizardModel.java:93)
> at com.intellij.ui.wizard.WizardModel.next(WizardModel.java:76)
> at com.intellij.ui.wizard.WizardAction$Next.actionPerformed(WizardAction.java:46)
> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
> at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
> at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
> at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
> at java.awt.Component.processMouseEvent(Component.java:6543)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> at java.awt.Component.processEvent(Component.java:6308)
> at java.awt.Container.processEvent(Container.java:2235)
> at java.awt.Component.dispatchEventImpl(Component.java:4899)
> at java.awt.Container.dispatchEventImpl(Container.java:2293)
> at java.awt.Component.dispatchEvent(Component.java:4721)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4897)
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4461)
> at java.awt.Container.dispatchEventImpl(Container.java:2279)
> at java.awt.Window.dispatchEventImpl(Window.java:2750)
> at java.awt.Component.dispatchEvent(Component.java:4721)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:702)
> at java.awt.EventQueue$3.run(EventQueue.java:696)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
> at java.awt.EventQueue$4.run(EventQueue.java:724)
> at java.awt.EventQueue$4.run(EventQueue.java:722)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
> at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:861)
> at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:645)
> at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:380)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
> at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
> at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
> at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
> at java.awt.Dialog.show(Dialog.java:1084)
> at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:792)
> at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:465)
> at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1637)
> at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1586)
> at org.jboss.forge.plugin.idea.ui.CommandListPopupBuilder.openWizard(CommandListPopupBuilder.java:224)
> at org.jboss.forge.plugin.idea.ui.CommandListPopupBuilder.access$300(CommandListPopupBuilder.java:54)
> at org.jboss.forge.plugin.idea.ui.CommandListPopupBuilder$3.run(CommandListPopupBuilder.java:173)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:702)
> at java.awt.EventQueue$3.run(EventQueue.java:696)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
> at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:861)
> at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
> at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:380)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> {code}
> Maybe that part of the code can be enhanced to detect that out of bounds and report a better exception or maybe its some bug in forge itself.
> To reproduce I can setup a Camel github project. And then you would need to install the camel addon, and run a camel-add-endpoint command and select the file component, and then enter a directory, and then click the next button to get this exception.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 1 month
[JBoss JIRA] (FORGE-2548) Better error message what is wrong in a custom wizard for addon developers
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2548?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-2548:
----------------------------------------
I found the bug and fixed. Here is a test case illustrating how I found the problem:
{code}
package org.jboss.forge.addon.scaffold;
import java.io.File;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.forge.addon.projects.Project;
import org.jboss.forge.addon.projects.ProjectFactory;
import org.jboss.forge.addon.resource.Resource;
import org.jboss.forge.addon.resource.ResourceFactory;
import org.jboss.forge.addon.ui.controller.WizardCommandController;
import org.jboss.forge.addon.ui.test.UITestHarness;
import org.jboss.forge.arquillian.AddonDependencies;
import org.jboss.forge.arquillian.AddonDependency;
import org.jboss.forge.arquillian.archive.AddonArchive;
import org.jboss.forge.furnace.container.simple.Service;
import org.jboss.forge.furnace.container.simple.lifecycle.SimpleContainer;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a>
*/
@RunWith(Arquillian.class)
public class ClausBugTest
{
private UITestHarness testHarness;
private ProjectFactory projectFactory;
private ResourceFactory resourceFactory;
@Deployment
@AddonDependencies({
@AddonDependency(name = "org.jboss.forge.addon:parser-java"),
@AddonDependency(name = "org.jboss.forge.addon:maven"),
@AddonDependency(name = "org.jboss.forge.addon:projects"),
@AddonDependency(name = "org.jboss.forge.addon:ui"),
@AddonDependency(name = "org.jboss.forge.addon:ui-test-harness"),
@AddonDependency(name = "org.jboss.forge.furnace.container:simple"),
@AddonDependency(name = "io.fabric8.forge:camel", version = "2.2.72")
})
public static AddonArchive getDeployment()
{
return ShrinkWrap
.create(AddonArchive.class)
.addAsServiceProvider(Service.class, ClausBugTest.class);
}
@Before
public void setUp()
{
projectFactory = SimpleContainer.getServices(getClass().getClassLoader(), ProjectFactory.class).get();
resourceFactory = SimpleContainer.getServices(getClass().getClassLoader(), ResourceFactory.class).get();
testHarness = SimpleContainer.getServices(getClass().getClassLoader(), UITestHarness.class).get();
}
@Test
public void testSomething() throws Exception
{
Resource<File> root = resourceFactory.create(new File("/home/ggastald/workspace/foo"));
Project project = projectFactory.findProject(root);
Assert.assertNotNull("Should have found a project", project);
try (WizardCommandController controller = testHarness.createWizardController("Camel: Add Endpoint", root))
{
Assert.assertNotNull("Should have created controller", controller);
controller.initialize();
controller.setValueFor("componentName", "netty4-http");
controller.setValueFor("instanceName", "Foo");
controller.setValueFor("routeBuilder", "org.foo.MyRoutes");
Assert.assertTrue(controller.canMoveToNextStep());
controller.next().initialize();
controller.setValueFor("host", "host");
controller.setValueFor("port", "8080");
controller.setValueFor("path", "path");
Assert.assertTrue(controller.canMoveToNextStep());
controller.next().initialize();
}
}
}
{code}
> 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)
9 years, 1 month
[JBoss JIRA] (FORGE-2530) IndexOutOfBoundsException in IDEA when running custom command
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2530?page=com.atlassian.jira.plugin... ]
George Gastaldi reassigned FORGE-2530:
--------------------------------------
Assignee: George Gastaldi
> IndexOutOfBoundsException in IDEA when running custom command
> -------------------------------------------------------------
>
> Key: FORGE-2530
> URL: https://issues.jboss.org/browse/FORGE-2530
> Project: Forge
> Issue Type: Bug
> Components: UI - IntelliJ IDEA
> Affects Versions: 3.0.0.Alpha1
> Environment: IDEA 15 with latest forge plugin update installed
> Reporter: Claus Ibsen
> Assignee: George Gastaldi
>
> I run the Camel forge addon, where we have a multi step wizard.
> And when I click next I can get this exception from within forge itself.
> {code}
> 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.getMetadata(WizardCommandControllerImpl.java:262)
> at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.getMetadata(NoUIWizardControllerDecorator.java:207)
> at sun.reflect.GeneratedMethodAccessor1712.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
> at org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_95731ae3-f50e-4add-917c-6a0b2360542a.getMetadata(CommandController_$$_javassist_95731ae3-f50e-4add-917c-6a0b2360542a.java)
> at org.jboss.forge.plugin.idea.ui.wizard.ForgeWizardStep.getExplanation(ForgeWizardStep.java:144)
> at com.intellij.ui.wizard.WizardDialog.c(WizardDialog.java:172)
> at com.intellij.ui.wizard.WizardDialog.onStepChanged(WizardDialog.java:224)
> at com.intellij.ui.wizard.WizardModel.a(WizardModel.java:93)
> at com.intellij.ui.wizard.WizardModel.next(WizardModel.java:76)
> at com.intellij.ui.wizard.WizardAction$Next.actionPerformed(WizardAction.java:46)
> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
> at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
> at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
> at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
> at java.awt.Component.processMouseEvent(Component.java:6543)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> at java.awt.Component.processEvent(Component.java:6308)
> at java.awt.Container.processEvent(Container.java:2235)
> at java.awt.Component.dispatchEventImpl(Component.java:4899)
> at java.awt.Container.dispatchEventImpl(Container.java:2293)
> at java.awt.Component.dispatchEvent(Component.java:4721)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4897)
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4461)
> at java.awt.Container.dispatchEventImpl(Container.java:2279)
> at java.awt.Window.dispatchEventImpl(Window.java:2750)
> at java.awt.Component.dispatchEvent(Component.java:4721)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:702)
> at java.awt.EventQueue$3.run(EventQueue.java:696)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
> at java.awt.EventQueue$4.run(EventQueue.java:724)
> at java.awt.EventQueue$4.run(EventQueue.java:722)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
> at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:861)
> at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:645)
> at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:380)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
> at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
> at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
> at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
> at java.awt.Dialog.show(Dialog.java:1084)
> at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:792)
> at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:465)
> at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1637)
> at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1586)
> at org.jboss.forge.plugin.idea.ui.CommandListPopupBuilder.openWizard(CommandListPopupBuilder.java:224)
> at org.jboss.forge.plugin.idea.ui.CommandListPopupBuilder.access$300(CommandListPopupBuilder.java:54)
> at org.jboss.forge.plugin.idea.ui.CommandListPopupBuilder$3.run(CommandListPopupBuilder.java:173)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:702)
> at java.awt.EventQueue$3.run(EventQueue.java:696)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
> at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:861)
> at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
> at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:380)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> {code}
> Maybe that part of the code can be enhanced to detect that out of bounds and report a better exception or maybe its some bug in forge itself.
> To reproduce I can setup a Camel github project. And then you would need to install the camel addon, and run a camel-add-endpoint command and select the file component, and then enter a directory, and then click the next button to get this exception.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 1 month
[JBoss JIRA] (FORGE-2548) Better error message what is wrong in a custom wizard for addon developers
by Claus Ibsen (JIRA)
[ https://issues.jboss.org/browse/FORGE-2548?page=com.atlassian.jira.plugin... ]
Claus Ibsen commented on FORGE-2548:
------------------------------------
See also ticket
https://github.com/fabric8io/fabric8/issues/5374
> 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)
9 years, 1 month