cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Osadchiy (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-4185) Unable to access services via browser after installation of war feature in Karaf 2.2.6
Date Tue, 20 Mar 2012 10:17:39 GMT
Unable to access services via browser after installation of war feature in Karaf 2.2.6
--------------------------------------------------------------------------------------

                 Key: CXF-4185
                 URL: https://issues.apache.org/jira/browse/CXF-4185
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.6
            Reporter: Alexander Osadchiy


After installation of war feature to the container I can't access http://localhost:8040/services
via browser.

HTTP ERROR 500
Problem accessing /services. Reason: 
 Server Error

Caused by:
java.lang.NullPointerException
 at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
 at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:127)
 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:187)
 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:115)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:166)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)
 at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)
 at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
 at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
 at org.eclipse.jetty.server.Server.handle(Server.java:349)
 at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
 at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
 at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)
 at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
 at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:619)

During installation of war feature method CXFNonSpringServlet.init(ServletConfig sc) is called.
During this call fields 'destinationRegistry' and 'bus' are null. 
So, ServletController is created with field destinationRegistry=null after CXFNonSpringServlet.createServletController(ServletConfig
servletConfig) call from init method.

After this when I try to access http://localhost:8040/services/ via browser ServletController.invoke(HttpServletRequest
request, HttpServletResponse res) is called.
And as destinationRegistry=null, then destinationRegistry.getDestinationForPath(pathInfo,
true) call causes NullPointerException.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message