java.lang.NoSuchMethodException

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.

  • NoSuchMethodException for java.lang.Class.setValue
    via by Prashanth Chandra,
  • JBoss Community / Mailing Lists
    via by Unknown author,
  • GileadRPCServiceExporter
    via gilead by huagechen
    ,
  • Re: JAX-WS Handler Support
    via by Bharath Ganesh,
  • I have problems with deploying artifact to Nexus using maven deploy goal. [INFO] [deploy:deploy] altDeploymentRepository = null [INFO] Retrieving previous build number from my-project Uploading: http://localhost/content/repositories/my-project/com/mpigulski/business-objects/1.0-SNAPSHOT/business-objects-1.0-20080903.090454-240.jar 2008-09-03 11:04:55 org.apache.commons.httpclient.HttpMethodBase processAuthenticationResponse INFO: Already tried to authenticate with 'Sonatype Nexus Repository Manager' authentication realm at localhost, but still receiving: HTTP/1.1 401 Unauthorized Last message is being repeated for a few seconds and finally I receive: [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31 seconds [INFO] Finished at: Wed Sep 03 11:05:12 CEST 2008 [INFO] Final Memory: 14M/26M [INFO] ------------------------------------------------------------------------ However, in the meantime on in Nexus server logs there is a stacktrace for every line that is repeated in client local console: INFO | jvm 1 | 2008/09/03 10:07:46 | 2008-09-03 10:07:45,963 INFO [org.restlet.Component (90226)] - 2008-09-03 10:07:45 10.5.1.12 -10.5.1.12 80 MKCOL /content/repositories/ - 405 370 - 1 http://localhost Jakarta Commons-HttpClient/2.0.2 - INFO | jvm 1 | 2008/09/03 10:07:47 | 2008-09-03 10:07:47,224 INFO [org.restlet.Component] - Basic HTTP authentication succeeded: identifier=deployment. INFO | jvm 1 | 2008/09/03 10:07:47 | 2008-09-03 10:07:47,308 INFO [org.restlet.Component (90226)] - 2008-09-03 10:07:47 10.5.1.12 -10.5.1.12 80 PUT /content/repositories/public/com/mpigulski/business-objects/1.0-SNAPSHOT/business-objects-1.0-20080903.091443-242.jar - 201 0 11979 83 http://localhost Jakarta Commons-HttpClient/2.0.2 - INFO | jvm 1 | 2008/09/03 10:07:47 | 2008-09-03 10:07:47,458 INFO [org.sonatype.nexus.rest.ApplicationContentBridge] - Couldn't find the allow method for "MKCOL" INFO | jvm 1 | 2008/09/03 10:07:47 | java.lang.NoSuchMethodException: org.sonatype.nexus.rest.ContentResourceHandler.allowMkcol() INFO | jvm 1 | 2008/09/03 10:07:47 | at java.lang.Class.getMethod(Class.java:1581) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Finder.getMethod(Finder.java:231) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Finder.getAllowMethod(Finder.java:194) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Finder.allowMethod(Finder.java:114) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Finder.handle(Finder.java:287) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Router.handle(Router.java:445) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.sonatype.nexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Application.handle(Application.java:294) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Router.handle(Router.java:445) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Router.handle(Router.java:445) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.doHandle(Filter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Filter.handle(Filter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Component.handle(Component.java:231) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.restlet.Server.handle(Server.java:282) INFO | jvm 1 | 2008/09/03 10:07:47 | at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:100) INFO | jvm 1 | 2008/09/03 10:07:47 | at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:94) INFO | jvm 1 | 2008/09/03 10:07:47 | at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:399) INFO | jvm 1 | 2008/09/03 10:07:47 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:67) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.Server.handle(Server.java:324) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) INFO | jvm 1 | 2008/09/03 10:07:47 | at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) And last but not least, there is no new snapshot jar in the repository. To fix the issue (to load a jar into the repository) I had to give all possible permissions to the deployment user, however the stacktrace in Nexus logs continues to show up.
    via by Deleted User,
    • java.lang.NoSuchMethodException: java.lang.Class.setValue(com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl) at java.lang.Class.getMethod(Class.java:1581) at com.ge.industrial.gdsn.messaging.batch.file.xml.req.MethodInvoker.invokeMethod(MethodInvoker.java:32) at com.ge.industrial.gdsn.messaging.batch.file.xml.req.RequestCreator.addToRequest(RequestCreator.java:166) at com.ge.industrial.gdsn.messaging.batch.file.xml.req.XMLItemCreator.addElement(XMLItemCreator.java:191) at com.ge.industrial.gdsn.messaging.batch.file.xml.req.XMLItemCreator.createXMLFile(XMLItemCreator.java:140) at com.ge.industrial.gdsn.messaging.manager.ItemManager.createItemXMLFile(ItemManager.java:331) at com.ge.industrial.gdsn.messaging.batch.ItemProducer.produceItems(ItemProducer.java:58) at com.ge.industrial.gdsn.messaging.batch.ItemProducer.start(ItemProducer.java:40) at com.ge.industrial.gdsn.messaging.batch.GDSNDataPoolInterface.main(GDSNDataPoolInterface.java:53)

    Users with the same issue

    Unknown User
    1 times, last one,
    Hiren Amaliyar
    4 times, last one,
    Indri Yunita
    12 times, last one,
    olle.hallin
    2 times, last one,
    kimihanif
    3 times, last one,
    92 more bugmates