AnsweredAssumed Answered

JSF + Lucene

Question asked by unknown-user on Jun 13, 2006
Hello I have a problem when doing a modification in I cosay of alfresco. Attempt to make some screen of example but I cannot.


public List ejecutaQueryParser(List params) throws IOException, ParseException {      
      String sCadenaBusqueda="";
      List oListHits=null;
      
      sCadenaBusqueda   =   this.componeCadenaBusqueda(params);   
      System.out.println("ESTOY EN BuscadorBasicoPonderadoImpl"+sCadenaBusqueda);
      IndexSearcher oIndexSearcher = new IndexSearcher(sIndexDir);
      //Este m?todo es el que empieza a petar
      Query query =    QueryParser.parse(sCadenaBusqueda,"contents",new SimpleAnalyzer());
      Hits hits    =    oIndexSearcher.search(query);
      oListHits   =   this.devuelveListResultadosPonderados(hits);      
      if (logger.isDebugEnabled())
              logger.debug("numero de resultados encontrados"+  hits.length());
       return oListHits;
   }


The case is that I would like to define search in Lucene and whenever I call to Lucene from the JSF gives an exception me. Totally generic.


type Informe de Excepci?n

mensaje

descripci?n El servidor encontr? un error interno () que hizo que no pudiera rellenar este requerimiento.

excepci?n

javax.servlet.ServletException: Error calling action method of component with id helloForm:submit
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
   org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)

causa ra?z

javax.faces.FacesException: Error calling action method of component with id helloForm:submit
   org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
   javax.faces.component.UICommand.broadcast(UICommand.java:312)
   javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
   javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
   com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
   com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
   com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
   org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)

Outcomes