5 Replies Latest reply on Jul 20, 2007 3:34 PM by jmh128

    Search throws an error

      Searching on my site throws the following error:

       

      freemarker.core.InvalidReferenceException: Expression peopleResults is undefined on line 187, column 96 in template/global/search.ftl.

       

      The lines concerned in the template file are:

       

                          <#if peopleEnabled>

                              <div id="jive-search-results-people" class="jive-search-results" <#if !peopleResults.hasNext()>style="display: none;"</#if>>

                                  <a href="#" id="jive-search-people-hdr" onclick="jiveToggleResult('jive-search-people'); return false;" <#if peopleResults.hasNext()>class="jive-search-results-open"<#else>class="jive-search-results-closed"</#if>><@ww.text name="search.results.people.label" /></a>

                                  ($)

       

                                    

       

                                  <div id="jive-search-results-people-details">

                                      <@ww.text name="search.results.people.instructions">

                                          <@ww.param><a href="<@ww.url value='/people' includeParams='none'/>"></@ww.param>

                                          <@ww.param></a></@ww.param>

                                      </@ww.text>

                                  </div>

       

                                  <div id="jive-search-people">

                                      <#if peopleResults.hasNext()>

                                          <ul>

                                          <#list peopleResults as user>

                                              <li><#if (user_index > 0)>, </#if><@jive.userDisplayNameLink user=user/></li>

                                          </#list>

                                          </ul>

                                      </#if>

                                  </div>

                              </div>

                          </#if>

       

      Additionally the admin interface throws an error when I try to look at the search settings via System --> Settings --> Search:

       

      Status Code: 500

      Exception Type: null

      Error Message:

      Request URI: /clearspace/admin/settings-search.jsp

      Stack Trace:

      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)

      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)

      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.jivesoftware.community.action.JiveAdminActionFilter.doFilter(JiveAdminActionFilter.java:34)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189)

      com.jivesoftware.community.web.webwork.JiveFilterDispatcher.doFilter(JiveFilterDispatcher.java:53)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.jivesoftware.community.web.filter.SetResponseCharacterEncodingFilter.doFilter(SetResponseCharacterEncodingFilter.java:62)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

      com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.jivesoftware.community.web.JiveActionContextCleanUp.doFilter(JiveActionContextCleanUp.java:46)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.jivesoftware.community.web.filter.SetRequestCharacterEncodingFilter.doFilter(SetRequestCharacterEncodingFilter.java:73)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      org.directwebremoting.servlet.DwrWebContextFilter.doFilter(DwrWebContextFilter.java:91)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.jivesoftware.community.upgrade.UpgradeFilter.doFilter(UpgradeFilter.java:43)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.jivesoftware.base.plugin.PluginFilter.doFilter(PluginFilter.java:71)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.jivesoftware.community.web.filter.ApplicationInitializedFilter.doFilter(ApplicationInitializedFilter.java:95)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      com.jivesoftware.base.database.dao.DAOContextCleanUpFilter.doFilter(DAOContextCleanUpFilter.java:32)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

      org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

      org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

      org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

      java.lang.Thread.run(Thread.java:613)

      org.apache.jasper.JasperException

       

       

      Any pointers would be gratefully received as this is pretty crucial if people are going to use Clearspace

        • Further Info

          On further testing, I can work around this clumsily by clicking Search with no search term and then deselecting the people search in the resulting advanced search screen. Then I am able to search content.

           

          I am also getting an error when I try to look at the People page:

           

          Status Code: 500

          Exception Type: null

          Error Message:

          Request URI: /clearspace/people

          Stack Trace:

          com.jivesoftware.community.impl.ProfileSearchManagerImpl.initialize(ProfileSearchManagerImpl.java:460)

          com.jivesoftware.community.impl.ProfileSearchManagerImpl.(ProfileSearchManagerImpl.java:178)

          com.jivesoftware.community.impl.ProfileSearchManagerImpl.getInstance(ProfileSearchManagerImpl.java:169)

          com.jivesoftware.community.ProfileManagerFactory.getProfileSearchManager(ProfileManagerFactory.java:117)

          com.jivesoftware.community.action.PeopleAction.execute(PeopleAction.java:300)

          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          java.lang.reflect.Method.invoke(Method.java:585)

          com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:364)

          com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:216)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)

          com.jivesoftware.community.web.webwork.FlashInterceptor.intercept(FlashInterceptor.java:41)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)

          com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)

          com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.jivesoftware.community.web.webwork.JiveObjectLoaderInterceptor.intercept(JiveObjectLoaderInterceptor.java:55)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.jivesoftware.community.web.webwork.JiveIOCInterceptor.intercept(JiveIOCInterceptor.java:639)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.jivesoftware.community.action.LocaleInterceptor.intercept(LocaleInterceptor.java:71)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.jivesoftware.community.web.webwork.JiveLoginInterceptor.intercept(JiveLoginInterceptor.java:42)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.jivesoftware.community.web.webwork.AuthInterceptor.intercept(AuthInterceptor.java:60)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:186)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.jivesoftware.community.web.webwork.ModuleCheckInterceptor.intercept(ModuleCheckInterceptor.java:49)

          com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)

          com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)

          com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:225)

          com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)

          com.jivesoftware.community.web.webwork.JiveFilterDispatcher.doFilter(JiveFilterDispatcher.java:53)

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

          com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

          com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

          com.jivesoftware.community.web.JiveActionContextCleanUp.doFilter(JiveActionContextCleanUp.java:46)

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

          com.jivesoftware.community.web.filter.PresenceFilter.doFilter(PresenceFilter.java:106)

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

          org.directwebremoting.servlet.DwrWebContextFilter.doFilter(DwrWebContextFilter.java:91)

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

          com.jivesoftware.community.upgrade.UpgradeFilter.doFilter(UpgradeFilter.java:43)

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

          com.jivesoftware.base.plugin.PluginFilter.doFilter(PluginFilter.java:71)

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

          com.jivesoftware.base.database.dao.DAOContextCleanUpFilter.doFilter(DAOContextCleanUpFilter.java:32)

          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

          org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

          org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

          org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

          org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

          org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

          org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

          org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

          org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

          org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

          org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

          org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

          java.lang.Thread.run(Thread.java:613)

          java.lang.NullPointerException