[
https://issues.apache.org/jira/browse/SLING-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863637#action_12863637
]
Ian Boston commented on SLING-1516:
-----------------------------------
FSResource is configured as a ConfigurationFactory however it make not
distinction between an activate for an alias PID and the real PID.
It should look at the properties to determine why its being activated. see OSGi
4.2 Compendium v 1.1 section 115.3.1
I think a simple check for the existence of the service.factoryPid property
should identify when the activation is as a result of a configuration.
> 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.