[
https://issues.jboss.org/browse/FORGE-2703?page=com.atlassian.jira.plugin...
]
George Gastaldi commented on FORGE-2703:
----------------------------------------
It looks like the object was created in a classloader that didn't have access to
ArchetypeCatalogFactory. I remember having some issues like this when using Lambdas, but
let me try it to reproduce before assuming anything.
can no longer choose an ArchetypeCatalog via the REST API in
fabric8-forge
--------------------------------------------------------------------------
Key: FORGE-2703
URL:
https://issues.jboss.org/browse/FORGE-2703
Project: Forge
Issue Type: Bug
Reporter: James Strachan
This has been working for about a year but it seems recently this broke; seems we
can't convert the String (like "camel" or "fabric8") which are
ArchetypeCatalog's created via a forge addon from the String into the underlying
ArchetypeCatalog.
Here's the stack trace
{code}
java.lang.ClassCastException:
org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_4511e8db-4647-48b3-aa6c-b5ba9f325205
cannot be cast to org.jboss.forge.addon.maven.archetype.ArchetypeCatalogFactory
at
org.jboss.forge.addon.maven.projects.archetype.ui.ArchetypeCatalogSelectionWizardStep$1.convert(ArchetypeCatalogSelectionWizardStep.java:79)
at sun.reflect.GeneratedMethodAccessor586.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_101]
at
org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:124)[furnace-proxy-2.24.2.Final.jar:2.24.2.Final]
at
org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)[furnace-api-2.24.2.Final.jar:2.24.2.Final]
at
org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:97)[furnace-proxy-2.24.2.Final.jar:2.24.2.Final]
at
org.jboss.forge.addon.convert.Converter_$$_javassist_f8ce79f6-7527-458e-8b8d-37ea1872b873.convert(Converter_$$_javassist_f8ce79f6-7527-458e-8b8d-37ea1872b873.java)[convert-api-3.3.3.Final.jar:3.3.3.Final]
at
org.jboss.forge.addon.ui.util.InputComponents.convertToUIInputValue(InputComponents.java:205)[ui-api-3.3.3.Final.jar:3.3.3.Final]
at
org.jboss.forge.addon.ui.util.InputComponents.setSingleInputValue(InputComponents.java:118)[ui-api-3.3.3.Final.jar:3.3.3.Final]
at
org.jboss.forge.addon.ui.util.InputComponents.setValueFor(InputComponents.java:84)[ui-api-3.3.3.Final.jar:3.3.3.Final]
at
io.fabric8.forge.rest.dto.UICommands.populateController(UICommands.java:337)[fabric8-forge-core-2.3.77.jar:2.3.77]
{code}
we get this error with a snapshot or release build of fabric8-forge:
https://github.com/fabric8io/fabric8-forge
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)