java.lang.IllegalArgumentException: Only UsernamePasswordAuthenticationToken is supportedObject of class [org.acegisecurity.providers.rememberme.RememberMeAuthenticationToken] must be an instance of class org.acegisecurity.providers.UsernamePasswordAuthenticationToken

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

There's some conflicting dependencies in your pom.xml. Try adding an entry to exclude org.eclipse.jetty.aggregate from dependencies, as this seems to solve the problem.

Solutions on the web

via Jenkins JIRA by Guillem Hernandez Sola, 1 year ago
Only UsernamePasswordAuthenticationToken is supportedObject of class [org.acegisecurity.providers.rememberme.RememberMeAuthenticationToken] must be an instance of class org.acegisecurity.providers.UsernamePasswordAuthenticationToken
via Jenkins JIRA by Guillem Hernandez Sola, 1 year ago
Only UsernamePasswordAuthenticationToken is supportedObject of class [org.acegisecurity.providers.rememberme.RememberMeAuthenticationToken] must be an instance of class org.acegisecurity.providers.UsernamePasswordAuthenticationToken
via GitHub by xenoterracide
, 1 year ago
Id must be assignable to Serializable! Object of class [null] must be an instance of interface java.io.Serializable
via GitHub by xenoterracide
, 1 year ago
Id must be assignable to Serializable! Object of class [null] must be an instance of interface java.io.Serializable
via Jenkins JIRA by Bart Bialek, 1 year ago
Object of class [java.lang.String] must be an instance of interface org.acegisecurity.userdetails.UserDetails
via Jenkins JIRA by Bart Bialek, 1 year ago
Object of class [java.lang.String] must be an instance of interface org.acegisecurity.userdetails.UserDetails
java.lang.IllegalArgumentException: Only UsernamePasswordAuthenticationToken is supportedObject of class [org.acegisecurity.providers.rememberme.RememberMeAuthenticationToken] must be an instance of class org.acegisecurity.providers.UsernamePasswordAuthenticationToken
at com.cloudbees.opscenter.security.OperationsCenterSecurityRealm$Authenticator.authenticate(OperationsCenterSecurityRealm.java:588)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.