AnsweredAssumed Answered

Alfresco 5 update: ERROR [solr.core.SolrCore] [pool-3-thread-1] java.lang.NullPointerException

Question asked by kossel on Sep 4, 2014
Hi, I have alfresco 4.0e running with ldaps without any problem. I would like to upgrade to alfresco 5.0 therefore I'm doing test upgrade.
I solved many problems but the search still not working,  I tried to reindex solr following this https://docs.alfresco.com/4.1/tasks/solr-reindex.html  (delete index folder and models) I can see index is recreated but search function still notworking… I keep getting this error, any idea that can help me?? thanks



2014-09-03 15:20:49 Commons Daemon procrun stdout initialized
2014-09-03 15:22:13,635  WARN  [solr.core.SolrCore] [localhost-startStop-1] [alfresco] Solr index directory 'D:\Alfresco5\alf_data\solr\workspace\SpacesStore\index' doesn't exist. Creating new index…
2014-09-03 15:22:14,432  WARN  [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter
2014-09-03 15:22:14,619  ERROR [solr.core.SolrCore] [pool-1-thread-1] java.lang.NullPointerException
   at org.alfresco.solr.AlfrescoSolrEventListener.newSearcher(AlfrescoSolrEventListener.java:182)
   at org.apache.solr.core.SolrCore$3.call(SolrCore.java:1146)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

2014-09-03 15:22:15,025  WARN  [solr.core.SolrCore] [localhost-startStop-1] [archive] Solr index directory 'D:\Alfresco5\alf_data\solr\archive\SpacesStore\index' doesn't exist. Creating new index…
2014-09-03 15:22:15,041  WARN  [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter
2014-09-03 15:22:15,041  ERROR [solr.core.SolrCore] [pool-3-thread-1] java.lang.NullPointerException
   at org.alfresco.solr.AlfrescoSolrEventListener.newSearcher(AlfrescoSolrEventListener.java:182)
   at org.apache.solr.core.SolrCore$3.call(SolrCore.java:1146)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

2014-09-03 15:22:52,822  WARN  [alfresco.util.RuntimeSystemPropertiesSetter] [localhost-startStop-1] Could not find alfresco-jmxrmi.password on classpath
2014-09-03 15:22:53,385  INFO  [alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbc:postgresql://localhost:5432/alfresco' with user 'alfresco'.
2014-09-03 15:22:54,322  INFO  [alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 9.0.2
2014-09-03 15:23:01,807  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
2014-09-03 15:23:03,041  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
2014-09-03 15:23:03,072  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
2014-09-03 15:23:15,385  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor Repository Template Processor for extension ftl
2014-09-03 15:23:15,400  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor Repository Script Processor for extension js
2014-09-03 15:23:21,807  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] Connecting to database: jdbc:postgresql://localhost:5432/alfresco, UserName=alfresco, PostgreSQL Native Driver
2014-09-03 15:23:21,807  INFO  [domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.

Outcomes