3 Replies Latest reply on Nov 11, 2014 8:59 AM by

    [forge-dev] Funny exception in generating rest endoint

    agoncal

      Hi

       

      During the HoL one guy had this problem (on windows) generating REST

      endpoints. The generated code is ok, and everything works fine, but here is

      the stack trace

       

       

      -


      Forwarded message -


      From: Ilya Masharov <ilya.masharov@gmail.com>

      Date: 2014-11-11 10:30 GMT+01:00

      Subject: Forge stacktrace

      To: antonio.goncalves@gmail.com

       

       

       

      11:29:22,655 SEVERE

      (AeshProcess: 45) Error while notifying listeners:

      java.lang.ClassCastException: java.util.ArrayList cannot be cast to

      org.jboss.forge.addon.resource.FileResource

       

      at

      org.jboss.forge.addon.projects.Projects.getSelectedProject(Projects.java:37)

       

      at

      org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener.postCommandExecuted(ProjectBuildStatusListener.java:41)

       

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

       

      at

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

       

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

       

      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.projects.ui.ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.postCommandExecuted(ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.java)

       

      at

      org.jboss.forge.addon.ui.impl.controller.AbstractCommandController.firePostCommandExecuted(AbstractCommandController.java:144)

       

      at

      org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:89)

       

      at

      org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)

       

      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:1142)

       

      at

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

       

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

       

       

       

      --

      Antonio Goncalves (antonio.goncalves@gmail.com)

      Software architect

       

      Web site : www.antoniogoncalves.org

      Blog: agoncal.wordpress.com

      Feed: feeds2.feedburner.com/AntonioGoncalves

      Paris JUG leader : www.parisjug.org

      LinkedIn: www.linkedin.com/in/agoncal

       

      _______________________________________________

      cdi-dev mailing list

      cdi-dev@lists.jboss.org

      https://lists.jboss.org/mailman/listinfo/cdi-dev

       

      Note that for all code provided on this list, the provider licenses the

      code under the Apache License, Version 2 (

      http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas

      provided on this list, the provider waives all patent and other

      intellectual property rights inherent in such information.

       

       

       

      --

      Antonio Goncalves

      Software architect, Java Champion and Pluralsight author

       

      Web site <http://www.antoniogoncalves.org> | Twitter

      <http://twitter.com/agoncal> | LinkedIn <http://www.linkedin.com/in/agoncal> |

      Pluralsight

      <http://pluralsight.com/training/Authors/Details/antonio-goncalves> | Paris

      JUG <http://www.parisjug.org> | Devoxx France <http://www.devoxx.fr>

       

        • 1. Re: [forge-dev] Funny exception in generating rest endoint
          gastaldi

          I've seen that exception before.

           

          He is probably using an old Forge version. Ask him to delete the ~/.forge directory and install the latest version.

           

           

          Em 11/11/2014, às 11:08, Antonio Goncalves <antonio.goncalves@gmail.com> escreveu:

           

          Hi

           

          During the HoL one guy had this problem (on windows) generating REST endpoints. The generated code is ok, and everything works fine, but here is the stack trace

           

           

          ---------- Forwarded message ----------

          From: Ilya Masharov <ilya.masharov@gmail.com>

          Date: 2014-11-11 10:30 GMT+01:00

          Subject: Forge stacktrace

          To: antonio.goncalves@gmail.com

           

           

           

          11:29:22,655 SEVERE (AeshProcess: 45) Error while notifying listeners: java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.jboss.forge.addon.resource.FileResource

               at org.jboss.forge.addon.projects.Projects.getSelectedProject(Projects.java:37)

               at org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener.postCommandExecuted(ProjectBuildStatusListener.java:41)

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

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

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

               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.projects.ui.ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.postCommandExecuted(ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.java)

               at org.jboss.forge.addon.ui.impl.controller.AbstractCommandController.firePostCommandExecuted(AbstractCommandController.java:144)

               at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:89)

               at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)

               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:1142)

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

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

           

           

           

          --

          Antonio Goncalves (antonio.goncalves@gmail.com)

          Software architect

           

          Web site : www.antoniogoncalves.org

          Blog: agoncal.wordpress.com

          Feed: feeds2.feedburner.com/AntonioGoncalves

          Paris JUG leader : www.parisjug.org

          LinkedIn: www.linkedin.com/in/agoncal

           

          _______________________________________________

          cdi-dev mailing list

          cdi-dev@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/cdi-dev

           

          Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.

           

           

           

          --

          Antonio Goncalves

          Software architect, Java Champion and Pluralsight author

           

          Web site | Twitter | LinkedIn | Pluralsight | Paris JUG | Devoxx France

          _______________________________________________

          forge-dev mailing list

          forge-dev@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/forge-dev

           

          • 2. Re: [forge-dev] Funny exception in generating rest endoint

             

            This looks very much similar to https://issues.jboss.org/browse/FORGE-2017 and it should have been fixed in 2.11.0. Any idea, what version of Forge was used?

             

             

            -


            Original Message -


            From: "Antonio Goncalves" <antonio.goncalves@gmail.com>

            To: forge-dev@lists.jboss.org

            Sent: Tuesday, November 11, 2014 6:03:25 PM

            Subject: Funny exception in generating rest endoint

             

            Hi

             

            During the HoL one guy had this problem (on windows) generating REST

            endpoints. The generated code is ok, and everything works fine, but here is

            the stack trace

             

             

            ---------- Forwarded message ----------

            From: Ilya Masharov < ilya.masharov@gmail.com >

            Date: 2014-11-11 10:30 GMT+01:00

            Subject: Forge stacktrace

            To: antonio.goncalves@gmail.com

             

             

             

             

             

             

             

            11:29:22,655 SEVERE

            (AeshProcess: 45) Error while notifying listeners:

            java.lang.ClassCastException: java.util.ArrayList cannot be cast to

            org.jboss.forge.addon.resource.FileResource

             

            at

            org.jboss.forge.addon.projects.Projects.getSelectedProject(Projects.java:37)

             

            at

            org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener.postCommandExecuted(ProjectBuildStatusListener.java:41)

             

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

             

            at

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

             

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

             

            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.projects.ui.ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.postCommandExecuted(ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.java)

             

            at

            org.jboss.forge.addon.ui.impl.controller.AbstractCommandController.firePostCommandExecuted(AbstractCommandController.java:144)

             

            at

            org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:89)

             

            at

            org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)

             

            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:1142)

             

            at

            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

             

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

             

             

             

            --

            Antonio Goncalves ( antonio.goncalves@gmail.com )

            Software architect

             

            Web site : www.antoniogoncalves.org

            Blog: agoncal.wordpress.com

            Feed: feeds2.feedburner.com/AntonioGoncalves

            Paris JUG leader : www.parisjug.org

            LinkedIn: www.linkedin.com/in/agoncal

             

            _______________________________________________

            cdi-dev mailing list

            cdi-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/cdi-dev

             

            Note that for all code provided on this list, the provider licenses the code

            under the Apache License, Version 2 (

            http://www.apache.org/licenses/LICENSE-2.0.html ). For all other ideas

            provided on this list, the provider waives all patent and other intellectual

            property rights inherent in such information.

             

             

             

            --

            Antonio Goncalves

            Software architect, Java Champion and Pluralsight author

             

            Web site | Twitter | LinkedIn | Pluralsight | Paris JUG | Devoxx France

             

            _______________________________________________

            forge-dev mailing list

            forge-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/forge-dev

            _______________________________________________

            forge-dev mailing list

            forge-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/forge-dev

             

            • 3. Re: [forge-dev] Funny exception in generating rest endoint

               

              Never mind. I can see the version of Forge used, was 2.10.1 from the stacktrace.

               

              -


              Original Message -


              From: "Vineet Reynolds Pereira" <vpereira@redhat.com>

              To: "forge-dev List" <forge-dev@lists.jboss.org>

              Sent: Tuesday, November 11, 2014 7:27:37 PM

              Subject: Re: Funny exception in generating rest endoint

               

               

               

              This looks very much similar to https://issues.jboss.org/browse/FORGE-2017

              and it should have been fixed in 2.11.0. Any idea, what version of Forge was

              used?

               

               

              ----- Original Message -----

              From: "Antonio Goncalves" <antonio.goncalves@gmail.com>

              To: forge-dev@lists.jboss.org

              Sent: Tuesday, November 11, 2014 6:03:25 PM

              Subject: Funny exception in generating rest endoint

               

              Hi

               

              During the HoL one guy had this problem (on windows) generating REST

              endpoints. The generated code is ok, and everything works fine, but here is

              the stack trace

               

               

              ---------- Forwarded message ----------

              From: Ilya Masharov < ilya.masharov@gmail.com >

              Date: 2014-11-11 10:30 GMT+01:00

              Subject: Forge stacktrace

              To: antonio.goncalves@gmail.com

               

               

               

               

               

               

               

              11:29:22,655 SEVERE

              (AeshProcess: 45) Error while notifying listeners:

              java.lang.ClassCastException: java.util.ArrayList cannot be cast to

              org.jboss.forge.addon.resource.FileResource

               

              at

              org.jboss.forge.addon.projects.Projects.getSelectedProject(Projects.java:37)

               

              at

              org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener.postCommandExecuted(ProjectBuildStatusListener.java:41)

               

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

               

              at

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

               

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

               

              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.projects.ui.ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.postCommandExecuted(ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.java)

               

              at

              org.jboss.forge.addon.ui.impl.controller.AbstractCommandController.firePostCommandExecuted(AbstractCommandController.java:144)

               

              at

              org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:89)

               

              at

              org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)

               

              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:1142)

               

              at

              java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

               

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

               

               

               

              --

              Antonio Goncalves ( antonio.goncalves@gmail.com )

              Software architect

               

              Web site : www.antoniogoncalves.org

              Blog: agoncal.wordpress.com

              Feed: feeds2.feedburner.com/AntonioGoncalves

              Paris JUG leader : www.parisjug.org

              LinkedIn: www.linkedin.com/in/agoncal

               

              _______________________________________________

              cdi-dev mailing list

              cdi-dev@lists.jboss.org

              https://lists.jboss.org/mailman/listinfo/cdi-dev

               

              Note that for all code provided on this list, the provider licenses the

              code

              under the Apache License, Version 2 (

              http://www.apache.org/licenses/LICENSE-2.0.html ). For all other ideas

              provided on this list, the provider waives all patent and other

              intellectual

              property rights inherent in such information.

               

               

               

              --

              Antonio Goncalves

              Software architect, Java Champion and Pluralsight author

               

              Web site | Twitter | LinkedIn | Pluralsight | Paris JUG | Devoxx France

               

              _______________________________________________

              forge-dev mailing list

              forge-dev@lists.jboss.org

              https://lists.jboss.org/mailman/listinfo/forge-dev

              _______________________________________________

              forge-dev mailing list

              forge-dev@lists.jboss.org

              https://lists.jboss.org/mailman/listinfo/forge-dev

               

              _______________________________________________

              forge-dev mailing list

              forge-dev@lists.jboss.org

              https://lists.jboss.org/mailman/listinfo/forge-dev