eXist-db 3.0 issues continue...

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

eXist-db 3.0 issues continue...

John Preimonas-2
Hi Wolfgang, el al,

I deleted  the lucene directory and did a restart then a new loading of 3.0. Now when I attempt to open the Dashboard, I get the following error(s).
I loaded the .dmg for my iMac.

Regards,
John

HTTP ERROR 500

Problem accessing /exist/apps/dashboard/. Reason:

    Server Error

Caused by:

javax.servlet.ServletException: An error occurred while processing request to /exist/apps/dashboard/: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: No namespace defined for prefix text [at line 271, column 40]
	at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:378)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
	at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
	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.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
	at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:459)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:524)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.exist.xquery.XPathException: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: No namespace defined for prefix text [at line 271, column 40]
	at org.exist.dom.QName.parse(QName.java:324)
	at org.exist.xquery.FunctionFactory.createFunction(FunctionFactory.java:45)
	at org.exist.xquery.parser.XQueryTreeParser.functionCall(XQueryTreeParser.java:9878)
	at org.exist.xquery.parser.XQueryTreeParser.primaryExpr(XQueryTreeParser.java:7027)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:3492)
	at org.exist.xquery.parser.XQueryTreeParser.functionCall(XQueryTreeParser.java:9857)
	at org.exist.xquery.parser.XQueryTreeParser.primaryExpr(XQueryTreeParser.java:7027)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:3492)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:1842)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:416)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:2570)
	at org.exist.xquery.parser.XQueryTreeParser.functionDecl(XQueryTreeParser.java:5562)
	at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4690)
	at org.exist.xquery.parser.XQueryTreeParser.libraryModule(XQueryTreeParser.java:3955)
	at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3789)
	at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3573)
	at org.exist.xquery.XQueryContext.compileModule(XQueryContext.java:2882)
	at org.exist.xquery.XQueryContext.compileOrBorrowModule(XQueryContext.java:2820)
	at org.exist.xquery.XQueryContext.importModule(XQueryContext.java:2735)
	at org.exist.xquery.parser.XQueryTreeParser.importDecl(XQueryTreeParser.java:5673)
	at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4697)
	at org.exist.xquery.parser.XQueryTreeParser.mainModule(XQueryTreeParser.java:3967)
	at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3912)
	at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3573)
	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:682)
	at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:256)
	... 30 more

Caused by:

org.exist.xquery.XPathException: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: No namespace defined for prefix text [at line 271, column 40]
	at org.exist.dom.QName.parse(QName.java:324)
	at org.exist.xquery.FunctionFactory.createFunction(FunctionFactory.java:45)
	at org.exist.xquery.parser.XQueryTreeParser.functionCall(XQueryTreeParser.java:9878)
	at org.exist.xquery.parser.XQueryTreeParser.primaryExpr(XQueryTreeParser.java:7027)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:3492)
	at org.exist.xquery.parser.XQueryTreeParser.functionCall(XQueryTreeParser.java:9857)
	at org.exist.xquery.parser.XQueryTreeParser.primaryExpr(XQueryTreeParser.java:7027)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:3492)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:1842)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:416)
	at org.exist.xquery.parser.XQueryTreeParser.expr(XQueryTreeParser.java:2570)
	at org.exist.xquery.parser.XQueryTreeParser.functionDecl(XQueryTreeParser.java:5562)
	at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4690)
	at org.exist.xquery.parser.XQueryTreeParser.libraryModule(XQueryTreeParser.java:3955)
	at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3789)
	at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3573)
	at org.exist.xquery.XQueryContext.compileModule(XQueryContext.java:2882)
	at org.exist.xquery.XQueryContext.compileOrBorrowModule(XQueryContext.java:2820)
	at org.exist.xquery.XQueryContext.importModule(XQueryContext.java:2735)
	at org.exist.xquery.parser.XQueryTreeParser.importDecl(XQueryTreeParser.java:5673)
	at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4697)
	at org.exist.xquery.parser.XQueryTreeParser.mainModule(XQueryTreeParser.java:3967)
	at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3912)
	at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3573)
	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:682)
	at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:256)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
	at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
	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.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
	at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:459)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:524)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Thread.java:745)

