Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Apache sling's request parameter handling

sunitac2231600
Level 4
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
kautuk_sahni
Correct answer by
Employee
Employee

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

View solution in original post

0 Replies
Anton_Smulskiy
Level 3
Level 3

It seems your "temporary file location" is incorrect

kautuk_sahni
Correct answer by
Employee
Employee

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

sunitac2231600
Level 4
Level 4

Hi Anton,

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

Anton_Smulskiy
Level 3
Level 3

Please go to the link provided by Kautuk,

It seems this is what you need.