Apache sling's request parameter handling

Avatar

Avatar

sunitac2231600

Avatar

sunitac2231600

sunitac2231600

01-11-2016

Dear All,

I have setup the Apache sling's request parameter handling in OSGI , as shown in below screenshot.

Can anybody tell me do I need to setup anything else , because I am getting below error while saving.

**************************************ERROR********************************

01.11.2016 14:21:56.885 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.sling.engine.parameters)] org.apache.sling.engine [org.apache.sling.engine.parameters(460)] The configure method has thrown an exception (java.lang.NullPointerException)
java.lang.NullPointerException: null
    at org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation (RequestParameterSupportConfigurer.java:132)
    at org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(Reque stParameterSupportConfigurer.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)
    at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
    at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)
    at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)
    at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(Singl eComponentManager.java:302)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentM anager.java:113)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManage r.java:832)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleCompone ntManager.java:799)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractCompo nentManager.java:724)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManag er.java:613)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManag er.java:552)
    at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.configurationUpdated(Configu rableComponentHolder.java:419)
    at org.apache.felix.scr.impl.config.ConfigurationSupport.configurationEvent(ConfigurationSup port.java:297)
    at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(Configurat ionManager.java:2032)
    at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationMan ager.java:2002)
    at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
    at java.lang.Thread.run(Thread.java:745)
01.11.2016 14:21:56.885 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.sling.engine.parameters)] org.apache.sling.engine [org.apache.sling.engine.parameters(460)] Failed creating the component instance; see log for reason
01.11.2016 14:21:59.270 *DEBUG* [pool-9-thread-5] com.day.cq.rewriter.linkchecker.impl.LinkInfoStorageImpl no link infos modified or deleted.

View Entire Topic

Avatar

Avatar

Anton_Smulskiy

Avatar

Anton_Smulskiy

Anton_Smulskiy

02-11-2016

Please go to the link provided by Kautuk,

It seems this is what you need.