Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4413

Improve usability of client.bat/sh

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4, 2.2
    • application client
    • Security Level: public (Regular issues)
    • None
    • Patch Available

    Description

      Run the following command:
      > client.bat abc/not-exist-artifact/1.0/car

      It should report something like "The client abc/not-exist-artifact/1.0/car is not existed" instead of the
      following exception:

      org.apache.geronimo.kernel.config.LifecycleException: load of abc/no-exist-artifact/1.0/car failed
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.jav
      a:276)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
      at org.apache.geronimo.system.main.CommandLine.loadConfigurations(CommandLine.java:187)
      at org.apache.geronimo.system.main.CommandLine.invokeMainGBean(CommandLine.java:98)
      at org.apache.geronimo.system.main.ClientCommandLine.startClient(ClientCommandLine.java:77)
      at org.apache.geronimo.system.main.ClientCommandLine.execute(ClientCommandLine.java:63)
      at org.apache.geronimo.system.main.EmbeddedClientCommandLine.execute(EmbeddedClientCommandLine.java:43)
      at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
      at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
      at org.apache.geronimo.cli.client.ClientCLI.main(ClientCLI.java:30)
      Caused by:
      org.apache.geronimo.kernel.config.NoSuchConfigException: abc/no-exist-artifact/1.0/car
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfigurationData(SimpleConfigurationManager
      .java:476)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.jav
      a:273)
      ... 15 more

      Attachments

        1. GERONIMO-4413.patch
          1 kB
          Lei Wang

        Activity

          People

            drwoods Donald Woods
            rwonly Lei Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: