Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
6280 | minor | always | 08-15-19 11:27 | 08-22-23 23:56 | |
|
|||||
Reporter: | nam | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 4.0.57 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0006280: Too many beans match exception for XmlAuthenticator | ||||
Description: |
(rep by K. Laskowski) Since we deployed Resin instance in AWS EC2, they started producing strange exceptions when making a request to any Servlet deployed on Resin. Please find the stack trace attached at the end of the message. The problem is, the error occurs completely randomly. We couldn't connect the occurrence of the exception with any user, container, browser, headers etc. It just happens from time to time. Until today, it stopped occurring without any changes being made to the code or environment. javax.enterprise.inject.AmbiguousResolutionException: Too many beans match, because they all have equal precedence. Beans: com.caucho.server.security.XmlAuthenticator[@Default(), @Singleton, InjectionBean] in jar:file:/usr/local/share/resin-4.0.57/lib/resin.jar!/com/caucho/server/security/ com.caucho.server.security.XmlAuthenticator[@Default(), @Singleton, InjectionBean] in jar:file:/usr/local/share/resin-4.0.57/lib/resin.jar!/com/caucho/server/security/ for InjectManager[web-app:production/webapp/default/ROOT]. You may need to use the @Alternative or <alternatives> to select one. javax.enterprise.inject.AmbiguousResolutionException: Too many beans match, because they all have equal precedence. Beans: com.caucho.server.security.XmlAuthenticator[@Default(), @Singleton, InjectionBean] in jar:file:/usr/local/share/resin-4.0.57/lib/resin.jar!/com/caucho/server/security/ com.caucho.server.security.XmlAuthenticator[@Default(), @Singleton, InjectionBean] in jar:file:/usr/local/share/resin-4.0.57/lib/resin.jar!/com/caucho/server/security/ for InjectManager[web-app:production/webapp/default/ROOT]. You may need to use the @Alternative or <alternatives> to select one. at com.caucho.config.inject.InjectManager.ambiguousException(InjectManager.java:2743) at com.caucho.config.inject.InjectManager.resolve(InjectManager.java:1893) at com.caucho.config.inject.InstanceImpl.get(InstanceImpl.java:83) at com.caucho.security.AbstractLogin.getAuthenticator(AbstractLogin.java:123) at com.caucho.security.AbstractLogin.getSingleSignon(AbstractLogin.java:140) at com.caucho.security.AbstractLogin.sessionInvalidate(AbstractLogin.java:578) at com.caucho.server.session.SessionImpl.invalidateLocal(SessionImpl.java:1353) at com.caucho.server.session.SessionImpl.removeEvent(SessionImpl.java:1186) at com.caucho.util.LruCache.remove(LruCache.java:621) at com.caucho.util.LruCache.removeTail(LruCache.java:538) at com.caucho.util.LruCache.removeLru(LruCache.java:504) at com.caucho.util.LruCache.compareAndPut(LruCache.java:328) at com.caucho.util.LruCache.putIfNew(LruCache.java:285) at com.caucho.server.session.SessionManager.createSession(SessionManager.java:1518) at com.caucho.server.http.AbstractCauchoRequest.createSession(AbstractCauchoRequest.java:733) at com.caucho.server.http.AbstractCauchoRequest.getSession(AbstractCauchoRequest.java:657) at _jsp._support__jsp._jspService(_support__jsp.java:22) at com.caucho.jsp.JavaPage.service(JavaPage.java:64) at com.caucho.jsp.Page.pageservice(Page.java:548) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:194) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156) at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:290) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:840) at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1362) at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1318) at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1302) at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1210) at com.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:1006) at com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:117) at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93) at com.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169) at com.caucho.network.listen.TcpSocketAcceptThread.run(TcpSocketAcceptThread.java:61) at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173) at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |