marcardar / transcriptstudio-isha

Automatically exported from code.google.com/p/transcriptstudio4isha
0 stars 0 forks source link

HTTP 500: Server error when searching for quotes #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
do a markup search for "quote" and you get an Http 500 error. The following
output is displayed in the terminal window:

25 Aug 2009 12:59:55,178 [P1-9] ERROR (ServletHandler.java [handle]:593) -
/exist/rest/db/ts4isha/xquery/main.xql?panel=search&defaultType=markup&search=qu
ote:

java.lang.ArrayIndexOutOfBoundsException: 0

Original issue reported on code.google.com by swami.ke...@gmail.com on 25 Aug 2009 at 7:31

GoogleCodeExporter commented 9 years ago
After further investigation we see that this problem happens for any markup 
type for
which there does not exist at least one category

Original comment by swami.ke...@gmail.com on 30 Sep 2009 at 11:48

GoogleCodeExporter commented 9 years ago
Isolated the problem to line 127 in search-fns.xqm:

order by $searchPriority (in function 
search-fns:generate-markup-class-representatives)

Removing it makes it work

Original comment by swami.ke...@gmail.com on 30 Sep 2009 at 4:53

GoogleCodeExporter commented 9 years ago
Fixed in r524

Original comment by swami.ke...@gmail.com on 1 Oct 2009 at 10:13