grouper-users - Re: [grouper-users] NoSuchMethodError: convertToMultiKey
Subject: Grouper Users - Open Discussion List
List archive
- From: Yoann Delattre <>
- To: Ben Beecher <>
- Cc: " Mailing List" <>
- Subject: Re: [grouper-users] NoSuchMethodError: convertToMultiKey
- Date: Fri, 18 Sep 2020 11:58:50 +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=1600423131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LtouT3QPjBe+ooxEIBtnEFJVytuaEvuWUsZje3/7zRk=; b=exC4XRzD00hipyZRw2qWF5QKPlKuDqeJ2jMLK4Iei1yu4PsZaQwi2dQyngmu6Q+Lk64Dmd epYfY2LOx3XZgy6gdWTGiW07Z2+RQJGDeu16QCVcHm6nkZdJDrSQfnI0cxCcw8OnPOxHAR QwBKcVkG2PeNaOrCl216hbmmdrUs9q/tGOg+Sw80BuavIij/dNzPcC3e3Z0Wqen4I7WHpa LOSb4fBw5a9ife5nvfleBlCobW6y/F5FwPncieCLbzmSJ57QCzlYjcsHGufH8R5loSbvii p1G0YRviPxHUruvsOZIfKBh8qPNrhwzvvspIz6eBEECpYi8lHCYgFZhf3rb+mw==
- Arc-seal: i=1; s=dkim201910; d=ac-lille.fr; t=1600423131; a=rsa-sha256; cv=none; b=t8hAYvmr+OUnHUhDm95dSQxKCERpV9twUwbTe/HHfEIDKPs0+YMMNe2l6jxhsMdDjWG9wY Olz22EYARhDWC4eShsU8MCqYDKDSW6QofC3MiuViUHWLwnU9LlHSoTVtZgAdFV4+Pn6ANs RXD4z0iJbZcq9LDCbx+gCE8GY6yuvYBZzJb0hgy3s/18p6LinJqgw3XOA6FPMpNUoZzZA5 GCwSwE+0IBwm24qtc6PvYTtTOBE6WdiF151mxzKNhv8lEXPD/x27HCLHwhJjROWVOnWfch pWUt5XC8imssB/erPQMg0F/247Wt/nF/1Z1y0m/wISJMSHiD3PL/OXQBPr/A2w==
Thanks for your answer.
But deleted .class file doesn't means that modifications include
in the patch will be lost ?
Le 14/09/2020 à 18:40, Ben Beecher a
écrit :
convertToMultiKey appears in two places with
different signatures. We were able to fix this by removing the
SubjectHelper class file.
$ javap -classpath grouper.jar edu.internet2.middleware.grouper.subj.SubjectHelper
Compiled from "SubjectHelper.java"
public class edu.internet2.middleware.grouper.subj.SubjectHelper {
public edu.internet2.middleware.grouper.subj.SubjectHelper();
public static java.lang.String sourcesToIdsString(java.util.Collection<edu.internet2.middleware.subject.Source>);
public static org.apache.commons.collections.keyvalue.MultiKey convertToMultiKey(edu.internet2.middleware.subject.Subject);
$ javap -classpath /var/tomcat/grouperdev/webapps/grouper-ws/WEB-INF/classes/ edu.internet2.middleware.grouper.subj.SubjectHelper
Compiled from "SubjectHelper.java"
public class edu.internet2.middleware.grouper.subj.SubjectHelper {
public edu.internet2.middleware.grouper.subj.SubjectHelper();
public static java.lang.String sourcesToIdsString(java.util.Collection<edu.internet2.middleware.subject.Source>);
public static edu.internet2.middleware.grouperClient.collections.MultiKey convertToMultiKey(edu.internet2.middleware.subject.Subject);
$ rm SubjectHelper\$1.class
$ rm SubjectHelper.class
Ben
$ javap -classpath grouper.jar edu.internet2.middleware.grouper.subj.SubjectHelper
Compiled from "SubjectHelper.java"
public class edu.internet2.middleware.grouper.subj.SubjectHelper {
public edu.internet2.middleware.grouper.subj.SubjectHelper();
public static java.lang.String sourcesToIdsString(java.util.Collection<edu.internet2.middleware.subject.Source>);
public static org.apache.commons.collections.keyvalue.MultiKey convertToMultiKey(edu.internet2.middleware.subject.Subject);
$ javap -classpath /var/tomcat/grouperdev/webapps/grouper-ws/WEB-INF/classes/ edu.internet2.middleware.grouper.subj.SubjectHelper
Compiled from "SubjectHelper.java"
public class edu.internet2.middleware.grouper.subj.SubjectHelper {
public edu.internet2.middleware.grouper.subj.SubjectHelper();
public static java.lang.String sourcesToIdsString(java.util.Collection<edu.internet2.middleware.subject.Source>);
public static edu.internet2.middleware.grouperClient.collections.MultiKey convertToMultiKey(edu.internet2.middleware.subject.Subject);
$ rm SubjectHelper\$1.class
$ rm SubjectHelper.class
Ben
On Mon, Sep 14, 2020 at 10:35
AM Yoann Delattre <>
wrote:
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)
- 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.