[JBoss JIRA] (FORGE-2646) Setup fails and deletes pom.xml
by Heiko Braun (JIRA)
[ https://issues.jboss.org/browse/FORGE-2646?page=com.atlassian.jira.plugin... ]
Heiko Braun updated FORGE-2646:
-------------------------------
Issue Type: Bug (was: Feature Request)
> Setup fails and deletes pom.xml
> -------------------------------
>
> Key: FORGE-2646
> URL: https://issues.jboss.org/browse/FORGE-2646
> Project: Forge
> Issue Type: Bug
> Affects Versions: 3.1.1.Final
> Reporter: Heiko Braun
>
> When I run setup on an existing pom.xml it fails and purges the xml
> {noformat}
> [order]$ wildfly-swarm-setup
> ***ERROR*** Error while executing 'WildFly-Swarm: Setup'
> java.util.ConcurrentModificationException
> at org.jdom.ContentList$FilterListIterator.checkConcurrentModification(ContentList.java:940)
> at org.jdom.ContentList$FilterListIterator.nextIndex(ContentList.java:829)
> at org.jdom.ContentList$FilterListIterator.hasNext(ContentList.java:785)
> at org.jboss.forge.addon.maven.util.MavenJDOMWriter.replaceXpp3DOM(MavenJDOMWriter.java:1129)
> at org.jboss.forge.addon.maven.util.MavenJDOMWriter.findAndReplaceXpp3DOM(MavenJDOMWriter.java:247)
> at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updatePlugin(MavenJDOMWriter.java:1839)
> at org.jboss.forge.addon.maven.util.MavenJDOMWriter.iteratePlugin(MavenJDOMWriter.java:776)
> at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updateBuild(MavenJDOMWriter.java:1261)
> at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updateModel(MavenJDOMWriter.java:1693)
> at org.jboss.forge.addon.maven.util.MavenJDOMWriter.write(MavenJDOMWriter.java:2205)
> at org.jboss.forge.addon.maven.util.MavenJDOMWriter.write(MavenJDOMWriter.java:2191)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.setCurrentModel(MavenModelResourceImpl.java:122)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl.setModel(MavenFacetImpl.java:118)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl_$$_javassist_a05b86e5-eda5-48ba-9ed3-f289c398609d.setModel(MavenFacetImpl_$$_javassist_a05b86e5-eda5-48ba-9ed3-f289c398609d.java)
> at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.removePlugin(MavenPluginFacetImpl.java:737)
> at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.updatePlugin(MavenPluginFacetImpl.java:744)
> at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.updatePlugin(MavenPluginFacetImpl.java:252)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl_$$_javassist_409a8899-0b3b-450a-8769-e6e0e148d0e0.updatePlugin(MavenPluginFacetImpl_$$_javassist_409a8899-0b3b-450a-8769-e6e0e148d0e0.java)
> at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet.updatePluginConfiguration(WildFlySwarmFacet.java:226)
> at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet.setConfiguration(WildFlySwarmFacet.java:88)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet_$$_javassist_047f9b11-10e1-4359-8245-16fa41ddcf19.setConfiguration(WildFlySwarmFacet_$$_javassist_047f9b11-10e1-4359-8245-16fa41ddcf19.java)
> at org.jboss.forge.addon.swarm.ui.SetupCommand.execute(SetupCommand.java:83)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.swarm.ui.SetupCommand_$$_javassist_f47f2c42-a073-413c-9cb4-378a0f92465c.execute(SetupCommand_$$_javassist_f47f2c42-a073-413c-9cb4-378a0f92465c.java)
> at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:162)
> at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:98)
> at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:89)
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> [order]$
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months
[JBoss JIRA] (FORGE-2646) Setup fails and deletes pom.xml
by Heiko Braun (JIRA)
Heiko Braun created FORGE-2646:
----------------------------------
Summary: Setup fails and deletes pom.xml
Key: FORGE-2646
URL: https://issues.jboss.org/browse/FORGE-2646
Project: Forge
Issue Type: Feature Request
Reporter: Heiko Braun
When I run setup on an existing pom.xml it fails and purges the xml
{noformat}
[order]$ wildfly-swarm-setup
***ERROR*** Error while executing 'WildFly-Swarm: Setup'
java.util.ConcurrentModificationException
at org.jdom.ContentList$FilterListIterator.checkConcurrentModification(ContentList.java:940)
at org.jdom.ContentList$FilterListIterator.nextIndex(ContentList.java:829)
at org.jdom.ContentList$FilterListIterator.hasNext(ContentList.java:785)
at org.jboss.forge.addon.maven.util.MavenJDOMWriter.replaceXpp3DOM(MavenJDOMWriter.java:1129)
at org.jboss.forge.addon.maven.util.MavenJDOMWriter.findAndReplaceXpp3DOM(MavenJDOMWriter.java:247)
at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updatePlugin(MavenJDOMWriter.java:1839)
at org.jboss.forge.addon.maven.util.MavenJDOMWriter.iteratePlugin(MavenJDOMWriter.java:776)
at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updateBuild(MavenJDOMWriter.java:1261)
at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updateModel(MavenJDOMWriter.java:1693)
at org.jboss.forge.addon.maven.util.MavenJDOMWriter.write(MavenJDOMWriter.java:2205)
at org.jboss.forge.addon.maven.util.MavenJDOMWriter.write(MavenJDOMWriter.java:2191)
at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.setCurrentModel(MavenModelResourceImpl.java:122)
at org.jboss.forge.addon.maven.projects.MavenFacetImpl.setModel(MavenFacetImpl.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
at org.jboss.forge.addon.maven.projects.MavenFacetImpl_$$_javassist_a05b86e5-eda5-48ba-9ed3-f289c398609d.setModel(MavenFacetImpl_$$_javassist_a05b86e5-eda5-48ba-9ed3-f289c398609d.java)
at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.removePlugin(MavenPluginFacetImpl.java:737)
at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.updatePlugin(MavenPluginFacetImpl.java:744)
at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.updatePlugin(MavenPluginFacetImpl.java:252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl_$$_javassist_409a8899-0b3b-450a-8769-e6e0e148d0e0.updatePlugin(MavenPluginFacetImpl_$$_javassist_409a8899-0b3b-450a-8769-e6e0e148d0e0.java)
at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet.updatePluginConfiguration(WildFlySwarmFacet.java:226)
at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet.setConfiguration(WildFlySwarmFacet.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet_$$_javassist_047f9b11-10e1-4359-8245-16fa41ddcf19.setConfiguration(WildFlySwarmFacet_$$_javassist_047f9b11-10e1-4359-8245-16fa41ddcf19.java)
at org.jboss.forge.addon.swarm.ui.SetupCommand.execute(SetupCommand.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
at org.jboss.forge.addon.swarm.ui.SetupCommand_$$_javassist_f47f2c42-a073-413c-9cb4-378a0f92465c.execute(SetupCommand_$$_javassist_f47f2c42-a073-413c-9cb4-378a0f92465c.java)
at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:162)
at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:98)
at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:89)
at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[order]$
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months
[JBoss JIRA] (ROASTER-102) Bug when trying to implement an inner interface.
by Niklas Rammerstorfer (JIRA)
[ https://issues.jboss.org/browse/ROASTER-102?page=com.atlassian.jira.plugi... ]
Niklas Rammerstorfer updated ROASTER-102:
-----------------------------------------
Description:
I have an interface
{code:java}
public interface MyInterface
{
interface Callback{
// Some methods.
}
}
{code}
and a class MyGeneratedClass
Now I want to implement the Callback interface in MyClass, so I use
{code:java}
myGeneratedClass.addInterface(Class.forName("MyInterface$Callback");
{code}
I use a $ because in Java inner classes/interfaces are called via $ instead of .
Now instead of the expected:
{code:java}
public class MyGeneratedClass implements MyInterface.Callback{}
{code}
I get:
{code:java}
public class MyGeneratedClass implements MyInterface$Callback{}
{code}
Summary: Bug when trying to implement an inner interface. (was: I have a class called MyClass)
Environment: IDE: IntelliJ 15.3
Affects Version/s: 2.18.6.Final
> Bug when trying to implement an inner interface.
> ------------------------------------------------
>
> Key: ROASTER-102
> URL: https://issues.jboss.org/browse/ROASTER-102
> Project: Roaster
> Issue Type: Bug
> Components: API, Formatter
> Affects Versions: 2.18.6.Final
> Environment: IDE: IntelliJ 15.3
> Reporter: Niklas Rammerstorfer
>
> I have an interface
> {code:java}
> public interface MyInterface
> {
> interface Callback{
> // Some methods.
> }
> }
> {code}
> and a class MyGeneratedClass
> Now I want to implement the Callback interface in MyClass, so I use
> {code:java}
> myGeneratedClass.addInterface(Class.forName("MyInterface$Callback");
> {code}
> I use a $ because in Java inner classes/interfaces are called via $ instead of .
> Now instead of the expected:
> {code:java}
> public class MyGeneratedClass implements MyInterface.Callback{}
> {code}
> I get:
> {code:java}
> public class MyGeneratedClass implements MyInterface$Callback{}
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 8 months