java.lang.NoSuchMethodError

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.

  • Seeing this after updating service desk 1.2.5: {code} java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.<init>(I)V at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:65) at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:84) at org.apache.http.impl.auth.BasicSchemeFactory.newInstance(BasicSchemeFactory.java:64) at org.apache.http.auth.AuthSchemeRegistry.getAuthScheme(AuthSchemeRegistry.java:113) at org.apache.http.auth.AuthSchemeRegistry$1.create(AuthSchemeRegistry.java:149) at org.apache.http.impl.client.AuthenticationStrategyImpl.select(AuthenticationStrategyImpl.java:175) at org.apache.http.impl.client.ProxyAuthenticationStrategy.select(ProxyAuthenticationStrategy.java:43) at org.apache.http.impl.auth.HttpAuthenticator.handleAuthChallenge(HttpAuthenticator.java:154) at org.apache.http.impl.client.HttpAuthenticator.authenticate(HttpAuthenticator.java:58) at org.apache.http.impl.client.DefaultRequestDirector.createTunnelToTarget(DefaultRequestDirector.java:876) at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:781) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:614) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:380) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:229) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3398) at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1095) at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:977) at com.atlassian.analytics.client.upload.AnalyticsS3Client.getS3ObjectInputStream(AnalyticsS3Client.java:65) at com.atlassian.analytics.client.eventfilter.reader.RemoteListReader.getRemoteListObject(RemoteListReader.java:22) at com.atlassian.analytics.client.eventfilter.reader.RemoteListReader.readFilterList(RemoteListReader.java:17) at com.atlassian.analytics.client.eventfilter.parser.SimpleListParser.readSimpleFilterList(SimpleListParser.java:39) at com.atlassian.analytics.client.eventfilter.BlacklistFilter.readRemoteList(BlacklistFilter.java:52) at com.atlassian.analytics.client.upload.RemoteFilterRead.execute(RemoteFilterRead.java:27) at com.atlassian.sal.jira.scheduling.JiraPluginSchedulerService.run(JiraPluginSchedulerService.java:94) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) {code}
    via by David Yu,
  • Seeing this after updating service desk 1.2.5: {code} java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.<init>(I)V at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:65) at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:84) at org.apache.http.impl.auth.BasicSchemeFactory.newInstance(BasicSchemeFactory.java:64) at org.apache.http.auth.AuthSchemeRegistry.getAuthScheme(AuthSchemeRegistry.java:113) at org.apache.http.auth.AuthSchemeRegistry$1.create(AuthSchemeRegistry.java:149) at org.apache.http.impl.client.AuthenticationStrategyImpl.select(AuthenticationStrategyImpl.java:175) at org.apache.http.impl.client.ProxyAuthenticationStrategy.select(ProxyAuthenticationStrategy.java:43) at org.apache.http.impl.auth.HttpAuthenticator.handleAuthChallenge(HttpAuthenticator.java:154) at org.apache.http.impl.client.HttpAuthenticator.authenticate(HttpAuthenticator.java:58) at org.apache.http.impl.client.DefaultRequestDirector.createTunnelToTarget(DefaultRequestDirector.java:876) at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:781) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:614) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:380) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:229) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3398) at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1095) at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:977) at com.atlassian.analytics.client.upload.AnalyticsS3Client.getS3ObjectInputStream(AnalyticsS3Client.java:65) at com.atlassian.analytics.client.eventfilter.reader.RemoteListReader.getRemoteListObject(RemoteListReader.java:22) at com.atlassian.analytics.client.eventfilter.reader.RemoteListReader.readFilterList(RemoteListReader.java:17) at com.atlassian.analytics.client.eventfilter.parser.SimpleListParser.readSimpleFilterList(SimpleListParser.java:39) at com.atlassian.analytics.client.eventfilter.BlacklistFilter.readRemoteList(BlacklistFilter.java:52) at com.atlassian.analytics.client.upload.RemoteFilterRead.execute(RemoteFilterRead.java:27) at com.atlassian.sal.jira.scheduling.JiraPluginSchedulerService.run(JiraPluginSchedulerService.java:94) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) {code}
    via by David Yu,
  • Before releasing DSpace 5.0 we should upgrad commons-codec to a version >= 1.4. The newest version in maven central is 1.9 so I would suggest to use it. I yesterday noticed that the code to register DOIs at DataCite in the actual master branch produces the following error: Exception: org.apache.commons.codec.binary.Base64.<init>(I)V java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.<init>(I)V at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:65) at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:84) at org.apache.http.impl.auth.BasicSchemeFactory.newInstance(BasicSchemeFactory.java:64) at org.apache.http.auth.AuthSchemeRegistry.getAuthScheme(AuthSchemeRegistry.java:113) at org.apache.http.auth.AuthSchemeRegistry$1.create(AuthSchemeRegistry.java:149) at org.apache.http.impl.client.AuthenticationStrategyImpl.select(AuthenticationStrategyImpl.java:175) at org.apache.http.impl.client.TargetAuthenticationStrategy.select(TargetAuthenticationStrategy.java:43) at org.apache.http.impl.auth.HttpAuthenticator.handleAuthChallenge(HttpAuthenticator.java:154) at org.apache.http.impl.client.HttpAuthenticator.authenticate(HttpAuthenticator.java:58) at org.apache.http.impl.client.DefaultRequestDirector.handleResponse(DefaultRequestDirector.java:1057) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:515) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) at org.dspace.identifier.doi.DataCiteConnector.sendHttpRequest(DataCiteConnector.java:870) at org.dspace.identifier.doi.DataCiteConnector.sendGetRequest(DataCiteConnector.java:792) at org.dspace.identifier.doi.DataCiteConnector.sendMetadataGetRequest(DataCiteConnector.java:768) at org.dspace.identifier.doi.DataCiteConnector.isDOIReserved(DataCiteConnector.java:248) at org.dspace.identifier.doi.DataCiteConnector.updateMetadata(DataCiteConnector.java:671) at org.dspace.identifier.DOIIdentifierProvider.updateMetadataOnline(DOIIdentifierProvider.java:412) at org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:669) at org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:265) at org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:82) I found several questions and answers on Stackoverflow, resolving such issues by using commons-codec in a version >= 1.4, g.e.: http://stackoverflow.com/questions/7688644/java-lang-nosuchmethoderror-org-apache-commons-codec-binary-base64-encodebase64. This actually helped and the error above disappeared when I was compiling DSpace with commons-codec 1.9. I think the hole problem came up with upgrading commons-httpcomponents (DS-2091). The following classes in DSpace-API references commons-codec: org.dspace.eperson.EPerson, org.dspace.eperson.PasswordHash, org.dspace.content.packager/RoleIngester and some test classes. Beside dspace-api dspace-lni and dspace-sword use commons-codec as well. I use neither dspace-lni nor dspace-sword currently. So it would be great if anyone using could test it with an upgraded version of commons-codec. I think we should upgrade commons-codec as soon as possible and test it during the DSpace-5.0 testathron.
    via by Pascal-Nicolas Becker,
  • Problem with proxy authentication
    via GitHub by un1kum
    ,
  • Before releasing DSpace 5.0 we should upgrad commons-codec to a version >= 1.4. The newest version in maven central is 1.9 so I would suggest to use it. I yesterday noticed that the code to register DOIs at DataCite in the actual master branch produces the following error: Exception: org.apache.commons.codec.binary.Base64.<init>(I)V java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.<init>(I)V at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:65) at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:84) at org.apache.http.impl.auth.BasicSchemeFactory.newInstance(BasicSchemeFactory.java:64) at org.apache.http.auth.AuthSchemeRegistry.getAuthScheme(AuthSchemeRegistry.java:113) at org.apache.http.auth.AuthSchemeRegistry$1.create(AuthSchemeRegistry.java:149) at org.apache.http.impl.client.AuthenticationStrategyImpl.select(AuthenticationStrategyImpl.java:175) at org.apache.http.impl.client.TargetAuthenticationStrategy.select(TargetAuthenticationStrategy.java:43) at org.apache.http.impl.auth.HttpAuthenticator.handleAuthChallenge(HttpAuthenticator.java:154) at org.apache.http.impl.client.HttpAuthenticator.authenticate(HttpAuthenticator.java:58) at org.apache.http.impl.client.DefaultRequestDirector.handleResponse(DefaultRequestDirector.java:1057) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:515) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) at org.dspace.identifier.doi.DataCiteConnector.sendHttpRequest(DataCiteConnector.java:870) at org.dspace.identifier.doi.DataCiteConnector.sendGetRequest(DataCiteConnector.java:792) at org.dspace.identifier.doi.DataCiteConnector.sendMetadataGetRequest(DataCiteConnector.java:768) at org.dspace.identifier.doi.DataCiteConnector.isDOIReserved(DataCiteConnector.java:248) at org.dspace.identifier.doi.DataCiteConnector.updateMetadata(DataCiteConnector.java:671) at org.dspace.identifier.DOIIdentifierProvider.updateMetadataOnline(DOIIdentifierProvider.java:412) at org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:669) at org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:265) at org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:82) I found several questions and answers on Stackoverflow, resolving such issues by using commons-codec in a version >= 1.4, g.e.: http://stackoverflow.com/questions/7688644/java-lang-nosuchmethoderror-org-apache-commons-codec-binary-base64-encodebase64. This actually helped and the error above disappeared when I was compiling DSpace with commons-codec 1.9. I think the hole problem came up with upgrading commons-httpcomponents (DS-2091). The following classes in DSpace-API references commons-codec: org.dspace.eperson.EPerson, org.dspace.eperson.PasswordHash, org.dspace.content.packager/RoleIngester and some test classes. Beside dspace-api dspace-lni and dspace-sword use commons-codec as well. I use neither dspace-lni nor dspace-sword currently. So it would be great if anyone using could test it with an upgraded version of commons-codec. I think we should upgrade commons-codec as soon as possible and test it during the DSpace-5.0 testathron.
    via by Pascal-Nicolas Becker,
  • Rest client code throwing exception
    via Stack Overflow by Sam1233
    ,
    • java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.<init>(I)V at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:65) at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:84) at org.apache.http.impl.auth.BasicSchemeFactory.newInstance(BasicSchemeFactory.java:64) at org.apache.http.auth.AuthSchemeRegistry.getAuthScheme(AuthSchemeRegistry.java:113) at org.apache.http.auth.AuthSchemeRegistry$1.create(AuthSchemeRegistry.java:149) at org.apache.http.impl.client.AuthenticationStrategyImpl.select(AuthenticationStrategyImpl.java:175) at org.apache.http.impl.client.ProxyAuthenticationStrategy.select(ProxyAuthenticationStrategy.java:43) at org.apache.http.impl.auth.HttpAuthenticator.handleAuthChallenge(HttpAuthenticator.java:154) at org.apache.http.impl.client.HttpAuthenticator.authenticate(HttpAuthenticator.java:58) at org.apache.http.impl.client.DefaultRequestDirector.createTunnelToTarget(DefaultRequestDirector.java:876) at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:781) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:614) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:380) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:229) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3398) at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1095) at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:977) at com.atlassian.analytics.client.upload.AnalyticsS3Client.getS3ObjectInputStream(AnalyticsS3Client.java:65) at com.atlassian.analytics.client.eventfilter.reader.RemoteListReader.getRemoteListObject(RemoteListReader.java:22) at com.atlassian.analytics.client.eventfilter.reader.RemoteListReader.readFilterList(RemoteListReader.java:17) at com.atlassian.analytics.client.eventfilter.parser.SimpleListParser.readSimpleFilterList(SimpleListParser.java:39) at com.atlassian.analytics.client.eventfilter.BlacklistFilter.readRemoteList(BlacklistFilter.java:52) at com.atlassian.analytics.client.upload.RemoteFilterRead.execute(RemoteFilterRead.java:27) at com.atlassian.sal.jira.scheduling.JiraPluginSchedulerService.run(JiraPluginSchedulerService.java:94) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,