AnsweredAssumed Answered

Failed to Create a dictionary model object.

Question asked by srinivasan on Jul 6, 2006
Latest reply on Jul 12, 2006 by davidc
Hi Developers,

I followed the following urls to execute the FirstFoundationClient .java file.

The full steps to get the SDK working in Eclipse can be found here: http://wiki.alfresco.com/wiki/Alfresco_SDK

But unfortunately it is throwing error. The errors follows

Exception in thread "main" 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 'nodeService' while setting property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeService' defined in class path resource [alfresco/node-services-context.xml]: Can't resolve reference to bean 'dbNodeService' while setting property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Can't resolve reference to bean 'dictionaryService' while setting property 'dictionaryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryBootstrap' defined in class path resource [alfresco/core-services-context.xml]: Initialization of bean failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/model/dictionaryModel.xml
I did required configuration in the custom xml and properties files.

Please help me to come out from this problem.

Did i missed any other configuration?

When i debugging the error


public void bootstrap()
    {
        // register models
        for (String bootstrapModel : models)
        {
            InputStream modelStream = getClass().getClassLoader().getResourceAsStream(bootstrapModel);
            if (modelStream == null)
            {
                throw new DictionaryException("Could not find bootstrap model " + bootstrapModel);
            }
            try
            {
                if (logger.isInfoEnabled())
                    logger.info("Loading model from " + bootstrapModel);
               
                M2Model model = M2Model.createModel(modelStream);               
dictionaryDAO.putModel(model);
            }
            catch(DictionaryException e)
            {
                throw new DictionaryException("Could not import bootstrap model " + bootstrapModel, e);
            }
        }


It failed to cross the blocked statement.

I think it failed to create a model object for dictionary.

Outcomes