final public static void log(Throwable e) { SolrException.logOnce(log,null,e); }
public Object call() throws Exception { try { for (SolrEventListener listener : firstSearcherListeners) { listener.newSearcher(newSearcher,null); } } catch (Throwable e) { SolrException.logOnce(log,null,e); } return null; } }
public Object call() throws Exception { try { newSearcher.warm(currSearcher); } catch (Throwable e) { SolrException.logOnce(log,null,e); } return null; } }
public Object call() throws Exception { try { for (SolrEventListener listener : newSearcherListeners) { listener.newSearcher(newSearcher, currSearcher); } } catch (Throwable e) { SolrException.logOnce(log,null,e); } return null; } }
public Object call() throws Exception { try { // signal that we no longer need to decrement // the count *before* registering the searcher since // registerSearcher will decrement even if it errors. decrementOnDeckCount[0]=false; registerSearcher(newSearchHolder); } catch (Throwable e) { SolrException.logOnce(log,null,e); } finally { // we are all done with the old searcher we used // for warming... if (currSearcherHolderF!=null) currSearcherHolderF.decref(); } return null; } }
protected void sendError(HttpServletResponse res, Throwable ex) throws IOException { int code=500; String trace = ""; if( ex instanceof SolrException ) { code = ((SolrException)ex).code(); } // For any regular code, don't include the stack trace if( code == 500 || code < 100 ) { StringWriter sw = new StringWriter(); ex.printStackTrace(new PrintWriter(sw)); trace = "\n\n"+sw.toString(); SolrException.logOnce(log,null,ex ); // non standard codes have undefined results with various servers if( code < 100 ) { log.warn( "invalid return code: "+code ); code = 500; } } res.sendError( code, ex.getMessage() + trace ); }
} catch (Exception e) { SolrConfig.severeErrors.add( e ); SolrException.logOnce(log,null,e);
SolrException.logOnce(log, "Error processing \"legacy\" update command", ex); XML.writeXML(output, "result", SolrException.toStr(ex), "status", "1"); } catch (Exception ee) {
SolrException.logOnce(log,null,e); if (currSearcherHolder != null) currSearcherHolder.decref();
/** * Looks at various Params to determing if any simple Facet Constraint count * computations are desired. * * @see #getFacetQueryCounts * @see #getFacetFieldCounts * @see #getFacetDateCounts * @see FacetParams#FACET * @return a NamedList of Facet Count info or null */ public NamedList getFacetCounts() { // if someone called this method, benefit of the doubt: assume true if (!params.getBool(FacetParams.FACET,true)) return null; NamedList res = new SimpleOrderedMap(); try { res.add("facet_queries", getFacetQueryCounts()); res.add("facet_fields", getFacetFieldCounts()); res.add("facet_dates", getFacetDateCounts()); } catch (Exception e) { SolrException.logOnce(SolrCore.log, "Exception during facet counts", e); res.add("exception", SolrException.toStr(e)); } return res; }
SolrException.logOnce(SolrCore.log, "Exception during debug", e); rsp.add("exception_during_debug", SolrException.toStr(e));