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

Invalid Login in deployer should not print the stack trace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Cannot Reproduce
    • 1.0-M4
    • 1.0-M5
    • None
    • None
    • All environments

    Description

      The deployer should not print out the following stack trace for invalid logins caused by null/bad Username/Password. Just an invalid login message should be enough.

      Username:
      Password:
      Error: Unable to connect to server

      org.apache.geronimo.deployment.plugin.factories.AuthenticationFailedException: Invalid login.
      at org.apache.geronimo.deployment.plugin.factories.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryI
      mpl.java:87)
      at javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(DeploymentFactoryManag
      er.java:109)
      at org.apache.geronimo.deployment.cli.ServerConnection.tryToConnect(ServerConnection.java:182)
      at org.apache.geronimo.deployment.cli.ServerConnection.doAuthPromptAndRetry(ServerConnection.java:238)
      at org.apache.geronimo.deployment.cli.ServerConnection.tryToConnect(ServerConnection.java:185)
      at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:147)
      at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:111)
      at org.apache.geronimo.deployment.cli.DeployTool.main(DeployTool.java:254)
      Caused by: java.lang.SecurityException: Invalid login
      at org.apache.geronimo.jmxremoting.Authenticator.authenticate(Authenticator.java:61)
      at javax.management.remote.rmi.RMIServerImpl.newClient(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
      at sun.rmi.transport.Transport$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
      at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
      at sun.rmi.server.UnicastRef.invoke(Unknown Source)
      at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
      at javax.management.remote.rmi.RMIConnector.getConnection(Unknown Source)
      at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
      at javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
      at org.apache.geronimo.deployment.plugin.factories.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryI
      mpl.java:81)
      ... 7 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            akulshre Anita Kulshreshtha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: