Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18506

java.lang.AbstractMethodError in hbase REST server

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.0.0-alpha-1
    • Fix Version/s: 3.0.0
    • Component/s: REST
    • Labels:
      None

      Description

      Just run it this one while testing some scripts. Basically any call to service will end up with 500 error. After some checking it looks like we have some issues with dependencies incompatibility.
      Here is more details:

      Stack trace:
      2017-08-02 20:46:25,407 WARN  [qtp422330142-30] servlet.ServletHandler: Error for /status/cluster
      java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
             	at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
             	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:298)
             	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
             	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
             	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
             	at org.apache.hadoop.hbase.rest.filter.GzipFilter.doFilter(GzipFilter.java:77)
             	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
             	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
             	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
             	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
             	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
             	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
             	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
             	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
             	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
             	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
             	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
             	at org.eclipse.jetty.server.Server.handle(Server.java:518)
             	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
             	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
             	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
             	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
             	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
             	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
             	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
             	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
             	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
             	at java.lang.Thread.run(Thread.java:745)
      
      

      and here are suspects from lib dir

      $ grep -r "UriBuilder" .
      Binary file ./javax.ws.rs-api-2.0.1.jar matches
      Binary file ./jersey-common-2.25.1.jar matches
      Binary file ./jersey-core-1.9.jar matches
      

      I have also checked hbase-1.2.6 we have only jersey-core-1.9.jar there

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                asamir Samir Ahmic
                Reporter:
                asamir Samir Ahmic
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: