{"action":"created","issue":{"url":"https://api.github.com/repos/eXist-db/exist/issues/1272","repository_url":"https://api.github.com/repos/eXist-db/exist","labels_url":"https://api.github.com/repos/eXist-db/exist/issues/1272/labels{/name}","comments_url":"https://api.github.com/repos/eXist-db/exist/issues/1272/comments","events_url":"https://api.github.com/repos/eXist-db/exist/issues/1272/events","html_url":"https://github.com/eXist-db/exist/issues/1272","id":209201396,"number":1272,"title":"err:XPTY0004 when searching in localhost (Shakespeare app)","user":{"login":"lguariento","id":10143842,"avatar_url":"https://avatars.githubusercontent.com/u/10143842?v=3","gravatar_id":"","url":"https://api.github.com/users/lguariento","html_url":"https://github.com/lguariento","followers_url":"https://api.github.com/users/lguariento/followers","following_url":"https://api.github.com/users/lguariento/following{/other_user}","gists_url":"https://api.github.com/users/lguariento/gists{/gist_id}","starred_url":"https://api.github.com/users/lguariento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lguariento/subscriptions","organizations_url":"https://api.github.com/users/lguariento/orgs","repos_url":"https://api.github.com/users/lguariento/repos","events_url":"https://api.github.com/users/lguariento/events{/privacy}","received_events_url":"https://api.github.com/users/lguariento/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-21T16:38:06Z","updated_at":"2017-02-22T10:08:06Z","closed_at":null,"body":"Hello,\r\n\r\nwhen I search for a string locally (localhost:8080) I get the following error (see below), while when I send the same query on the exist-db website (http://exist-db.org/exist/apps/shakespeare/works/search.html?query=cleopatra&field=text&mode=any&scope=narrow) I correctly get the results I want.\r\n\r\nWhat am I doing wrong? Has it something to do with my configuration?\r\n\r\nThanks!\r\n\r\nerr:XPTY0004 xs:string(\r\n               ) is not a sub-type of text() [at line 72, column 23, source: jar:file:/Applications/eXist-db.app/Contents/Resources/eXist-db/exist.jar!/org/exist/xquery/lib/kwic.xql]\r\nIn function:\r\n\tkwic:callback(function?, text(), xs:string) [109:38:jar:file:/Applications/eXist-db.app/Contents/Resources/eXist-db/exist.jar!/org/exist/xquery/lib/kwic.xql]\r\n\tkwic:truncate-previous(node(), node()?, item()*, xs:integer, xs:integer, function?) [107:25:jar:file:/Applications/eXist-db.app/Contents/Resources/eXist-db/exist.jar!/org/exist/xquery/lib/kwic.xql]\r\n\tkwic:truncate-previous(node(), node()?, item()*, xs:integer, xs:integer, function?) [244:27:jar:file:/Applications/eXist-db.app/Contents/Resources/eXist-db/exist.jar!/org/exist/xquery/lib/kwic.xql]\r\n\tkwic:get-summary(node(), element(), element()?, function?) [335:17:jar:file:/Applications/eXist-db.app/Contents/Resources/eXist-db/exist.jar!/org/exist/xquery/lib/kwic.xql]\r\n\tkwic:summarize(element(), element()?, function?) [521:18:jar:file:/Applications/eXist-db.app/Contents/Resources/eXist-db/exist.jar!/org/exist/xquery/lib/kwic.xql]\r\n\tapp:show-hits(node()*, map, xs:integer, xs:integer) [221:18:/db/apps/shakespeare/modules/app.xql]\r\n\ttemplates:call-with-args(function, function*, element(), map) [208:13:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [135:36:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [277:13:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*) [270:9:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [143:37:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [146:81:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [462:17:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*) [270:9:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process-output(element(), map, item()*, element()) [205:9:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call-by-introspection(element(), map, map, function) [187:28:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:call(item(), element(), map) [135:36:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [131:51:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:process(node()*, map) [88:9:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]\r\n\ttemplates:apply(node()+, function, map?, map?) [29:5:/Users/lg/Library/Application Support/org.exist/expathrepo/shared-0.4.0/content/templates.xql]"},"comment":{"url":"https://api.github.com/repos/eXist-db/exist/issues/comments/281625146","html_url":"https://github.com/eXist-db/exist/issues/1272#issuecomment-281625146","issue_url":"https://api.github.com/repos/eXist-db/exist/issues/1272","id":281625146,"user":{"login":"lguariento","id":10143842,"avatar_url":"https://avatars.githubusercontent.com/u/10143842?v=3","gravatar_id":"","url":"https://api.github.com/users/lguariento","html_url":"https://github.com/lguariento","followers_url":"https://api.github.com/users/lguariento/followers","following_url":"https://api.github.com/users/lguariento/following{/other_user}","gists_url":"https://api.github.com/users/lguariento/gists{/gist_id}","starred_url":"https://api.github.com/users/lguariento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lguariento/subscriptions","organizations_url":"https://api.github.com/users/lguariento/orgs","repos_url":"https://api.github.com/users/lguariento/repos","events_url":"https://api.github.com/users/lguariento/events{/privacy}","received_events_url":"https://api.github.com/users/lguariento/received_events","type":"User","site_admin":false},"created_at":"2017-02-22T10:08:06Z","updated_at":"2017-02-22T10:08:06Z","body":"Hello Joe,\r\n\r\nyes, I had a previous version installed. Anyway, I have now wiped out the old installation (both .app and org.exist folder), downloaded and installed eXist again, and I have the same error.\r\n\r\nVersion: 3.0 / acd0c14\r\nJava version: ava8u121\r\nOSX 10.12.3\r\n64 bit\r\nNo changes to conf.xml, as I said I tried with a clean new installation (unless there's some hidden folder I should delete)\r\n\r\n"}}
{"actor":{"display_login":"lguariento"}}