Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-928

IllegalArgumentException with CLAC when UISelectMany.getValue() is called

XMLWordPrintable

    • Hide
      • In the jbossforge-plugin, add the following line of code to
        org.jboss.tools.forge.ui.ext.control.CheckboxTableControlBuilder.build(ForgeWizardPage, InputComponent<?, Object>, Composite)
      Iterable<Object> defaultValues = selectMany.getValue();
      if (defaultValues != null) {
      	for (Object object : defaultValues) {
                  ...
      	}
      }
      
      Show
      In the jbossforge-plugin, add the following line of code to org.jboss.tools.forge.ui.ext.control.CheckboxTableControlBuilder.build(ForgeWizardPage, InputComponent<?, Object>, Composite) Iterable< Object > defaultValues = selectMany.getValue(); if (defaultValues != null ) { for ( Object object : defaultValues) { ... } }

      The following exception happens when UISelectMany.getValue() is called in CheckboxTableControlBuilder (in order to know which values are already selected):

      java.lang.IllegalArgumentException: Class loader to inspect must not be null.
      	at org.jboss.forge.furnace.util.Assert.notNull(Assert.java:18)
      	at org.jboss.forge.furnace.util.ClassLoaders.containsClass(ClassLoaders.java:48)
      	at org.jboss.forge.proxy.ClassLoaderAdapterCallback.enhanceResult(ClassLoaderAdapterCallback.java:150)
      	at org.jboss.forge.proxy.ClassLoaderAdapterCallback.access$300(ClassLoaderAdapterCallback.java:30)
      	at org.jboss.forge.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:83)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
      	at org.jboss.forge.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:59)
      	at org.javassist.tmp.java.lang.Iterable_$$_javassist_2c062bdb-f227-4881-bace-b471ab43bbfa.iterator(Iterable_$$_javassist_2c062bdb-f227-4881-bace-b471ab43bbfa.java)
      

              lincolnthree Lincoln Baxter III (Inactive)
              rhn-support-ggastald George Gastaldi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: