Posts tagged "IllegalArgumentException"

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.0/10 (2 votes cast)

CQ5.5 SP1: MalformedPathException: ‘:redirect’ is not a valid path. Prefix must not be empty


If you have updated to CQ5.5 Update 1 and you attempt to access a user profile page, for example the admin profile, as follows:


you will see the following exception in the error.log:

*ERROR* GET /home/users/a/admin/profile.form.html/content/geometrixx/en/toolbar/profiles/edit HTTP/1.1] Exception:

Caused by: java.lang.IllegalArgumentException: javax.jcr.RepositoryException: Failed to resolve path :redirect relative to node /home/users/a/admin/profile

Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: ‘:redirect’ is not a valid path. Prefix must not be empty


This issue is caused by a regression in the 2.1 version of Sling which has been integrated with CQ5.5 SP1:

The issue does not occur with the 2.0.10 version of Sling included with CQ5.5.


This issue will be resolved in the next release of CQ5.5 SP2.

reference: (37322/CQ5-18799)

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 10.0/10 (1 vote cast)