cancel
Showing results for 
Search instead for 
Did you mean: 

Strange searchService error with Alfresco 3.3G

manish
Champ in-the-making
Champ in-the-making
I have fixed few other errors that I had with XMLConfigService in my application, but I am still getting this weird error and I am not able to understand source of this error -


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SearchService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'searchService' while
     setting bean property 'target'; nested exception is org.springframework.beans.fa
     ctory.BeanCreationException: Error creating bean with name 'searchService' defin
     ed in class path resource [alfresco/core-services-context.xml]: Cannot resolve r
     eference to bean 'indexerAndSearcherFactory' while setting bean property 'indexe
     rAndSearcherFactory'; nested exception is org.springframework.beans.factory.Bean
     CreationException: Error creating bean with name 'indexerAndSearcherFactory' def
     ined in class path resource [alfresco/core-services-context.xml]: Cannot resolve
      reference to bean 'admLuceneIndexerAndSearcherFactory' while setting bean prope
     rty 'defaultBinding'; nested exception is org.springframework.beans.factory.Bean
     CreationException: Error creating bean with name 'admLuceneIndexerAndSearcherFac
     tory' defined in class path resource [alfresco/core-services-context.xml]: Canno
     t resolve reference to bean 'contentService' while setting bean property 'conten
     tService'; nested exception is org.springframework.beans.factory.BeanCreationExc
     eption: Error creating bean with name 'contentService' defined in class path res
     ource [alfresco/content-services-context.xml]: Invocation of init method failed;
      nested exception is java.lang.NullPointerException
             at org.springframework.beans.factory.support.BeanDefinitionValueResolver
     .resolveReference(BeanDefinitionValueResolver.java:328)
             at org.springframework.beans.factory.support.BeanDefinitionValueResolver
     .resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
             at org.springframework.beans.factory.support.AbstractAutowireCapableBean
     Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
             at org.springframework.beans.factory.support.AbstractAutowireCapableBean
     Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
             at org.springframework.beans.factory.support.AbstractAutowireCapableBean
     Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
             at org.springframework.beans.factory.support.AbstractAutowireCapableBean
     Factory.createBean(AbstractAutowireCapableBeanFactory.java:450)
             at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
     ject(AbstractBeanFactory.java:290)
             at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
     y.getSingleton(DefaultSingletonBeanRegistry.java:222)
             at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
     an(AbstractBeanFactory.java:287)
             at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
     (AbstractBeanFactory.java:189)
             at org.springframework.beans.factory.support.BeanDefinitionValueResolver
     .resolveReference(BeanDefinitionValueResolver.java:322)
        … 40 more



What could be causing this and how can I get this fixed?

TIA,
- Manish
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Is that all of the exception?    The cause is not shown.

manish
Champ in-the-making
Champ in-the-making
If you can scroll down, you can see some NPE there, am not sure about the cause though!! Smiley Sad