{"action":"created","issue":{"url":"https://api.github.com/repos/eXist-db/exist/issues/1245","repository_url":"https://api.github.com/repos/eXist-db/exist","labels_url":"https://api.github.com/repos/eXist-db/exist/issues/1245/labels{/name}","comments_url":"https://api.github.com/repos/eXist-db/exist/issues/1245/comments","events_url":"https://api.github.com/repos/eXist-db/exist/issues/1245/events","html_url":"https://github.com/eXist-db/exist/issues/1245","id":204621248,"number":1245,"title":"Null Pointer exception on inspect:inspect-module()","user":{"login":"JonathanRowell","id":11887139,"avatar_url":"https://avatars2.githubusercontent.com/u/11887139?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanRowell","html_url":"https://github.com/JonathanRowell","followers_url":"https://api.github.com/users/JonathanRowell/followers","following_url":"https://api.github.com/users/JonathanRowell/following{/other_user}","gists_url":"https://api.github.com/users/JonathanRowell/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanRowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanRowell/subscriptions","organizations_url":"https://api.github.com/users/JonathanRowell/orgs","repos_url":"https://api.github.com/users/JonathanRowell/repos","events_url":"https://api.github.com/users/JonathanRowell/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanRowell/received_events","type":"User","site_admin":false},"labels":[{"id":49540768,"url":"https://api.github.com/repos/eXist-db/exist/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"adamretter","id":1264057,"avatar_url":"https://avatars2.githubusercontent.com/u/1264057?v=3","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false},"assignees":[{"login":"adamretter","id":1264057,"avatar_url":"https://avatars2.githubusercontent.com/u/1264057?v=3","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/eXist-db/exist/milestones/6","html_url":"https://github.com/eXist-db/exist/milestone/6","labels_url":"https://api.github.com/repos/eXist-db/exist/milestones/6/labels","id":2347732,"number":6,"title":"eXist-3.2.0","description":"","creator":{"login":"adamretter","id":1264057,"avatar_url":"https://avatars2.githubusercontent.com/u/1264057?v=3","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":0,"state":"open","created_at":"2017-02-25T17:23:04Z","updated_at":"2017-03-19T21:05:34Z","due_on":"2017-05-08T07:00:00Z","closed_at":null},"comments":3,"created_at":"2017-02-01T15:50:28Z","updated_at":"2017-03-20T17:36:02Z","closed_at":null,"body":"Following simple query causes a `NullPointerException` in 3.0RC1 under Windows.\r\n\r\nFilename : thisquery.xql\r\n---------------------------------------\r\n```xquery\r\nxquery version \"3.0\";\r\n\r\nimport module namespace inspect = \"http://exist-db.org/xquery/inspection\";\r\n\r\nlet $data := inspect:inspect-module(xs:anyURI(\"xmldb:exist:///db/apps/JonathanTest/thisquery.xql\"))\r\nreturn\r\n  $data\r\n```\r\n\r\nie: it is inspecting itself.\r\n```\r\njava.lang.NullPointerException\r\n\tat org.exist.xquery.XQueryContext.compileOrBorrowModule(XQueryContext.java:2835) ~[exist.jar:?]\r\n\tat org.exist.xquery.XQueryContext.importModule(XQueryContext.java:2748) ~[exist.jar:?]\r\n\tat org.exist.xquery.functions.inspect.InspectModule.eval(InspectModule.java:66) ~[exist.jar:?]\r\n\tat org.exist.xquery.BasicFunction.eval(BasicFunction.java:70) ~[exist.jar:?]\r\n\tat org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:56) ~[exist.jar:?]\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:142) ~[exist.jar:?]\r\n\tat org.exist.xquery.BindingExpression.eval(BindingExpression.java:165) ~[exist.jar:?]\r\n\tat org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]\r\n\tat org.exist.xquery.PathExpr.eval(PathExpr.java:267) ~[exist.jar:?]\r\n\tat org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]\r\n\tat org.exist.xquery.XQuery.execute(XQuery.java:280) ~[exist.jar:?]\r\n\tat org.exist.xquery.XQuery.execute(XQuery.java:200) ~[exist.jar:?]\r\n\tat org.exist.http.servlets.XQueryServlet.process(XQueryServlet.java:492) [exist-optional.jar:?]\r\n\tat org.exist.http.servlets.XQueryServlet.doPost(XQueryServlet.java:198) [exist-optional.jar:?]\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:755) [servlet-api-3.0.jar:?]\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [servlet-api-3.0.jar:?]\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575) [jetty-security-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:229) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50) [exist-optional.jar:?]\r\n\tat org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:557) [exist-optional.jar:?]\r\n\tat org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:357) [exist-optional.jar:?]\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [servlet-api-3.0.jar:?]\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171) [betterform-exist-5.1-SNAPSHOT-20150603.jar:?]\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) [jetty-security-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) [jetty-servlet-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) [jetty-http-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) [jetty-http-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696) [jetty-io-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53) [jetty-io-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.17.v20150415.jar:8.1.17.v20150415]\r\n\tat java.lang.Thread.run(Unknown Source) [?:1.8.0_77]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eXist-db/exist/issues/comments/287837709","html_url":"https://github.com/eXist-db/exist/issues/1245#issuecomment-287837709","issue_url":"https://api.github.com/repos/eXist-db/exist/issues/1245","id":287837709,"user":{"login":"JonathanRowell","id":11887139,"avatar_url":"https://avatars2.githubusercontent.com/u/11887139?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanRowell","html_url":"https://github.com/JonathanRowell","followers_url":"https://api.github.com/users/JonathanRowell/followers","following_url":"https://api.github.com/users/JonathanRowell/following{/other_user}","gists_url":"https://api.github.com/users/JonathanRowell/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanRowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanRowell/subscriptions","organizations_url":"https://api.github.com/users/JonathanRowell/orgs","repos_url":"https://api.github.com/users/JonathanRowell/repos","events_url":"https://api.github.com/users/JonathanRowell/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanRowell/received_events","type":"User","site_admin":false},"created_at":"2017-03-20T17:36:02Z","updated_at":"2017-03-20T17:36:02Z","body":"If inspect-module only works on library modules, why should it return an empty sequence. I would have though that inspect-module ought to return a something from a library module and nothing otherwise.\r\n\r\nThere are too many \"modules\" in the names.\r\nI call XQueries with a module statement a \"module\" and those without just queries."}}
{"actor":{"display_login":"JonathanRowell"}}