Hi Lincoln,

On, SimpleExportedInstanceImpl.java#L43, throws this exception: 

java.lang.NoSuchMethodException: org.jboss.forge.addon.devtools.java.RegisterAsServiceCommand.<init>(org.jboss.forge.furnace.Furnace)

And then, on SimpleExportedInstanceImpl.java#L48, throws another exception: 

org.jboss.forge.furnace.exception.ContainerException: No services of type [org.jboss.forge.addon.ui.input.InputComponentFactory] could be found in any started addons.

The variable 'type' is a instance of Class<org.jboss.forge.addon.devtools.java.RegisterAsServiceCommand>

The variable 'addon'
org.jboss.forge.addon:dev-tools-java,2.0.0.Final +STARTED HC: 754457738

The variable 'furnace':
- org.jboss.forge.addon:maven,2.0.0.Final +STARTED HC: 1610500533
- org.jboss.forge.addon:addon-manager-spi,2.0.0.Final +STARTED HC: 748079953
- org.jboss.forge.addon:scaffold,2.0.0.Final +STARTED HC: 615545734
- org.jboss.forge.addon:shell-spi,2.0.0.Final +STARTED HC: 604104855
- org.jboss.forge.addon:dev-tools-java,2.0.0.Final +STARTED HC: 754457738
- org.jboss.forge.addon:core,2.0.0.Final +STARTED HC: 223373568
- org.jboss.forge.addon:projects,2.0.0.Final +STARTED HC: 2035098616
- org.jboss.forge.addon:addons,2.0.0.Final +STARTED HC: 1048423739
- org.jboss.forge.addon:environment,2.0.0.Final +STARTED HC: 923692046
- org.jboss.forge.addon:scaffold-faces,2.0.0.Final +STARTED HC: 1982632907
- org.jboss.forge.addon:shell,2.0.0.Final +STARTED HC: 1963251698
- org.jboss.forge.addon:templates,2.0.0.Final +STARTED HC: 1515326872
- org.jboss.forge.addon:database-tools,2.0.0.Final +STARTED HC: 1427750678
- org.jboss.forge.addon:templates-spi,2.0.0.Final +STARTED HC: 947783753
- org.jboss.forge.addon:configuration,2.0.0.Final +STARTED HC: 798571343
- org.jboss.forge.addon:facets,2.0.0.Final +STARTED HC: 332932959
- org.jboss.forge.addon:parser-xml,2.0.0.Final +STARTED HC: 930393343
- org.jboss.forge.addon:ui-spi,2.0.0.Final +STARTED HC: 1409341478
- org.jboss.forge.addon:javaee,2.0.0.Final +STARTED HC: 121940113
- org.jboss.forge.addon:parser-java,2.0.0.Final +STARTED HC: 1090167931
- org.jboss.forge.furnace.container:simple,2.0.0.Final +STARTED HC: 1217654007
- org.jboss.forge.addon:scaffold-spi,2.0.0.Final +STARTED HC: 285052131
- org.jboss.forge.addon:addon-manager,2.0.0.Final +STARTED HC: 1755001097
- org.jboss.forge.addon:dependencies,2.0.0.Final +STARTED HC: 1739223386
- org.jboss.forge.addon:convert,2.0.0.Final +STARTED HC: 57594336
- org.jboss.forge.furnace.container:cdi,2.0.0.Final +STARTED HC: 593506875
- org.jboss.forge.addon:resources,2.0.0.Final +STARTED HC: 1620364002
- org.jboss.forge.addon:text,2.0.0.Final +STARTED HC: 1292481994
- org.jboss.forge.addon:ui,2.0.0.Final +STARTED HC: 1727529185

And, that's a dump of running thread

