Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eXist-db dashboard showing error: Invalid qname text:groups #82

Open
shidmeisiew-zz opened this issue Mar 22, 2019 · 8 comments
Open

eXist-db dashboard showing error: Invalid qname text:groups #82

shidmeisiew-zz opened this issue Mar 22, 2019 · 8 comments
Labels
dashboard-1.x Specific to Dashboard 1.x

Comments

@shidmeisiew-zz
Copy link

Hi,

I'm trying to access the dashboard but was presented with errors like such:
How can I see the Dashboard again?
Please advise.

javax.servlet.ServletException: An error occurred while processing request to /exist/apps/dashboard/index.html: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: Invalid qname text:groups
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:381)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:521)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:564)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.exist.xquery.XPathException: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: Invalid qname text:groups
at org.exist.xquery.FunctionFactory.createFunction(FunctionFactory.java:49)
at org.exist.xquery.parser.XQueryTreeParser.functionCall(XQueryTreeParser.java:10429)
at org.exist.xquery.parser.XQueryTreeParser.primaryExpr(XQueryTreeParser.java:7348)
at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:3561)
at org.exist.xquery.parser.XQueryTreeParser.functionCall(XQueryTreeParser.java:10408)
at org.exist.xquery.parser.XQueryTreeParser.primaryExpr(XQueryTreeParser.java:7348)
at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:3561)
at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:1879)
at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:423)
at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:2620)
at org.exist.xquery.parser.XQueryTreeParser.functionDecl(XQueryTreeParser.java:5773)
at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4905)
at org.exist.xquery.parser.XQueryTreeParser.libraryModule(XQueryTreeParser.java:4028)
at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3860)
at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3642)
at org.exist.xquery.XQueryContext.compileModule(XQueryContext.java:2900)
at org.exist.xquery.XQueryContext.compileOrBorrowModule(XQueryContext.java:2832)
at org.exist.xquery.XQueryContext.importModule(XQueryContext.java:2743)
at org.exist.xquery.parser.XQueryTreeParser.importDecl(XQueryTreeParser.java:5884)
at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4912)
at org.exist.xquery.parser.XQueryTreeParser.mainModule(XQueryTreeParser.java:4040)
at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3985)
at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3642)
at org.exist.xquery.XQuery.compile(XQuery.java:128)
at org.exist.xquery.XQuery.compile(XQuery.java:79)
at org.exist.xquery.XQuery.compile(XQuery.java:71)
at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:687)
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:256)
... 36 more

@duncdrum
Copy link
Contributor

Could you please fill out the template, what version of exist, OS, install methode, etc.

@dizzzz
Copy link
Member

dizzzz commented Mar 22, 2019

yeah we need this info. I think I remember that this text:groups() has been removed..... or later added :-)

@shidmeisiew-zz
Copy link
Author

shidmeisiew-zz commented Mar 25, 2019 via email

@duncdrum duncdrum transferred this issue from eXist-db/exist Mar 26, 2019
@duncdrum duncdrum added the dashboard-1.x Specific to Dashboard 1.x label Mar 26, 2019
@joewiz
Copy link
Member

joewiz commented Mar 26, 2019

text:groups was removed from dashboard in 21232d0 - in 2015. If you download the latest version of dashboard (v1.1.1) compatible with your version of eXist, you will surely have no such error.

@shidmeisiew-zz
Copy link
Author

shidmeisiew-zz commented Mar 27, 2019 via email

@joewiz
Copy link
Member

joewiz commented Mar 27, 2019

Yes, Dashboard is an application package maintained separately from eXist's core, but it's included with the eXist installer. You can install the latest version of Dashboard by copying and pasting the following code into eXide (which I assume you have installed and can reach via http://localhost:8080/exist/apps/eXide - be sure to log in as the admin user or any user in the dba group):

repo:install-and-deploy(
    "http://exist-db.org/apps/dashboard", 
    "http://demo.exist-db.org/exist/apps/public-repo/modules/find.xql"
)

This downloads and installs the appropriate version of Dashboard for your version of eXist. If successful, you'll get the following result in eXide:

<repo:status xmlns:repo="http://exist-db.org/xquery/repo" result="ok" target="/db/apps/dashboard"/>

Then go to Dashboard at http://localhost:8080/exist/apps/dashboard, and you should be all set.

@shidmeisiew-zz
Copy link
Author

shidmeisiew-zz commented Mar 27, 2019 via email

@shidmeisiew-zz
Copy link
Author

shidmeisiew-zz commented May 31, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard-1.x Specific to Dashboard 1.x
Projects
None yet
Development

No branches or pull requests

4 participants