1 Reply Latest reply on Dec 9, 2013 3:02 PM by Rafael Pestano

    Re: [forge-dev] ClassNotFoundException:      org.jboss.forge.bootstrap.Bootstrap

    George Gastaldi Master

      Rafael,

       

      please remove your ~/.forge folder and try again.

       

      On 12/09/2013 01:59 PM, Rafael Pestano wrote:

      restarted machine and now version command returns 1.4.3 but still got

      the exception:

       

      C:\>forge

      java.lang.IllegalStateException: Plugin entry.getApiVersion() must not

      be null.

              at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)

              at

      org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:300)

              at

      org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:86)

              at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:247)

              at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)

              at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:139)

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

          _____

         |  ___|__  _ __ __ _  ___

         | |_ / _ \| `__/ _` |/ _ \ 

         |  | () | | | (_| |  __/  //

         |_|  \___/|_|  \__, |\___|

                         |___/

       

        Windows? Really? Okay...

       

        $ version[]

      **ERROR** No such command: version[]

        $ version

      JBoss Forge, version - JBoss, by Red Hat, Inc. [

      http://jboss.org/forge ]

        $

       

      >

      2013/12/9 Rafael Pestano <rmpestano@gmail.com

      <mailto:rmpestano@gmail.com>>

      >

          ok im using 1.2.2 final ;(

       

          the version command prints: JBoss Forge, version -

          JBoss, by Red Hat, Inc. http://jboss.org/forge

       

          but i dont know how to change it, any ideas?

       

          thanks for the quick reply

       

      >

      >

          2013/12/9 Rafael Pestano <rmpestano@gmail.com

          <mailto:rmpestano@gmail.com>>

      >

              my forge home is C:\Pestano\forge-distribution-1.4.3.Final and

              in path i have: %FORGE_HOME%/bin

       

      >

              "The stack trace seems to indicate you're on 1.2.0.Final or

              earlier." i indeed have used forge-distribution-1.2.2.Final

              some time ago, maybe there's some dirty from early version.

              Should i clean .forge folder?

       

      >

       

              2013/12/9 Ivan St. Ivanov <ivan.st.ivanov@gmail.com

              <mailto:ivan.st.ivanov@gmail.com>>

      >

                  Hi Rafael,

       

                  Where does your $FORGE_HOME variable point to?

       

                  Cheers,

                  Ivan

       

      >

                  On Mon, Dec 9, 2013 at 4:34 PM, Vineet Reynolds Pereira

                  <vpereira@redhat.com <mailto:vpereira@redhat.com>> wrote:

       

      >

       

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

                      > From: "Rafael Pestano" <rmpestano@gmail.com

                      <mailto:rmpestano@gmail.com>>

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

                      <mailto:forge-dev@lists.jboss.org>>

                      > Sent: Monday, December 9, 2013 7:41:03 PM

                      > Subject: Re: ClassNotFoundException:

                       org.jboss.forge.bootstrap.Bootstrap

                      >

                      > Hi guys, im getting this exception too but im using

                      1.4.3-Final.

                      >

                      > Can it be related to proxy settings?

       

                      Hey Rafael,

       

                          This doesn't look like a proxy issue. Could you

                      please verify that you're indeed using 1.4.3.Final ?

       

                          The stack trace seems to indicate you're on

                      1.2.0.Final or earlier.

       

                      Thanks,

                      Vineet

       

                      >

                      >

                      > although i get the exception Forge starts and i can

                      run commands without

                      > problems:

                      >

                      > java.lang.IllegalStateException: Plugin

                      entry.getApiVersion() must not be

                      > null.

                      > at

                      org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)

                      > at

                      >

                      org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)

                      > at

                      >

                      org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)

                      > at

                      org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)

                      > at

                      org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)

                      > at

                      org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)

                      > at java.lang.Thread.run(Thread.java:724)

                      > _____

                      > | ___|__ _ __ __ _ ___

                      > | |_ / _ \| `__/ _` |/ _ \

                      > | | () | | | (_| | __/ //

                      > |_| \___/|_| \__, |\___|

                      > |___/

                      >

                      > Windows? Really? Okay...

                      >

                      > thanks in advance

                      >

                      >

                      > 2013/11/24 Ivan St. Ivanov <

                      ivan.st.ivanov@gmail.com

                      <mailto:ivan.st.ivanov@gmail.com> >

                      >

                      >

                      >

                      >

                      > Hi George,

                      >

                      > The problem was that my FORGE_HOME environment var

                      was still pointing to the

                      > 1.4 version of Forge. Sorry for disturbing!

                      >

                      > Cheers,

                      > Ivan

                      > On Nov 24, 2013 1:11 AM, "George Gastaldi" <

                      ggastald@redhat.com <mailto:ggastald@redhat.com> > wrote:

                      >

                      >

                      >

                      > This is odd. Are you running on which OS?

                      >

                      > Em 23/11/2013, às 19:19, "Ivan St. Ivanov" <

                      ivan.st.ivanov@gmail.com

                      <mailto:ivan.st.ivanov@gmail.com> >

                      > escreveu:

                      >

                      >

                      >

                      >

                      > Hi folks,

                      >

                      > I just downloaded the Forge 2 distribution from

                      >

                      https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip

                      >

                      > When I try to start it by running the forge script,

                      I get the following

                      > exception:

                      >

                      > Caused by: java.lang.ClassNotFoundException:

                      > org.jboss.forge.bootstrap.Bootstrap

                      >

                      > at

                      java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                      > at

                      java.security.AccessController.doPrivileged(Native Method)

                      > at

                      java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                      > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                      > at

                      sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                      > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                      > Could not find the main class:

                      org.jboss.forge.bootstrap.Bootstrap. Program

                      > will exit.

                      >

                      > Am I missing something?

                      >

                      > Thanks,

                      > Ivan

                      >

                      >

                      >

                      > _______________________________________________

                      > forge-dev mailing list

                      > forge-dev@lists.jboss.org

                      <mailto:forge-dev@lists.jboss.org>

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

                      >

                      > _______________________________________________

                      > forge-dev mailing list

                      > forge-dev@lists.jboss.org

                      <mailto:forge-dev@lists.jboss.org>

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

                      >

                      > _______________________________________________

                      > forge-dev mailing list

                      > forge-dev@lists.jboss.org

                      <mailto:forge-dev@lists.jboss.org>

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

                      >

                      >

                      >

                      > --

                      > Att,

                      >

                      > Rafael M. Pestano

                      >

                      > Desenvolvedor Java Cia. de Processamento de Dados do

                      Rio Grande do Sul

                      > Graduando em Ciência da Computação UFRGS

                      > http://conventionsframework.org

                      > http://rpestano.wordpress.com/

                      > @realpestano

                      >

                      > _______________________________________________

                      > forge-dev mailing list

                      > forge-dev@lists.jboss.org

                      <mailto:forge-dev@lists.jboss.org>

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

       

                      _______________________________________________

                      forge-dev mailing list

                      forge-dev@lists.jboss.org

                      <mailto:forge-dev@lists.jboss.org>

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

       

      >

       

                  _______________________________________________

                  forge-dev mailing list

                  forge-dev@lists.jboss.org <mailto:forge-dev@lists.jboss.org>

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

       

      >

      >

              --

              <http://www.advancedit.com.br/>Att,

       

              Rafael M. Pestano

       

              Desenvolvedor Java Cia. de Processamento de Dados do Rio

              Grande do Sul

              Graduando em Ciência da Computação UFRGS

              http://conventionsframework.org

              <http://conventions.github.io/home/>

              http://rpestano.wordpress.com/

              @realpestano

       

      >

      >

          --

          <http://www.advancedit.com.br/>Att,

       

          Rafael M. Pestano

       

          Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul

          Graduando em Ciência da Computação UFRGS

          http://conventionsframework.org <http://conventions.github.io/home/>

          http://rpestano.wordpress.com/

          @realpestano

       

      >

      >

      --

      <http://www.advancedit.com.br/>Att,

       

      Rafael M. Pestano

       

      Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul

      Graduando em Ciência da Computação UFRGS

      http://conventionsframework.org <http://conventions.github.io/home/>

      http://rpestano.wordpress.com/

      @realpestano

       

      >

      _______________________________________________

      forge-dev mailing list

      forge-dev@lists.jboss.org

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

       

       

        • 1. Re: [forge-dev] ClassNotFoundException:      org.jboss.forge.bootstrap.Bootstrap
          Rafael Pestano Novice

          thanks George, that was the issue.

           

          C:\Users\rafael-pestano>forge

              _____

            

          ___

          __  _ __ __ _  ___

           

          _ / _ \

          `__/ _`

          / _ \ 

           

          _

          (_)

          (_

          __/  //

           

          _

          \___/

          _

          \__,

          \___

                            

          ___/

           

          JBoss Forge, version - JBoss, by Red Hat, Inc. [

          http://forge.jboss.org ]

          ? Will you allow the Forge team to receive anonymous usage statistics for

          this instance of JBoss Forge? y

          rafael-pestano $

           

           

          2013/12/9 George Gastaldi <ggastald@redhat.com>

           

          >  Rafael,

          >

          > please remove your ~/.forge folder and try again.

          >

          >

          > On 12/09/2013 01:59 PM, Rafael Pestano wrote:

          >

          > restarted machine and now version command returns 1.4.3 but still got the

          > exception:

          >

          > C:\>forge

          > java.lang.IllegalStateException: Plugin entry.getApiVersion() must not be

          > null.

          >         at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)

          >         at

          > org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:300)

          >         at

          > org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:86)

          >         at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:247)

          >         at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)

          >         at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:139)

          >         at java.lang.Thread.run(Thread.java:724)

          >     _____

          >

          ___

          __  _ __ __ _  ___

          >

          _ / _ \

          `__/ _`

          / _ \ 

          >

          _

          (_)

          (_

          __/  //

          >

          _

          \___/

          _

          \__,

          \___

                             |___/

           

            Windows? Really? Okay...

           

            $ version[]

          **ERROR** No such command: version[]

            $ version

          JBoss Forge, version - JBoss, by Red Hat, Inc. [

          http://jboss.org/forge ]

            $

           

          >

          2013/12/9 Rafael Pestano <rmpestano@gmail.com>

           

          >>   ok im using 1.2.2 final ;(

          >>

          >>  the version command prints: JBoss Forge, version -

          >> JBoss, by Red Hat, Inc. http://jboss.org/forge

          >>

          >>  but i dont know how to change it, any ideas?

          >>

          >>  thanks for the quick reply

          >>

          >>

          >>

          >>

          >>  2013/12/9 Rafael Pestano <rmpestano@gmail.com>

          >>

          >>>  my forge home is C:\Pestano\forge-distribution-1.4.3.Final and in path

          >>> i have: %FORGE_HOME%/bin

          >>>

          >>>

          >>> "The stack trace seems to indicate you're on 1.2.0.Final or earlier." i

          >>> indeed have used forge-distribution-1.2.2.Final some time ago, maybe

          >>> there's some dirty from early version. Should i clean .forge folder?

          >>>

          >>>

          >>>

          >>> 2013/12/9 Ivan St. Ivanov <ivan.st.ivanov@gmail.com>

          >>>

          >>>  Hi Rafael,

          >>>>

          >>>>  Where does your $FORGE_HOME variable point to?

          >>>>

          >>>>  Cheers,

          >>>> Ivan

          >>>>

          >>>>

          >>>> On Mon, Dec 9, 2013 at 4:34 PM, Vineet Reynolds Pereira <

          >>>> vpereira@redhat.com> wrote:

          >>>>

          >>>>>

          >>>>>

          >>>>> -


          Original Message -


          >>>>> > From: "Rafael Pestano" <rmpestano@gmail.com>

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

          >>>>> > Sent: Monday, December 9, 2013 7:41:03 PM

          >>>>> > Subject: Re: ClassNotFoundException:

          >>>>>  org.jboss.forge.bootstrap.Bootstrap

          >>>>> >

          >>>>> > Hi guys, im getting this exception too but im using 1.4.3-Final.

          >>>>> >

          >>>>> > Can it be related to proxy settings?

          >>>>>

          >>>>>  Hey Rafael,

          >>>>>

          >>>>>     This doesn't look like a proxy issue. Could you please verify that

          >>>>> you're indeed using 1.4.3.Final ?

          >>>>>

          >>>>>     The stack trace seems to indicate you're on 1.2.0.Final or earlier.

          >>>>>

          >>>>> Thanks,

          >>>>> Vineet

          >>>>>

          >>>>> >

          >>>>> >

          >>>>> > although i get the exception Forge starts and i can run commands

          >>>>> without

          >>>>> > problems:

          >>>>> >

          >>>>> > java.lang.IllegalStateException: Plugin entry.getApiVersion() must

          >>>>> not be

          >>>>> > null.

          >>>>> > at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)

          >>>>> > at

          >>>>> >

          >>>>> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)

          >>>>> > at

          >>>>> >

          >>>>> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)

          >>>>> > at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)

          >>>>> > at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)

          >>>>> > at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)

          >>>>> > at java.lang.Thread.run(Thread.java:724)

          >>>>> > _____

          >>>>> > | ___|__ _ __ __ _ ___

          >>>>> > | |_ / _ \| `__/ _` |/ _ \

          >>>>> > | | () | | | (_| | __/ //

          >>>>> > |_| \___/|_| \__, |\___|

          >>>>> > |___/

          >>>>> >

          >>>>> > Windows? Really? Okay...

          >>>>> >

          >>>>> > thanks in advance

          >>>>> >

          >>>>> >

          >>>>> > 2013/11/24 Ivan St. Ivanov < ivan.st.ivanov@gmail.com >

          >>>>> >

          >>>>> >

          >>>>> >

          >>>>> >

          >>>>> > Hi George,

          >>>>> >

          >>>>> > The problem was that my FORGE_HOME environment var was still

          >>>>> pointing to the

          >>>>> > 1.4 version of Forge. Sorry for disturbing!

          >>>>> >

          >>>>> > Cheers,

          >>>>> > Ivan

          >>>>> > On Nov 24, 2013 1:11 AM, "George Gastaldi" < ggastald@redhat.com >

          >>>>> wrote:

          >>>>> >

          >>>>> >

          >>>>> >

          >>>>> > This is odd. Are you running on which OS?

          >>>>> >

          >>>>> > Em 23/11/2013, às 19:19, "Ivan St. Ivanov" <

          >>>>> ivan.st.ivanov@gmail.com >

          >>>>> > escreveu:

          >>>>> >

          >>>>> >

          >>>>> >

          >>>>> >

          >>>>> > Hi folks,

          >>>>> >

          >>>>> > I just downloaded the Forge 2 distribution from

          >>>>> >

          >>>>> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip

          >>>>> >

          >>>>> > When I try to start it by running the forge script, I get the

          >>>>> following

          >>>>> > exception:

          >>>>> >

          >>>>> > Caused by: java.lang.ClassNotFoundException:

          >>>>> > org.jboss.forge.bootstrap.Bootstrap

          >>>>> >

          >>>>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

          >>>>> > at java.security.AccessController.doPrivileged(Native Method)

          >>>>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

          >>>>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

          >>>>> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

          >>>>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

          >>>>> > Could not find the main class: org.jboss.forge.bootstrap.Bootstrap.

          >>>>> Program

          >>>>> > will exit.

          >>>>> >

          >>>>> > Am I missing something?

          >>>>> >

          >>>>> > Thanks,

          >>>>> > Ivan

          >>>>> >

          >>>>> >

          >>>>> >

          >>>>> > _______________________________________________

          >>>>> > 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

          >>>>> >

          >>>>> >

          >>>>> >

          >>>>> > --

          >>>>> > Att,

          >>>>> >

          >>>>> > Rafael M. Pestano

          >>>>> >

          >>>>> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do

          >>>>> Sul

          >>>>> > Graduando em Ciência da Computação UFRGS

          >>>>> > http://conventionsframework.org

          >>>>> > http://rpestano.wordpress.com/

          >>>>> > @realpestano

          >>>>> >

          >>>>> > _______________________________________________

          >>>>> > 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

          >>>>

          >>>

          >>>

          >>>

          >>> --

          >>>  <http://www.advancedit.com.br/>Att,

          >>>

          >>> Rafael M. Pestano

          >>>

          >>> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul

          >>> Graduando em Ciência da Computação UFRGS

          >>> http://conventionsframework.org <http://conventions.github.io/home/>

          >>>  http://rpestano.wordpress.com/

          >>> @realpestano

          >>>

          >>

          >>

          >>

          >> --

          >>  <http://www.advancedit.com.br/>Att,

          >>

          >> Rafael M. Pestano

          >>

          >> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul

          >> Graduando em Ciência da Computação UFRGS

          >> http://conventionsframework.org <http://conventions.github.io/home/>

          >>  http://rpestano.wordpress.com/

          >> @realpestano

          >>

          >

          >

          --

          <http://www.advancedit.com.br/>Att,

           

          Rafael M. Pestano

           

          Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul

          Graduando em Ciência da Computação UFRGS

          http://conventionsframework.org <http://conventions.github.io/home/>

          http://rpestano.wordpress.com/

          @realpestano

           

          >

          _______________________________________________

          forge-dev mailing listforge-dev@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/forge-dev

           

          >

           

          _______________________________________________

          forge-dev mailing list

          forge-dev@lists.jboss.org

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

           

           

           

           

          --

          <http://www.advancedit.com.br/>Att,

           

          Rafael M. Pestano

           

          Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul

          Graduando em Ciência da Computação UFRGS

          http://conventionsframework.org <http://conventions.github.io/home/>

          http://rpestano.wordpress.com/

          @realpestano