Apache sling's request parameter handling | Community
Skip to main content
New Participant
November 1, 2016
Solved

Apache sling's request parameter handling

  • November 1, 2016
  • 6 replies
  • 4288 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

Hi

Please have a look at this thread:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__2hul-hi_im_usingadobe.html

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

 

Thanks and Regards

Kautuk Sahni

6 replies

Anton_Smulskiy
New Participant
November 2, 2016

Please go to the link provided by Kautuk,

It seems this is what you need.

New Participant
November 2, 2016

Hi Anton,

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

New Participant
November 2, 2016

Hi Scott,

I am using AEM 6.0

kautuk_sahni
kautuk_sahniAccepted solution
Employee
November 2, 2016

Hi

Please have a look at this thread:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__2hul-hi_im_usingadobe.html

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

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
Anton_Smulskiy
New Participant
November 1, 2016

It seems your "temporary file location" is incorrect

smacdonald2008
New Participant
November 1, 2016

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.