grouper-users - Re: [grouper-users] NoSuchMethodError: convertToMultiKey
Subject: Grouper Users - Open Discussion List
List archive
- From: Yoann Delattre <>
- To: Ben Beecher <>, " Mailing List" <>
- Subject: Re: [grouper-users] NoSuchMethodError: convertToMultiKey
- Date: Mon, 14 Sep 2020 16:35:05 +0200
- Arc-authentication-results: i=1; smtp.ac-lille.fr; auth=pass
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ac-lille.fr; s=dkim201910; t=1600094105; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hOMKDfqfI8HySNjLrqZa3NHHMhs3VXquNAUUXqTwU7E=; b=e35T+NpRkTiOOgAwPcfBp8tUKiEczNbVdAQPdZJwM9gsr7nMhVALm9LBubogiEHjjgfKqQ JCciMuQIuCqquIaKdaZlJZMA9JVjR3uzpLSWmckyuyZRKQKisxiKTx1B1arBZrWHTQNGHG QvLyY0qlKtCD3FqPhlGG1NCqLIiX0JG6l0qBtVaoYoXWmQPMsY5s4Y/xyJSyQPljAW4q6A JdHacr+NweR9ZHRkrs3R7Oi/+4c8B6i19A7yHc4vs0W+K7Gg/jhKJpCiDFSuc0/qEBUawH ZMloIFCdk33YBnd2i/vOhr+F6o3x0ET05FZQKWyPXJcKjl1knSK4Pu3zucZlKw==
- Arc-seal: i=1; s=dkim201910; d=ac-lille.fr; t=1600094105; a=rsa-sha256; cv=none; b=FFtbWHymCbknBm8bDGvmgKYHuG47ohTtpr9B+FmIttGnQNaSRDa1c8nhKy+JI+Omij6pmR t8lF1TDyyMfPc4ZHT0Lc09+rGY4ZZ5B53c9t4Q2cHuMw9YwB3DJHyTi86pUdVjfXeefn2L XBbVXgMNSryHB77poYk/Qt0njQymdqYpjAmnnE5maA5wS4CsN7jU9tVZxEOTJKgt4jJm5W EmLCPAvhzHMKgwRSMj4r1hFuGBkgfXOwg6dgwzQWRl1q8DJ8ieQ4lqDHnfsUhQRyBM3N5e Zpu3h9D6A9JFVm6ymAoRqS47gLqCow/xeHXp7aM6NPc4PrqRcn5mx8VHxe8rCw==
Hello,
Just ran into the same issue (2.4 latest patches). I think the
problem came from this
commit and the modification of the import for MultiKey
class.
Any solution ?
Thanks !
Regards,
Yoann.
Le 28/07/2020 à 21:00, Ben Beecher a
écrit :
I am using Grouper 2.4 with all recent patches
installed. I get an error when I try to call the GetSubjects
method using the Web Service.
java.lang.NoSuchMethodError: edu.internet2.middleware.grouper.subj.SubjectHelper.convertToMultiKey(Ledu/internet2/middleware/subject/Subject;)Lorg/apache/commons/collections/keyvalue/MultiKey;
I see this source file contains getSubjects() which calls convertToMultiKey(subject)
grouper-ws/grouper-ws/src/grouper-ws/edu/internet2/middleware/grouper/ws/GrouperServiceLogic.java
I see that convertToMultiKey() is here in the Tomcat directory
$ grep convertToMultiKey /var/tomcat/grouperdev/webapps/grouper-ws/WEB-INF/classes/edu/internet2/middleware/grouper/subj/SubjectHelper.java
public static MultiKey convertToMultiKey(Subject subject) {
so it is strange that the method is not found by the Web Service. Any advice would be appreciated.
Ben Beecher
-----
Here is the stack trace
28-Jul-2020 14:32:41.674 SEVERE [ajp-nio-127.0.0.1-8009-exec-4] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [RestServlet] in context with path [/grouper-ws] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoSuchMethodError: edu.internet2.middleware.grouper.subj.SubjectHelper.convertToMultiKey(Ledu/internet2/middleware/subject/Subject;)Lorg/apache/commons/collections/keyvalue/MultiKey;
at edu.internet2.middleware.grouper.ws.GrouperServiceLogic.getSubjects(GrouperServiceLogic.java:5077)
at edu.internet2.middleware.grouper.ws.coresoap.GrouperService.getSubjects(GrouperService.java:2668)
at edu.internet2.middleware.grouper.ws.rest.GrouperServiceRest.getSubjects(GrouperServiceRest.java:1433)
at edu.internet2.middleware.grouper.ws.rest.method.GrouperWsRestGet$8.service(GrouperWsRestGet.java:432)
at edu.internet2.middleware.grouper.ws.rest.method.GrouperRestHttpMethod$1.service(GrouperRestHttpMethod.java:57)
at edu.internet2.middleware.grouper.ws.rest.GrouperRestServlet.service(GrouperRestServlet.java:202)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:969)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:479)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
java.lang.NoSuchMethodError: edu.internet2.middleware.grouper.subj.SubjectHelper.convertToMultiKey(Ledu/internet2/middleware/subject/Subject;)Lorg/apache/commons/collections/keyvalue/MultiKey;
I see this source file contains getSubjects() which calls convertToMultiKey(subject)
grouper-ws/grouper-ws/src/grouper-ws/edu/internet2/middleware/grouper/ws/GrouperServiceLogic.java
I see that convertToMultiKey() is here in the Tomcat directory
$ grep convertToMultiKey /var/tomcat/grouperdev/webapps/grouper-ws/WEB-INF/classes/edu/internet2/middleware/grouper/subj/SubjectHelper.java
public static MultiKey convertToMultiKey(Subject subject) {
so it is strange that the method is not found by the Web Service. Any advice would be appreciated.
Ben Beecher
-----
Here is the stack trace
28-Jul-2020 14:32:41.674 SEVERE [ajp-nio-127.0.0.1-8009-exec-4] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [RestServlet] in context with path [/grouper-ws] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoSuchMethodError: edu.internet2.middleware.grouper.subj.SubjectHelper.convertToMultiKey(Ledu/internet2/middleware/subject/Subject;)Lorg/apache/commons/collections/keyvalue/MultiKey;
at edu.internet2.middleware.grouper.ws.GrouperServiceLogic.getSubjects(GrouperServiceLogic.java:5077)
at edu.internet2.middleware.grouper.ws.coresoap.GrouperService.getSubjects(GrouperService.java:2668)
at edu.internet2.middleware.grouper.ws.rest.GrouperServiceRest.getSubjects(GrouperServiceRest.java:1433)
at edu.internet2.middleware.grouper.ws.rest.method.GrouperWsRestGet$8.service(GrouperWsRestGet.java:432)
at edu.internet2.middleware.grouper.ws.rest.method.GrouperRestHttpMethod$1.service(GrouperRestHttpMethod.java:57)
at edu.internet2.middleware.grouper.ws.rest.GrouperRestServlet.service(GrouperRestServlet.java:202)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:969)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:479)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
- Re: [grouper-users] NoSuchMethodError: convertToMultiKey, Yoann Delattre, 09/14/2020
- Re: [grouper-users] NoSuchMethodError: convertToMultiKey, Ben Beecher, 09/14/2020
- Re: [grouper-users] NoSuchMethodError: convertToMultiKey, Yoann Delattre, 09/18/2020
- Re: [grouper-users] NoSuchMethodError: convertToMultiKey, Yoann Delattre, 09/18/2020
- Re: [grouper-users] NoSuchMethodError: convertToMultiKey, Ben Beecher, 09/14/2020
Archive powered by MHonArc 2.6.19.