buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

500 error with basic Pali search #223

Closed eroux closed 2 years ago

eroux commented 2 years ago

For instance https://purl.bdrc.io/lib/instanceFacetGraph?LG_NAME=pi-x-ndia&L_NAME=%22dhammapada%22

this only happens with Pali, from the logs:

[2021-10-17 07:41:36,692 ERROR] cat].[localhost].[/].[dispatcherServlet]: 175 [http-nio-13280-exec-7] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.jena.query.QueryParseException: Lexical error at line 1, column 2323.  Encountered: " " (32), after : "ERROR"] with root cause
org.apache.jena.query.QueryParseException: Lexical error at line 1, column 2323.  Encountered: " " (32), after : "ERROR"
    at org.apache.jena.sparql.lang.ParserSPARQL11.perform(ParserSPARQL11.java:109)
    at org.apache.jena.sparql.lang.ParserSPARQL11.parse$(ParserSPARQL11.java:52)
    at org.apache.jena.sparql.lang.SPARQLParser.parse(SPARQLParser.java:34)
    at org.apache.jena.query.QueryFactory.parse(QueryFactory.java:147)
    at org.apache.jena.query.QueryFactory.create(QueryFactory.java:79)
    at org.apache.jena.query.QueryFactory.create(QueryFactory.java:52)
    at org.apache.jena.query.QueryFactory.create(QueryFactory.java:40)
    at io.bdrc.ldspdi.sparql.QueryProcessor.getGraph(QueryProcessor.java:140)

which should be caught so that we can see the erroneous query

and

[2021-10-17 07:45:46,177 ERROR] cat].[localhost].[/].[dispatcherServlet]: 175 [http-nio-13280-exec-7] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException: null

which is pretty unhelpful...