Powered by Jetty:// 9.3.9.v20160517

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: eXist-db 3.0 issues continue...

Wolfgang Meier-2
javax.servlet.ServletException: An error occurred while processing request to /exist/apps/dashboard/: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: No namespace defined for prefix text [at line 271, column 40]

You need to update the dashboard, see https://gist.github.com/wolfgangmm/5880377

Wolfgang

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: eXist-db 3.0 issues continue...

John Preimonas-2
Thanks Wolfgang,

New Dashboard came up and is running. So that’s problem #2 fixed.

Now for problem #3: unable to create Applications in Exide (see screenshot attached). I get a strange blank black (and yellow) popup and that’s all.
And I have tried but cannot create collections via Dashboard-Collections-New Collection button (see other screenshot).

What is going (or should I say not going on)?

Regards,
John



On 24 Feb 2017, at 6:40 pm, Wolfgang Meier <[hidden email]> wrote:

javax.servlet.ServletException: An error occurred while processing request to /exist/apps/dashboard/: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: No namespace defined for prefix text [at line 271, column 40]

You need to update the dashboard, see https://gist.github.com/wolfgangmm/5880377

Wolfgang

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Exist-open] eXist-db 3.0 issues continue...

John Preimonas-2
Further checking … No users or groups found in User Manager. What has happened to my download of eXist-db 3.0? Nothing appears to be working correctly at all.

Regards,
John


Begin forwarded message:

From: John Preimonas <[hidden email]>
Subject: Re: [Exist-open] eXist-db 3.0 issues continue...
Date: 26 February 2017 at 2:43:26 pm AEST
To: Wolfgang Meier <[hidden email]>
Cc: exist-open <[hidden email]>

Thanks Wolfgang,

New Dashboard came up and is running. So that’s problem #2 fixed.

Now for problem #3: unable to create Applications in Exide (see screenshot attached). I get a strange blank black (and yellow) popup and that’s all.
And I have tried but cannot create collections via Dashboard-Collections-New Collection button (see other screenshot).

What is going (or should I say not going on)?

Regards,
John



On 24 Feb 2017, at 6:40 pm, Wolfgang Meier <[hidden email]> wrote:

javax.servlet.ServletException: An error occurred while processing request to /exist/apps/dashboard/: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: No namespace defined for prefix text [at line 271, column 40]

You need to update the dashboard, see https://gist.github.com/wolfgangmm/5880377

Wolfgang

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: eXist-db 3.0 issues continue...

John Preimonas-2
Hello Wolfgang, and the eXist community,

1. Well, I have finally recovered my database, but it required me restoring from a two week old system backup. So, I now don’t know which version of eXist-db I am now running. And… 
2. It seems I am back to my original problem when I first changed over to exist-db v3.0. It looks like it has something to do with the group by clause. Can anyone see why I am now getting the following error:

err:XPTY0004 Too many operands at the left of - [at line 1283, column 21, source: /db/apps/gliding/resources/glidingFunctions.xqm]
In function:
gFn:expensesBalance() [36:14:/db/apps/gliding/resources/glidingFunctions.xqm]

from this function:

(:  -------- calculate expenses status per club ------------------- :)
declare function gFn:expensesBalance() {

   for $expenses in collection($gFn:data-expenses)/expense
   let $credit := sum($expenses[exptype = "CR"]/expamount)
   let $debit := sum($expenses[exptype != "CR"]/expamount)
   let $balance :=  
       if ($credit - $debit ge 0)
       then gFn:format-number($credit - $debit, $gFn:currencyFormat) || ' (CR)'
       else gFn:format-number($credit - $debit, $gFn:currencyFormat)|| ' (DB)'
   group by $clubs := $expenses/expclub
   order by $clubs
return

   <flightname class="w3-card-12 w3-padding-16 w3-theme-l2" name="{$clubs}">
       {
   if ($clubs eq $gFn:defaults//club)
   then if ($credit - $debit ge 0)
       then <span class="w3-theme-dark">{$clubs || ' ' || $balance}</span> 
       else <span class="w3-text-red">{$clubs || ' ' || $balance}</span> 
   else if ($credit - $debit != 0)
       then if ($credit - $debit gt 0)
           then <span class="w3-theme-d3">{$clubs || ' ' || $balance}</span>
           else <span class="w3-text-red">{$clubs || ' ' || $balance}</span>
       else ()
       }
  </flightname>

};

Has something changed with how group by operates?

3. Dashboard—>eXist Documentation does not run. The following comes up:

HTTP ERROR 500

Problem accessing /exist/apps/doc/. Reason:

    Server Error

Caused by:

javax.servlet.ServletException: An error occurred while processing request to /exist/apps/doc/: An unknown error occurred: null
	at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:378)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
	at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
