users@glassfish.java.net

Re: Error enable-secure-admin when admin-realm configured to ...

From: <forums_at_java.net>
Date: Fri, 11 Jan 2013 15:51:04 -0600 (CST)

Hi Tim, Thanks for the prompt reply. After reading your post, I realized that
I could try increasing the log level of the server-config. Bumping the level
for the javax.enterprise.system.tools.admin logger to ALL give me a stack
track (note: I cannot paste the exact stack track - I'll transcribe it the
best I can):
javax.enterprise.system.tools.admin.com.sun.enterprise.security.admin.cli|_ThreadID=17;
_ThreadName=Thread-2;ClassName=org.glassfish.api.ActionReport;MethodName=failure;|Error
enabling secure admin org.jvnet.hk2.config.TransactionFailure:
java.lang.NullPointerException at
com.sun.enterprise.security.admin.cli.EnableSecureAdminCommand.run(EnableSecureAdminCommand.java:151)
at
com.sun.enterprise.security.admin.cli.SecureAdminCommand.execute(SecureAdminCommand.java:891)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at
com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:117)
...several other higher classes that may not be meaningful... at
java.lang.Thread.run(Unknown Source) I suspect this would be the same
stacktrace that I'd see if I attached the debugger - if you don't believe
this to be the case then I'll attach the debugger per your suggestion.
Thanks, Shawn

--
[Message sent by forum member 'javashawn']
View Post: http://forums.java.net/node/893809