Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1466

jsapi-servlet-test example failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.Beta2, 3.0.20.Final
    • 3.0.19.Final
    • jaxrs
    • None

      java.lang.IllegalArgumentException: RESTEASY003715: path was null
      at org.jboss.resteasy.specimpl.ResteasyUriBuilder.path(ResteasyUriBuilder.java:390)
      at org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(ResourceMethodRegistry.java:273)
      at org.jboss.resteasy.core.ResourceMethodRegistry.register(ResourceMethodRegistry.java:252)
      at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:222)
      at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:194)
      at org.jboss.resteasy.jsapi.ServiceRegistry.scanRegistry(ServiceRegistry.java:99)
      at org.jboss.resteasy.jsapi.ServiceRegistry.<init>(ServiceRegistry.java:67)
      at org.jboss.resteasy.jsapi.JSAPIServlet.scanResources(JSAPIServlet.java:102)
      at org.jboss.resteasy.jsapi.JSAPIServlet.init(JSAPIServlet.java:47)
      at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612)
      at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:468)
      at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:763)
      at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:748)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Thread.java:745)
      [WARNING]
      javax.servlet.ServletException: java.lang.IllegalArgumentException: RESTEASY003715: path was null
      at org.jboss.resteasy.jsapi.JSAPIServlet.init(JSAPIServlet.java:49)
      at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612)
      at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:468)
      at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:763)
      at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:748)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.IllegalArgumentException: RESTEASY003715: path was null
      at org.jboss.resteasy.specimpl.ResteasyUriBuilder.path(ResteasyUriBuilder.java:390)
      at org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(ResourceMethodRegistry.java:273)
      at org.jboss.resteasy.core.ResourceMethodRegistry.register(ResourceMethodRegistry.java:252)
      at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:222)
      at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:194)
      at org.jboss.resteasy.jsapi.ServiceRegistry.scanRegistry(ServiceRegistry.java:99)
      at org.jboss.resteasy.jsapi.ServiceRegistry.<init>(ServiceRegistry.java:67)
      at org.jboss.resteasy.jsapi.JSAPIServlet.scanResources(JSAPIServlet.java:102)
      at org.jboss.resteasy.jsapi.JSAPIServlet.init(JSAPIServlet.java:47)
      ... 23 more
      Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.828 sec <<< FAILURE! - in org.jboss.resteasy.test.war.JSAPITest
      test(org.jboss.resteasy.test.war.JSAPITest) Time elapsed: 0.055 sec <<< FAILURE!
      java.lang.AssertionError: expected:<200> but was:<500>
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotEquals(Assert.java:834)
      at org.junit.Assert.assertEquals(Assert.java:645)
      at org.junit.Assert.assertEquals(Assert.java:631)
      at org.jboss.resteasy.test.war.JSAPITest.test(JSAPITest.java:31)

              rhn-engineering-ema Jim Ma
              rhn-engineering-ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: