Improve usability of client.bat/sh
----------------------------------

                 Key: GERONIMO-4413
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4413
             Project: Geronimo
          Issue Type: Improvement
      Security Level: public (Regular issues)
          Components: application client
    Affects Versions: 2.1.3
            Reporter: Rex Wang


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to