Few days ago I had a nullpointer exception with solr 5.4.0 few days ago. This was the exception.
java.lang.NullPointerException at org.apache.solr.search.QParser.getParser(QParser.java:315) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:159) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:254) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2073) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:658) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:457) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:222) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:181) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745) Well, maybe I took the longest way, but having the ability to debug the running application pointed exactly the problem. I had a misstyped defType in solrconfig.xml On Thu, Jan 14, 2016 at 10:00 AM, Ramkumar R. Aiyengar < andyetitmo...@gmail.com> wrote: > I should add to Erick's point that the test framework allows you to test > HTTP APIs through an embedded Jetty instance, so you should be able to do > anything that you do with a remote Solr instance from code.. > On 12 Jan 2016 18:24, "Erick Erickson" <erickerick...@gmail.com> wrote: > > > And a neater way to debug stuff rather than attaching to > > Solr is to step through the Junit tests that exercise the code > > you need to work on rather than attach to a remote Solr. > > This is often much faster rather than compile/start solr/attach. > > > > Of course some problems don't fit that process, but I thought > > I'd mention it. > > > > Best, > > Erick > > > > On Tue, Jan 12, 2016 at 4:08 AM, Vincenzo D'Amore <v.dam...@gmail.com> > > wrote: > > > Mmmm... I'm not sure it worth the trouble. Anyway, I'm just curious, > when > > > you find a way let me know. > > > > > > On Tue, Jan 12, 2016 at 1:01 PM, Rodrigo Testillano < > > > rodrite.testill...@gmail.com> wrote: > > > > > >> Yes, with remote debug is working, but i want up a jetty with solr in > > >> Eclipse like i did with tomcat in older versions. Thank you very much > > for > > >> your help! I am going to try other way to do it, but maybe will be > not > > >> possible > > >> > > >> 2016-01-12 12:51 GMT+01:00 Rodrigo Testillano < > > >> rodrite.testill...@gmail.com> > > >> : > > >> > > >> > Thank you so much!, I'm going to try right now and tell you my > > results!! > > >> > > > >> > 2016-01-12 12:47 GMT+01:00 Vincenzo D'Amore <v.dam...@gmail.com>: > > >> > > > >> >> Yep. > > >> >> > > >> >> I have done this just few hours ago. > > >> >> Let's download Solr source: > > >> >> > > >> >> wget > > >> http://it.apache.contactlab.it/lucene/solr/5.4.0/solr-5.4.0-src.tgz > > >> >> > > >> >> untar the file. > > >> >> > > >> >> I'm not sure we need, but I have already installed latest versions > > of: > > >> >> ant, > > >> >> ivy and maven. > > >> >> > > >> >> Then in the solr-5.4.0 directory I did this: > > >> >> > > >> >> ant resolve > > >> >> > > >> >> ant eclipse > > >> >> > > >> >> Now you can import solr-5.4.0 as eclipse project. > > >> >> > > >> >> Under the hood the ant "eclipse" task have created .project and > > >> .classpath > > >> >> and .settings directory. > > >> >> > > >> >> Now if you want debug, all you need to do is create with eclipse a > > java > > >> >> remote debug configuration and start solr with the debugging > > parameters: > > >> >> > > >> >> ./solr start -m 4g a "-Xdebug > > >> >> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044" > > >> >> > > >> >> :) > > >> >> > > >> >> On Tue, Jan 12, 2016 at 12:31 PM, Rodrigo Testillano < > > >> >> rodrite.testill...@gmail.com> wrote: > > >> >> > > >> >> > I need debug my custom processor (updateRequestProcessor) in my > > >> Eclipse > > >> >> > IDE. With old Solr version was possible, but with the solr like a > > >> >> service > > >> >> > with jetty i don't know if exists some way to do > > >> >> > -- > > >> >> > Un Saludo. > > >> >> > > > >> >> > Rodrigo Testillano Tordesillas. > > >> >> > > > >> >> > > >> >> > > >> >> > > >> >> -- > > >> >> Vincenzo D'Amore > > >> >> email: v.dam...@gmail.com > > >> >> skype: free.dev > > >> >> mobile: +39 349 8513251 > > >> >> > > >> > > > >> > > > >> > > > >> > -- > > >> > Un Saludo. > > >> > > > >> > Rodrigo Testillano Tordesillas. > > >> > > > >> > > >> > > >> > > >> -- > > >> Un Saludo. > > >> > > >> Rodrigo Testillano Tordesillas. > > >> > > > > > > > > > > > > -- > > > Vincenzo D'Amore > > > email: v.dam...@gmail.com > > > skype: free.dev > > > mobile: +39 349 8513251 > > > -- Vincenzo D'Amore email: v.dam...@gmail.com skype: free.dev mobile: +39 349 8513251