[ 
https://issues.apache.org/jira/browse/FELIX-3451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254242#comment-13254242
 ] 

Fabio Lattario Fonseca commented on FELIX-3451:
-----------------------------------------------

I have just stepped on a weird behavior. I don't know if this is related to 
this JIRA anymore, but you may want to analyze this.

In the process of changing the "name" attribute to "instance.name" attribute, I 
forgot to change it in the last instance. When I started the composite bundle I 
received a strange error message:

[WARNING] comanche.backend : The 'name' (RequestAnalyzer) attribute, used as 
the instance name, is deprecated, please use the 'instance.name' attribute
[WARNING] org.apache.comanche.basicLogger.BasicLogger : The 'name' 
(RequestAnalyzer) attribute, used as the instance name, is deprecated, please 
use the 'instance.name' attribute
[WARNING] FileRH : The 'name' (RequestAnalyzer) attribute, used as the instance 
name, is deprecated, please use the 'instance.name' attribute
[ERROR] FileRH : The configuration is not acceptable : Name already used
[ERROR] comanche.requestHandler : A factory is available for the configuration 
but the configuration is not acceptable
org.apache.felix.ipojo.UnacceptableConfiguration: FileRH : Name already used : 
RequestAnalyzer
        at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:290)
        at 
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
        at 
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
        [...]

[WARNING] ErrorRH : The 'name' (RequestAnalyzer) attribute, used as the 
instance name, is deprecated, please use the 'instance.name' attribute
[ERROR] ErrorRH : The configuration is not acceptable : Name already used
[ERROR] comanche.requestHandler : A factory is available for the configuration 
but the configuration is not acceptable
org.apache.felix.ipojo.UnacceptableConfiguration: ErrorRH : Name already used : 
RequestAnalyzer
        at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:290)
        at 
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
        at 
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
        at 
org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)
       
        [...]

[ERROR] FileRH : The configuration is not acceptable : Name already used
[ERROR] comanche.requestHandler : A factory is available for the configuration 
but the configuration is not acceptable
org.apache.felix.ipojo.UnacceptableConfiguration: FileRH : Name already used : 
RequestAnalyzer
        at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:290)
        at 
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
        at 
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
        [...]

[ERROR] ErrorRH : The configuration is not acceptable : Name already used
[ERROR] comanche.requestHandler : A factory is available for the configuration 
but the configuration is not acceptable
org.apache.felix.ipojo.UnacceptableConfiguration: ErrorRH : Name already used : 
RequestAnalyzer
        at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:290)
        at 
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
        [...]

The first warning is right. I tried to use the "name" attribute when 
instantiating the "comanche.backend" composite. But the second and third 
warnings don't make sense for me. I think the errors don't make sense either, 
because I have not used the same name for more than one component or composite.

I will attach the pom.xml for the org.apache.comanche maven module for you to 
be able to reproduce the scenery when everything works and the other one, that 
produces the error above.

Thanks!
                
> "instance.name" attribute not recognized
> ----------------------------------------
>
>                 Key: FELIX-3451
>                 URL: https://issues.apache.org/jira/browse/FELIX-3451
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-composite-1.8.2
>         Environment: Mac OS X Lion 10.7.3, Java 1.6.0_31, System Bundle 
> (4.0.2), Apache Felix Bundle Repository (1.6.6), Apache Felix iPOJO 
> (1.9.0.SNAPSHOT), Apache Felix iPOJO API (1.7.0.SNAPSHOT), Apache Felix iPOJO 
> Arch Command (1.7.0.SNAPSHOT), Apache Felix iPOJO Composite (1.9.0.SNAPSHOT), 
> Apache Felix Shell Service (1.4.2), Apache Felix Shell TUI (1.4.1)
>            Reporter: Fabio Lattario Fonseca
>            Priority: Minor
>              Labels: composite, instance, ipojo, name, newbie, xml
>             Fix For: ipojo-composite-1.8.2
>
>         Attachments: bad_pom.xml, comanche_iPOJO_composite.tgz, good_pom.xml
>
>
> When using the attribute "instance.name" to give a name for a component 
> instance inside a composite, the name is not being assigned properly. On the 
> other hand, if the deprecated attribute "name" is used, the instance gets the 
> right name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to