3 Replies Latest reply on May 24, 2016 3:28 PM by Jacob Carter

    "errai-setup" command fails to run in Forge

    Ehsan Zaery Moghaddam Newbie

      Hi

       

      I'm newbie in Forge and Errai. I'm trying to create a demo project as specified in Errai documentation using Forge addon. When I try to run the "errai-setup" command, it fails with following exception:

       

      [errai-forge-demo]$ errai-setup --versionSelect 3.0-SNAPSHOT --logicalModuleName org.jboss.errai.demo.App --moduleName app

      ***ERROR*** Error while executing 'Rename Module'

      java.lang.IllegalStateException: Facet type [org.jboss.errai.forge.facet.aggregate.CoreFacet] could not be installed into [c:\Projects\IntelliJ\errai-forge-demo] of type [org.jboss.forge.addon.maven.projects.MavenProject]. You may wish to check for inconsistent origin state as partial installation may have occurred.

              at org.jboss.forge.addon.facets.FacetFactoryImpl.install(FacetFactoryImpl.java:124)

              at org.jboss.forge.addon.facets.FacetFactoryImpl.install(FacetFactoryImpl.java:112)

              at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              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.facets.FacetFactoryImpl_$$_javassist_96665b12-8a98-47d3-811a-2d07183a9ddf.install(FacetFactoryImpl_$$_javassist_96665b12-8a98-47d3-811a-2d07183a9ddf.java)

              at org.jboss.errai.forge.ui.setup.ModuleRename.execute(ModuleRename.java:84)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              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.errai.forge.ui.setup.ModuleRename_$$_javassist_1bd5dc57-3cf4-49f4-99fc-958a6c99f01b.execute(ModuleRename_$$_javassist_1bd5dc57-3cf4-49f4-99fc-958a6c99f01b.java)

              at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153)

              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.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)

              at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

              at java.lang.Thread.run(Thread.java:745)

      ***ERROR*** Facet type [org.jboss.errai.forge.facet.aggregate.CoreFacet] could not be installed into [c:\Projects\IntelliJ\errai-forge-demo] of type [org.jboss.forge.addon.maven.projects.MavenProject]. You may wish to check for inconsistent origin state as partial installation may have occurred.

       

      Here is my environment configuration:

       

      JBoss Forge Version: 2.1.17.0.Final

      Errai Addon: org.jboss.errai.forge:errai-forge-addon,3.1.2.Final

      Apache Maven 3.0.4 (r1232337; 2012-01-17 12:14:56+0330)

      Maven home: E:\Programs\apache-maven-3.0.4

      Java version: 1.7.0_80, vendor: Oracle Corporation

      Java home: C:\Programs\Java\JDK1.7.0_80\jre

      Default locale: en_US, platform encoding: Cp1252

      OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

       

      I've also tried the JBoss Forge Plugin for Eclipse (using JBoss Developer Studio 8.1.0.GA) which includes Forge 2.15.2.Final and got the same results.

       

      Help me

       

      Thanks

      Ehsan