Expand my Community achievements bar.

SOLVED

Apache sling's request parameter handling

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi

Please have a look at this thread:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// It is a bug. Please reach out to Daycare for this.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

6 Replies

Avatar

Level 10

Looking at this doc: 

https://sling.apache.org/documentation/the-sling-engine/request-parameters.html#character-encoding

Looks like this is the correct setting. What version of AEM are you using. 

Avatar

Level 3

It seems your "temporary file location" is incorrect

Avatar

Correct answer by
Administrator

Hi

Please have a look at this thread:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// It is a bug. Please reach out to Daycare for this.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 4

Hi Anton,

Could you please tell me that what I can give in "temporary file location" ?

Avatar

Level 3

Please go to the link provided by Kautuk,

It seems this is what you need.