2 Replies Latest reply on Dec 2, 2012 3:57 PM by fans_rht

    UnknownFileResource exception thrown by "entity" command

    fans_rht Newbie

      Forge 1.1.2.Final

       

      [/path/to/project] $ forge

       

      [no project] project $ set VERBOSE true

       

      [no project] project $ new-project --named quickstart --topLevelPackage com.me.quickstart --projectFolder quickstart

       

      [quickstart] quickstart $ persistence setup --provider HIBERNATE --container JBOSS_AS7

       

      (Accept all defaults)

       

      [quickstart] quickstart $ entity --named Customer --package com.me.quickstart.model

       

      Created @Entity [com.me.model.quickstart.Customer]

      ***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)

      org.jboss.forge.resources.ResourceException: [UnknownFileResource] can have no children

                at org.jboss.forge.resources.FileResource.getChild(FileResource.java:109)

                at org.jboss.forge.shell.util.PathspecParser.resolve(PathspecParser.java:232)

                at org.jboss.forge.shell.util.ResourceUtil.parsePathspec(ResourceUtil.java:68)

                at org.jboss.forge.shell.util.GeneralUtils.parseSystemPathspec(GeneralUtils.java:314)

                at org.jboss.forge.shell.ShellImpl$1.convertFrom(ShellImpl.java:176)

                at org.jboss.forge.shell.ShellImpl$1.convertFrom(ShellImpl.java:171)

                at org.jboss.forge.shell.ShellImpl$4.convertFrom(ShellImpl.java:301)

                at org.mvel2.DataConversion.convert(DataConversion.java:129)

                at org.jboss.forge.shell.command.Execution.perform(Execution.java:95)

                at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)

                at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)

                at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:818)

                at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:841)

                at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.execute(ShellImpl$Proxy$_$$_WeldClientProxy.java)

                at org.jboss.forge.spec.javaee.jpa.EntityPlugin.newEntity(EntityPlugin.java:127)

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

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

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

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

                at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)

                at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)

                at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)

                at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:818)

                at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:841)

                at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:631)

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

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

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

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

                at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

                at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)

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

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

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

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

                at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)

                at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)

                at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)

                at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)

                at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)

                at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)

                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)

                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)

                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)

                at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)

                at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)

                at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)

                at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)

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

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

      Wrote /path/to/project/quickstart/src/main/java/com/me/quickstart/model/Customer.java

       

      [quickstart] quickstart $ list-commands

       

      [FILE & RESOURCES]

      cat*                                        cd*                                         cp*

      edit*                                       find*                                       fingerprint*

      grep*                                       ls*                                         mkdir*

      mv*                                         open*                                       pick-up*

      pwd*                                        pwr*                                        rm*

      touch*                                      wc*                                        

       

       

      [OTHER]

      alias*                                      entity*                                     git clone*

      git git-checkout*                           git setup*                                  i18n add-locale*

      i18n faces-setup*                           i18n get*                                   i18n put*

      i18n remove*                                i18n setup*                                 java new-class*

      java new-enum-type*                         java new-interface*                         java*

      jms setup*                                  jstl setup*                                 jta setup*

      persistence setup*                          persistence*                                servlet setup*

      servlet*                                    soap setup*                                 unalias*

      validation setup*                          

       

       

      [PROJECT]

      build*                                      execute-java*                               maven remove-parent*

      maven set-artifactid*                       maven set-groupid*                          maven set-parent*

      maven set-version*                          mvn*                                        new-project*

      project add-dependency*                     project add-known-plugin-repository*        project add-known-repository*

      project add-managed-dependency*             project add-plugin-repository*              project add-repository*

      project find-dependency*                    project find-managed-dependency*            project install-facet*

      project list-dependencies*                  project list-facets*                        project list-managed-dependencies*

      project list-plugin-repositories*           project list-properties*                    project list-repositories*

      project remove-dependency*                  project remove-facet*                       project remove-managed-dependency*

      project remove-plugin-repository*           project remove-property*                    project remove-repository*

      project set-property*                       project*                                    setup*

      shade exclude*                              shade include*                              shade make-executable*

      shade relocate*                             shade remove*                               shade reset*

      shade setup*                                test*                                      

       

       

      [SHELL ENVIRONMENT]

      about*                                      clear*                                      echo*

      exec*                                       exit*                                       forge find-plugin*

      forge git-plugin*                           forge install-plugin*                       forge list-plugins*

      forge remove-plugin*                        forge restart*                              forge source-plugin*

      forge update*                               forge update-abort*                         forge*

      help*                                       less*                                       list-commands*

      list-config*                                list-properties*                            more*

      reset*                                      run*                                        run-url*

      set*                                        version*                                    wait*

       

       

      [UI GENERATION & SCAFFOLDING]

      list-scaffold-providers*                   

       

       

      [VERSION CONTROL]

      git*                                       

       

      (only commands in relevant scope displayed. use --all to see all commands.)

       

      We can see "field" command is beyond reach from here on.