cancel
Showing results for 
Search instead for 
Did you mean: 

Bean property 'nodeService' is not writable

dude666
Champ in-the-making
Champ in-the-making
Hello,

I'am trying to install a another indexer object.
firstly, I just try to execute a method of my class :
this is my indexer class :

public class FultyIndexerImpl implements FultyIndexer {
        private static Logger s_logger = Logger.getLogger(FultyIndexerImpl.class);
    private NodeService nodeService;
    private DictionaryService dictionaryService;
    public void setDictionaryService(DictionaryService dictionaryService)
    {
        this.dictionaryService = dictionaryService;
    }
    private ContentService contentService;

     public FultyIndexerImpl() {
    }
   
     public void createNode(ChildAssociationRef relationshipRef) {
        s_logger.debug("fulty creer noeud" + relationshipRef.getChildRef());
    }
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

and this is my core-service-content.xml file :


    <bean id="categoryService" class="org.alfresco.repo.service.StoreRedirectorProxyFactory">
        <property name="proxyInterface">
            <value>org.alfresco.service.cmr.search.CategoryService</value>
        </property>
        <property name="defaultBinding">
            <ref bean="luceneCategoryService"></ref>
        </property>
        <property name="redirectedProtocolBindings">
            <map>
                <entry key="workspace">
                    <ref bean="luceneCategoryService"></ref>
                </entry>
                <entry key="versionStore">
                    <ref bean="luceneCategoryService"></ref>
                </entry>
            </map>
        </property>
    </bean>
    <!– Indexer and searchers for lkm –>
    <bean id="fultyIndexerAndSearcherFactory"
       class="org.alfresco.repo.search.fulty.impl.FultyIndexerAndSearcherFactory">
        <property name="nodeService">
            <ref bean="nodeService" />
        </property>
        <property name="dictionaryService">
            <ref bean="dictionaryService" />
        </property>
        <property name="nameSpaceService">
            <ref bean="namespaceService" />
        </property>
        <property name="contentService">
            <ref bean="contentService" />
        </property>
        <property name="queryRegister">
            <ref bean="queryRegisterComponent" />
        </property>
    </bean>   
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

but, when I start alfresco, I have this log :


ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Can't resolve reference to bean 'authenticationComponent' while setting property 'authenticationComponent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponent' defined in class path resource [alfresco/authentication-services-context.xml]: Can't
resolve reference to bean 'authenticationComponentImpl' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponentImpl' defined in class path resource [alfresco/authentication-services-context.xml]: Can't resolve reference to bean 'authenticationDao' while setting property 'authenticationDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationDao' defined in class path resource [alfresco/authentication-services-context.xml]: Can't resolve reference to bean 'searchService' while setting property 'searchService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchService' defined in class path resource [alfresco/core-services-context.xml]: Can't resolve reference to bean 'indexerAndSearcherFactory' while setting property 'indexerAndSearcherFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Can't resolve reference to bean 'fultyIndexerAndSearcherFactory' while setting property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fultyIndexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'dictionaryService' of bean class [org.alfresco.repo.search.fulty.impl.FultyIndexerAndSearcherFactory]: Bean property 'dictionaryService' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
‍‍‍‍‍‍

can you help me, I don't understant why it's not working,

thank you
1 REPLY 1

dude666
Champ in-the-making
Champ in-the-making
ok, I resole my probleme.

setter need to be declar in the searcheAndindexerFactory too.