113Views9Replies

Author Options:

Errors in Answers Answered

When you try to view a page in the Answers section it takes you to a page with a javax servlet exception. Looks like someone forgot to define a field and it broke the query engine ("Caused by: org.apache.solr.common.SolrException: undefined field Whats").

The error displays as follows:

Please excuse me, that was very impolite! - javax.servlet.ServletException: solr Ex !
Exception
org.apache.solr.client.solrj.SolrServerException: Error executing query
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
at com.instructables.solr.SolrSearchServlet.doGet(SolrSearchServlet.java:529)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
at com.caucho.filters.GzipFilter.doFilter(GzipFilter.java:208)
at com.instructables.filter.FilterWrapperFilter.doFilter(FilterWrapperFilter.java:47)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at com.instructables.filter.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:48)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at com.instructables.filter.TemporaryProFilter.doFilter(TemporaryProFilter.java:77)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at com.instructables.filter.SecurityFilter.doFilter(SecurityFilter.java:212)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at com.instructables.filter.SetupFilter.doFilter(SetupFilter.java:68)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:527)
at com.caucho.util.ThreadPool.run(ThreadPool.java:449)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.solr.common.SolrException: undefined field Whats
...

The error continues but it looks like an undefined field. Oops. Maybe put some error checking into the code next time guys.




 

Discussions

0
None
rachel

7 years ago

Hi all thanks for reporting this! It was an error I made when doing a bugfix release last night. Should be fixed now. You may have to refresh your page if your browser has cached the problem page.

0
None
lemonie

7 years ago


If it's the old 500, it will go away. Give it a while.

L

0
None
ProfessorMonikerlemonie

Reply 7 years ago

Kinda funny that this kind of thing is commonplace. I hadn't explored that part of the site before so I wasn't sure.

0
None
aeraylemonie

Reply 7 years ago

I look at "Answers" several times a day and haven't encountered it before.

0
None
lemonieaeray

Reply 7 years ago


I hadn't for months. But it was a bit early for me this morning.

L

0
None
Kiteman

7 years ago

Same fault just started for me.

0
None
aeray

7 years ago

Yep, I'm getting "500 Servlet Exception" on every question I try to view.

0
None
ProfessorMoniker

7 years ago

Tried going to a couple more pages and it looks like that undefined field is being pulled from a random word (maybe an operator apache recognizes) in the title of the page. Probably get that fixed before somebody finds a way to inject malicious code into a question. If I was a more devious person and knew commands it would resond to I definitely would try injecting some code lol

PS I am not that devious and really like the site so if anyone does try an injection hack it wasn't me. Don't ban me :-)