Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5057E9311 for ; Tue, 20 Mar 2012 14:54:03 +0000 (UTC) Received: (qmail 3716 invoked by uid 500); 20 Mar 2012 14:54:03 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 3671 invoked by uid 500); 20 Mar 2012 14:54:03 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 3663 invoked by uid 99); 20 Mar 2012 14:54:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 14:54:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 14:53:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 306A52930A for ; Tue, 20 Mar 2012 14:53:38 +0000 (UTC) Date: Tue, 20 Mar 2012 14:53:38 +0000 (UTC) From: "Daniel Kulp (Updated) (JIRA)" To: issues@cxf.apache.org Message-ID: <711960852.36563.1332255218200.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2145314319.35915.1332238659075.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CXF-4185) Unable to access services via browser after installation of war feature in Karaf 2.2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-4185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp updated CXF-4185: ----------------------------- Component/s: Transports OSGi > 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 > Components: OSGi, Transports > Affects Versions: 2.6 > Reporter: Alexander Osadchiy > Assignee: Daniel Kulp > > 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