LD4P / qa_server

A rails engine with questioning authority gem installed to serve as an authority search server with normalized results.
Apache License 2.0
6 stars 3 forks source link

LCSH cache query throws 500 error #322

Open elrayle opened 4 years ago

elrayle commented 4 years ago

Authority: loc_subject_batch.jsp FAILING Query: Miller%20--C PASSING Query: Miller

Error for failing query:

$ curl -L -D - -H 'Accept: application/n-triples' 'http://services.ld4l.org/ld4l_services/loc_subject_batch.jsp?query=Miller%2C%20Alfred%20Jacob%2C%201810-1874%20--Catalogues&maxRecords=8&startRecord=1&lang=en'
HTTP/1.1 500 
Date: Mon, 16 Mar 2020 21:02:50 GMT
Server: Apache/2.4.33 (Unix) PHP/7.1.16 LibreSSL/2.2.7
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 2873
Set-Cookie: JSESSIONID=D112DDB6C992FCF6195D45CE0ACB1139;path=/ld4l_services;HttpOnly
Connection: close

<!DOCTYPE html><html><head><title>Apache Tomcat/9.0.0.M9 - Error report</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 500 - java.lang.NullPointerException</h1><div class="line"></div><p><b>type</b> Exception report</p><p><b>message</b> <u>java.lang.NullPointerException</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b></p><pre>org.apache.jasper.JasperException: java.lang.NullPointerException
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:481)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
    edu.uiowa.tagUtil.filter.BlankLineFilter.doFilter(BlankLineFilter.java:55)
...
elrayle commented 4 years ago

It would be preferable for this query to return 0 results instead of throwing an error.

Note this query works if you remove '--Catalogues' from the end.

The query from the log that revealed this error was more complex. I removed the complexities until I could get the error. But for informational purposes, this is the original query.

%09Miller%2C%20Alfred%20Jacob%2C%201810-1874%20--Catalogues%20raisonn%C3%A9s

%09 - tab
%2C - comma
%20 - space
%C3 - Ã
%A9 - ©

<tab>Miller, Alfred Jacob, 1810-1874 --Catalogues raisonn és