"AeshProcess: 1@4299" prio=5 tid=0x3a nid=NA runnable
  java.lang.Thread.State: RUNNABLE
 at org.jboss.forge.furnace.container.simple.impl.SimpleExportedInstanceImpl.get(SimpleExportedInstanceImpl.java:53)
 at org.jboss.forge.furnace.impl.addons.ImportedImpl$ImportedIteratorImpl.next(ImportedImpl.java:195)
 at org.jboss.forge.addon.ui.impl.command.CommandFactoryImpl.getCommands(CommandFactoryImpl.java:38)
 - locked <0x105f> (a org.jboss.forge.addon.ui.impl.command.CommandFactoryImpl)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-1)
 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:59)
 at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
 at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75)
 at org.jboss.forge.addon.ui.impl.command.CommandFactoryImpl_$$_javassist_72cb1dee-a96a-4edf-9a11-87e8af49a0e4.getCommands(CommandFactoryImpl_$$_javassist_72cb1dee-a96a-4edf-9a11-87e8af49a0e4.java:-1)
 at org.jboss.forge.addon.shell.CommandManager.getAllCommands(CommandManager.java:64)
 at org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry.findCommand(ForgeCommandRegistry.java:123)
 at org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry.getForgeCommand(ForgeCommandRegistry.java:102)
 at org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry.getCommand(ForgeCommandRegistry.java:77)
 at org.jboss.aesh.console.AeshConsoleImpl.getCommand(AeshConsoleImpl.java:211)
 at org.jboss.aesh.console.AeshConsoleImpl.access$100(AeshConsoleImpl.java:48)
 at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:275)
 at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:41)
 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:744)

I hope that help you. And thanks so much for your attention.



On Wed, Feb 12, 2014 at 10:09 PM, Lincoln Baxter, III <lincolnbaxter@gmail.com> wrote:
Hey Pablo,

Do you have the Forge 2 source code checked out? If so, could you do me a favor? Make sure you have this project in your eclipse/IDE workspace:

https://github.com/forge/furnace-simple

Start forge with `forge --debug` and attach the debugger via the instructions here:

http://forge.jboss.org/docs/using/debugging-forge.html

Set a breakpoint in this class: 

https://github.com/forge/furnace-simple/blob/master/impl/src/main/java/org/jboss/forge/furnace/container/simple/impl/SimpleExportedInstanceImpl.java#L53

Then run the 'ls' command and your breakpoint should be hit. Could you find the exception there and tell us as much as possible about what is going on?

I know this is a lot, but I can't reproduce this issue locally.

Thanks! This would be a BIG help.

~Lincoln


On Wed, Feb 12, 2014 at 1:36 PM, Pablo Palazon <pablo.palazon@gmail.com> wrote:
Hi again,

That's the log with debug log level when I execute ls command, and produce the error.


Thanks


On Wed, Feb 12, 2014 at 5:52 PM, Lincoln Baxter, III <lincolnbaxter@gmail.com> wrote:
Pablo,

Could you also paste the results of "forge --list" from the command line (while forge is NOT running.) This should let us know what version of addons you are running. Thank you!

~Lincoln


On Wed, Feb 12, 2014 at 8:15 AM, George Gastaldi <ggastald@redhat.com> wrote:
Hi Pablo.

Does it happen everytime? Could you paste2.org your logs in ~/.forge/logs/?

Thanks

> Em 12/02/2014, às 08:24, Pablo Palazon <pablo.palazon@gmail.com> escreveu:
>
> Hi forge users,
>
> I'm using Forge 2.0.0.Final, and I have some problems with command execution on forge CLI. When I execute any command, for example 'ls', I have this reply:
>
> Exception when parsing/running: ls, Could not create instance of [org.jboss.forge.addon.devtools.java.RegisterAsServiceCommand] through reflection.
>
> That's my environment vars
>
> Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
> Maven home: /proyectos/javatools/apache-maven/apache-maven-3.1.1
> Java version: 1.7.0_51, vendor: Oracle Corporation
> Java home: /opt/java/jdk1.7.0_51/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.8.0-33-generic", arch: "amd64", family: "unix"
>
> Thanks so much in advance.
> _______________________________________________
> forge-users mailing list
> forge-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-users

_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users



--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."

_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users


_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users



--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."

_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users