HTTP ERROR 500 javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/restxq/edoc/resource/pa000001-0073: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql]
URI: | /exist/restxq/edoc/resource/pa000001-0073 |
STATUS: | 500 |
MESSAGE: | javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/restxq/edoc/resource/pa000001-0073: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql] |
SERVLET: | XQueryURLRewrite |
CAUSED BY: | javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/restxq/edoc/resource/pa000001-0073: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql] |
CAUSED BY: | javax.servlet.ServletException: An error occurred while processing request to /exist/restxq/edoc/resource/pa000001-0073: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql] |
CAUSED BY: | javax.servlet.ServletException: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql] |
CAUSED BY: | org.exquery.restxq.RestXqServiceException: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql] |
CAUSED BY: | org.exist.xquery.XPathException: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql] |
Caused by:
javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/restxq/edoc/resource/pa000001-0073: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:162)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: javax.servlet.ServletException: An error occurred while processing request to /exist/restxq/edoc/resource/pa000001-0073: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql]
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:366)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1631)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:571)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
... 18 more
Caused by: javax.servlet.ServletException: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql]
at org.exist.extensions.exquery.restxq.impl.RestXqServlet.service(RestXqServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1459)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1631)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:618)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:167)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:81)
at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50)
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:203)
... 41 more
Caused by: org.exquery.restxq.RestXqServiceException: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql]
at org.exist.extensions.exquery.restxq.impl.ResourceFunctionExecutorImpl.execute(ResourceFunctionExecutorImpl.java:197)
at org.exquery.restxq.impl.AbstractRestXqService.service(AbstractRestXqService.java:192)
at org.exist.extensions.exquery.restxq.impl.RestXqServiceImpl.service(RestXqServiceImpl.java:124)
at org.exist.extensions.exquery.restxq.impl.RestXqServlet.service(RestXqServlet.java:87)
... 63 more
Caused by: org.exist.xquery.XPathException: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: wdbFiles:getModificationDate($collectionPath as xs:string, $fileName as xs:string) xs:dateTime. Expected cardinality: exactly one, got 0. [at line 100, column 44, source: /db/apps/edoc/modules/wdb-files.xqm]
In function:
wdbFiles:getModificationDate(xs:string, xs:string) [100:10:/db/apps/edoc/modules/wdb-files.xqm]
wdbFiles:getModificationDate(xs:string) [251:52:/db/apps/edoc/modules/wdb-files.xqm]
wdbRf:getResource(xs:string, xs:string*) [-1:-1:/db/apps/edoc/rest/rest-files.xql]
at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:85)
at org.exist.xquery.UntypedValueCheck.eval(UntypedValueCheck.java:81)
at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:60)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:189)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:161)
at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:73)
at org.exist.xquery.Atomize.eval(Atomize.java:66)
at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:60)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:289)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:207)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.ArrowOperator.eval(ArrowOperator.java:96)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:279)
at org.exist.xquery.AttributeConstructor.eval(AttributeConstructor.java:95)
at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:224)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:279)
at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:330)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:279)
at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:330)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:279)
at org.exist.xquery.SequenceConstructor.eval(SequenceConstructor.java:82)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.LetExpr.eval(LetExpr.java:110)
at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:161)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:289)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:248)
at org.exist.xquery.value.FunctionReference.evalFunction(FunctionReference.java:99)
at org.exist.extensions.exquery.restxq.impl.ResourceFunctionExecutorImpl.execute(ResourceFunctionExecutorImpl.java:169)
... 66 more
Powered by Jetty:// 9.4.44.v20210927