etc., etc., etc.

4. Dashboard—>XQuery Function documentation does not run either. The following comes up:

HTTP ERROR 500

Problem accessing /exist/apps/fundocs/index.html. Reason:

    Server Error

Caused by:

javax.servlet.ServletException: An error occurred while processing request to /exist/apps/fundocs/index.html: An unknown error occurred: null
	at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:378)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
	at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
etc., etc., etc.

5. Dashboard—>Monitoring and Profiling for eXist does not work. The following comes up:

exerr:ERROR error found while loading module app: Error while loading module app.xql: error found while loading module console: Cannot find module class from EXPath repository: org.exist.console.xquery.ConsoleModule


I am certainly not having any joy with this product now.

Regards,
John


Begin forwarded message:

From: John Preimonas <[hidden email]>
Subject: Exist-open] eXist-db 3.0 issues continue...
Date: 26 February 2017 at 9:38:12 pm AEST
To: Wolfgang Meier <[hidden email]>, exist-open <[hidden email]>

Further checking … No users or groups found in User Manager. What has happened to my download of eXist-db 3.0? Nothing appears to be working correctly at all.

Regards,
John


Begin forwarded message:

From: John Preimonas <[hidden email]>
Subject: Re: [Exist-open] eXist-db 3.0 issues continue...
Date: 26 February 2017 at 2:43:26 pm AEST
To: Wolfgang Meier <[hidden email]>
Cc: exist-open <[hidden email]>

Thanks Wolfgang,

New Dashboard came up and is running. So that’s problem #2 fixed.

Now for problem #3: unable to create Applications in Exide (see screenshot attached). I get a strange blank black (and yellow) popup and that’s all.
And I have tried but cannot create collections via Dashboard-Collections-New Collection button (see other screenshot).

What is going (or should I say not going on)?

Regards,
John



On 24 Feb 2017, at 6:40 pm, Wolfgang Meier <[hidden email]> wrote:

javax.servlet.ServletException: An error occurred while processing request to /exist/apps/dashboard/: err:XPST0081 error found while loading module restxq: Error while loading module modules/restxq.xql: No namespace defined for prefix text [at line 271, column 40]

You need to update the dashboard, see https://gist.github.com/wolfgangmm/5880377

Wolfgang


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: eXist-db 3.0 issues continue...

Wolfgang Meier-2
Hello John,

> 2. It seems I am back to my original problem when I first changed over to exist-db v3.0. It looks like it has something to do with the group by clause. Can anyone see why I am now getting the following error:
>
> err:XPTY0004 Too many operands at the left of - [at line 1283, column 21, source: /db/apps/gliding/resources/glidingFunctions.xqm]

The implementation of „group by“ has become more compliant with the spec. „group by" has an effect on all tuple variables declared before it. $credit and $debit thus become sequences with one item for each member of the current group. Consequently $credit - $debit may fail because $credit and $debit contain more than one value.

> 3. Dashboard—>eXist Documentation does not run. The following comes up:
> HTTP ERROR 500
>
> Problem accessing /exist/apps/doc/. Reason:
>
>     Server Error
>
> Caused by:
>
> javax.servlet.ServletException: An error occurred while processing request to /exist/apps/doc/: An unknown error occurred: null

This seems to point to a NullPointerException somewhere. Any additional information in the logs? Would reinstalling the package work?

Wolfgang
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...