Posts tagged "servlet"

CQ5.5 SP2.1: IllegalArgumentException: Servlet must not be null


If you are updating your CQ5.5 installation to SP2.1 on an application server you may notice the following exception in the logs:

12.11.2012 03:20:21.683 *ERROR* [CQSE HTTP Service] org.apache.felix.http.whiteboard Failed to register servlet
java.lang.IllegalArgumentException: Servlet must not be null
    at org.apache.felix.http.base.internal.service.HttpServiceImpl.registerServlet(
    at org.apache.felix.http.whiteboard.internal.manager.ServletMapping.register(
    at org.apache.felix.http.whiteboard.internal.manager.ExtenderManager.registerAll(
    at org.apache.felix.http.whiteboard.internal.manager.ExtenderManager.setHttpService(
    at org.apache.felix.http.whiteboard.internal.tracker.HttpServiceTracker.added(

After restarting the server you may notice the following errors in the log:

12.11.2012 03:22:14.621 *ERROR* [Thread-1] bindServlet: Unexpected problem initializing component Guice provision errors:
1) Error injecting method, java.lang.IllegalStateException: Servlet already initialized
    at org.apache.shindig.gadgets.servlet.ConcatProxyServlet.setConcatUriManager(
    while locating
Caused by: java.lang.IllegalStateException: Servlet already initialized
    at org.apache.shindig.common.servlet.InjectedServlet.checkInitialized(
    at org.apache.shindig.gadgets.servlet.ConcatProxyServlet.setConcatUriManager(

12.11.2012 03:23:10.151 *ERROR* [FelixStartLevel] [] The bindStats method has thrown an exception (java.lang.NullPointerException) java.lang.NullPointerException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(
    at org.apache.felix.scr.impl.helper.BaseMethod.access$500(
    at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(


These errors occur due to the files for the CQ Servlet Engine which are still deployed.  These files should not be included when deploying CQ to an application server, and there is a step in the SP2.1 release notes describing this.


  1. Go to /crx/explorer and open the Content Explorer
  2. Go to /libs/system/install, delete the cqse-httpservice-4.1.32.jar node and save your changes
  3. Restart the instance

These steps are listed in the release notes for SP2.1 when deploying to an application server:

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 7.3/10 (3 votes cast)