org.jsecurity.authz.AuthorizationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Logged into the UI with the admin user => Select Users from the left nav => Highlight the admin user and select Delete to delete the user. Rather than getting an error message of unable to delete (or something of the sort), OR completing the deletion of auto logging me out of the application, I attempted to complete another action in the UI, and I took a 500 error. From the nexus.log: 2008-10-16 16:03:52.195 ERROR [btpool0-39:] - org.mortbay.log: /nexus/service/local/feeds/systemChanges org.jsecurity.authz.AuthorizationException: User 'admin' cannot be retrieved. at org.sonatype.jsecurity.realms.AbstractXmlAuthorizingRealm.doGetAuthorizationInfo(AbstractXmlAuthorizingRealm.java:76) at org.jsecurity.realm.AuthorizingRealm.getAuthorizationInfo(AuthorizingRealm.java:279) at org.jsecurity.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:360) at org.jsecurity.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:356) at org.sonatype.jsecurity.web.WebPlexusSecurity.isPermitted(WebPlexusSecurity.java:286) at org.jsecurity.subject.DelegatingSubject.isPermitted(DelegatingSubject.java:143) at org.jsecurity.web.filter.authz.PermissionsAuthorizationFilter.isAccessAllowed(PermissionsAuthorizationFilter.java:45) at org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFilter.isAccessAllowed(HttpVerbMappingAuthorizationFilter.java:107) at org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:145) at org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:175) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:129) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:63) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: org.sonatype.jsecurity.realms.tools.NoSuchUserException: User with id='admin' not found! at org.sonatype.jsecurity.realms.tools.DefaultConfigurationManager.readUser(DefaultConfigurationManager.java:278) at org.sonatype.jsecurity.realms.tools.ResourceMergingConfigurationManager.readUser(ResourceMergingConfigurationManager.java:245) at org.sonatype.jsecurity.realms.AbstractXmlAuthorizingRealm.doGetAuthorizationInfo(AbstractXmlAuthorizingRealm.java:72) ... 36 more
    via by Kristine O'Connor,
  • Logged into the UI with the admin user => Select Users from the left nav => Highlight the admin user and select Delete to delete the user. Rather than getting an error message of unable to delete (or something of the sort), OR completing the deletion of auto logging me out of the application, I attempted to complete another action in the UI, and I took a 500 error. From the nexus.log: 2008-10-16 16:03:52.195 ERROR [btpool0-39:] - org.mortbay.log: /nexus/service/local/feeds/systemChanges org.jsecurity.authz.AuthorizationException: User 'admin' cannot be retrieved. at org.sonatype.jsecurity.realms.AbstractXmlAuthorizingRealm.doGetAuthorizationInfo(AbstractXmlAuthorizingRealm.java:76) at org.jsecurity.realm.AuthorizingRealm.getAuthorizationInfo(AuthorizingRealm.java:279) at org.jsecurity.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:360) at org.jsecurity.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:356) at org.sonatype.jsecurity.web.WebPlexusSecurity.isPermitted(WebPlexusSecurity.java:286) at org.jsecurity.subject.DelegatingSubject.isPermitted(DelegatingSubject.java:143) at org.jsecurity.web.filter.authz.PermissionsAuthorizationFilter.isAccessAllowed(PermissionsAuthorizationFilter.java:45) at org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFilter.isAccessAllowed(HttpVerbMappingAuthorizationFilter.java:107) at org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:145) at org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:175) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:129) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:63) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: org.sonatype.jsecurity.realms.tools.NoSuchUserException: User with id='admin' not found! at org.sonatype.jsecurity.realms.tools.DefaultConfigurationManager.readUser(DefaultConfigurationManager.java:278) at org.sonatype.jsecurity.realms.tools.ResourceMergingConfigurationManager.readUser(ResourceMergingConfigurationManager.java:245) at org.sonatype.jsecurity.realms.AbstractXmlAuthorizingRealm.doGetAuthorizationInfo(AbstractXmlAuthorizingRealm.java:72) ... 36 more
    via by Kristine O'Connor,
    • org.jsecurity.authz.AuthorizationException: User 'admin' cannot be retrieved. at org.sonatype.jsecurity.realms.AbstractXmlAuthorizingRealm.doGetAuthorizationInfo(AbstractXmlAuthorizingRealm.java:76) at org.jsecurity.realm.AuthorizingRealm.getAuthorizationInfo(AuthorizingRealm.java:279) at org.jsecurity.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:360) at org.jsecurity.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:356) at org.sonatype.jsecurity.web.WebPlexusSecurity.isPermitted(WebPlexusSecurity.java:286) at org.jsecurity.subject.DelegatingSubject.isPermitted(DelegatingSubject.java:143) at org.jsecurity.web.filter.authz.PermissionsAuthorizationFilter.isAccessAllowed(PermissionsAuthorizationFilter.java:45) at org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFilter.isAccessAllowed(HttpVerbMappingAuthorizationFilter.java:107) at org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:145) at org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:175) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:129) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:63) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: org.sonatype.jsecurity.realms.tools.NoSuchUserException: User with id='admin' not found! at org.sonatype.jsecurity.realms.tools.DefaultConfigurationManager.readUser(DefaultConfigurationManager.java:278) at org.sonatype.jsecurity.realms.tools.ResourceMergingConfigurationManager.readUser(ResourceMergingConfigurationManager.java:245) at org.sonatype.jsecurity.realms.AbstractXmlAuthorizingRealm.doGetAuthorizationInfo(AbstractXmlAuthorizingRealm.java:72) ... 36 more
    No Bugmate found.