You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/05/04 07:38:58 UTC

[jira] Reopened: (SLING-1516) FSResource Provider throws exception on first activate.

     [ https://issues.apache.org/jira/browse/SLING-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reopened SLING-1516:
--------------------------------------


Thanks for taking this !

I think the solution is different, though, probably: The idea of the component is that it is created by factory configurations and no component instance should be present if there is no factory configuration instance.

Thus the solution is to set the configuration policy to "require" (112.4.3) by adding

     policy="require"

to he @scr.component tag.

> FSResource Provider throws exception on first activate.
> -------------------------------------------------------
>
>                 Key: SLING-1516
>                 URL: https://issues.apache.org/jira/browse/SLING-1516
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: File System Resource Provider 0.9.2
>            Reporter: Ian Boston
>            Assignee: Ian Boston
>             Fix For: File System Resource Provider 1.0.2
>
>
> 04.05.2010 11:07:03.367 *ERROR* [SCR Component Actor] org.apache.sling.fsresource [org.apache.sling.fsprovider.internal.FsResourceProvider] The activate method has thrown an exception (java.lang.IllegalArgumentException: provider.roots property must be set) java.lang.IllegalArgumentException: provider.roots property must be set
> 	at org.apache.sling.fsprovider.internal.FsResourceProvider.activate(FsResourceProvider.java:206)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:213)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
> Seeing these when FSResource is present and not configured.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.