Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asadmin Exceptions #3306

Closed
fz288 opened this issue Oct 23, 2018 · 1 comment
Closed

asadmin Exceptions #3306

fz288 opened this issue Oct 23, 2018 · 1 comment

Comments

@fz288
Copy link

fz288 commented Oct 23, 2018

Description


Throwing these in together, I think they may all be related, sorry for the wall of text...

Running asadmin in interactive mode with no arguments and no domains running a NullPointerException is thrown

When trying to change-admin-password from interactive mode
Prompted for admin username
First keystroke goes to password prompt
Next keystroke throws exception

When running local interactive mode without saved credentials, domain running with non-default admin password
Prompted to accept cert
Prompted for admin username
First keystroke immediately goes to password prompt
Second keystroke throws exception

When launching in interactive mode, with a local domain running using default master password, runs fine

When launching in interactive mode, non-default admin password, with saved credentials, with a local domain running, runs fine

When running in remote interactive mode with saved credentials, runs fine

Expected Outcome

No exceptions

Current Outcome

Various exceptions, see below

Steps to reproduce (Only for bug reports)

No Domains Running

C:\payara5\glassfish\bin>asadmin
Use "exit" to exit and "help" for online help.
Exception in thread "main" java.lang.NullPointerException
at java.util.Objects.requireNonNull(Unknown Source)
at java.util.Arrays$ArrayList.(Unknown Source)
at java.util.Arrays.asList(Unknown Source)
at jline.console.completer.StringsCompleter.(StringsCompleter.java:40)
at com.sun.enterprise.admin.cli.MultimodeCommand.getAllCommandsCompleter(MultimodeCommand.ja
va:349)
at com.sun.enterprise.admin.cli.MultimodeCommand.executeCommand(MultimodeCommand.java:171)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:324)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:363)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:298)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:56)

Local interactive mode without saved credentials, domain running with non-default admin password (already accepted cert)

C:\payara5\glassfish\bin>asadmin
Use "exit" to exit and "help" for online help.
Enter admin user name> Enter admin password for user "a"> Exception in thread "main" java.io.IOErro
r: java.io.IOException: The parameter is incorrect
at java.io.Console.readPassword(Unknown Source)
at com.sun.enterprise.admin.cli.CLICommand.readPassword(CLICommand.java:1191)
at com.sun.enterprise.admin.cli.remote.RemoteCLICommand.access$1600(RemoteCLICommand.java:91
)
at com.sun.enterprise.admin.cli.remote.RemoteCLICommand$CLIRemoteAdminCommand.updateAuthenti
cation(RemoteCLICommand.java:205)
at com.sun.enterprise.admin.remote.RemoteRestAdminCommand.doHttpCommand(RemoteRestAdminComma
nd.java:1170)
at com.sun.enterprise.admin.remote.RemoteRestAdminCommand.doHttpCommand(RemoteRestAdminComma
nd.java:1008)
at com.sun.enterprise.admin.remote.RemoteRestAdminCommand.executeRemoteCommand(RemoteRestAdm
inCommand.java:759)
at com.sun.enterprise.admin.remote.RemoteRestAdminCommand.executeCommand(RemoteRestAdminComm
and.java:570)
at com.sun.enterprise.admin.cli.remote.RemoteCLICommand.executeCommand(RemoteCLICommand.java
:747)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:324)
at com.sun.enterprise.admin.cli.remote.RemoteCLICommand.execute(RemoteCLICommand.java:582)
at com.sun.enterprise.admin.cli.remote.RemoteCLICommand.executeAndReturnActionReport(RemoteC
LICommand.java:834)
at com.sun.enterprise.admin.cli.CLIUtil.getRemoteCommands(CLIUtil.java:255)
at com.sun.enterprise.admin.cli.CLIUtil.getAllCommands(CLIUtil.java:204)
at com.sun.enterprise.admin.cli.MultimodeCommand.getAllCommandsCompleter(MultimodeCommand.ja
va:349)
at com.sun.enterprise.admin.cli.MultimodeCommand.executeCommand(MultimodeCommand.java:171)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:324)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:363)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:298)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:56)
Caused by: java.io.IOException: The parameter is incorrect
at java.io.Console.echo(Native Method)
... 20 more

C:\payara5\glassfish\bin>

Local domain running with default admin password, try to change-admin-password from interactive mode

C:\payara5\glassfish\bin>asadmin
Use "exit" to exit and "help" for online help.
asadmin> change-admin-password
Enter admin user name [default: admin]>Enter the admin password> Exception in thread "main" java.io.
IOError: java.io.IOException: The parameter is incorrect
at java.io.Console.readPassword(Unknown Source)
at com.sun.enterprise.admin.cli.CLICommand.readPassword(CLICommand.java:1191)
at com.sun.enterprise.admin.cli.CLICommand.getPassword(CLICommand.java:1134)
at com.sun.enterprise.admin.cli.CLICommand.getPassword(CLICommand.java:1074)
at com.sun.enterprise.admin.servermgmt.cli.ChangeAdminPasswordCommand.validate(ChangeAdminPa
sswordCommand.java:132)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:313)
at com.sun.enterprise.admin.cli.MultimodeCommand.executeCommands(MultimodeCommand.java:274)
at com.sun.enterprise.admin.cli.MultimodeCommand.executeCommand(MultimodeCommand.java:173)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:324)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:363)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:298)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:56)
Caused by: java.io.IOException: The parameter is incorrect
at java.io.Console.echo(Native Method)
... 12 more

C:\payara5\glassfish\bin>

Environment

  • Payara Version: d875a77 (5.183+)
  • Edition: Full
  • JDK Version: Oracle 1.8.0_181
  • Operating System: Windows
@Cousjava
Copy link
Contributor

This is a known issue that has already been fixed by #3300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants