Pietro Liuzzo
2017-05-30 14:36:29 UTC
Dear all,
after restarting with YAJSW my exist 3.1.1 instance none of my apps works
any more.
I get either an empty template or the following message.
<exception>
<path>/db/apps/monex/modules/view.xql</path>
<message>
exerr:ERROR The actual return type does not match the sequence type
declared in the function's signature: config:app-title(node(), map) text().
Expected cardinality: exactly one, got 0. [at line 63, column 50, source:
/db/apps/monex/modules/view.xql] In function: config:app-title(node(), map)
[217:18:/db/apps/monex/modules/config.xqm] templates:call-with-args(function,
function*, element(), map) [208:13:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*, element()) [205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(),
map, map, function) [187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(),
element(), map) [135:36:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [465:17:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*) [273:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*, element()) [205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(),
map, map, function) [187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(),
element(), map) [143:37:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [131:51:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [88:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:apply(node()+, function, map?, map?) [43:5:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
</message>
</exception>
this is what the console said:
sudo tools/yajsw/bin/startDaemon.sh
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /home/liuzzo/exist/tools/yajsw
configuration: /home/liuzzo/exist/tools/yajsw/conf/wrapper.conf
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /home/liuzzo/exist/tools/yajsw
configuration: /home/liuzzo/exist/tools/yajsw/conf/wrapper.conf
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-httpclient-3.0.1.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-codec-1.3.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-net-3.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/regex/
automaton-1.11.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/joda-
time-2.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/
yacron4j-00.03.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/jgoodies/
forms-1.2.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
jackrabbit-webdav-1.5.6.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
xercesImpl.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-jdk14-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-api-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
vfs-dbx-00.02.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
dropbox-core-sdk-1.7.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
jackson-core-2.2.4.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/keystore/
keystore.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/abeille/
formsrt.jar
YAJSW: yajsw-stable-12.08
OS : Linux/3.13.0-116-generic/amd64
JVM : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-openjdk-amd64/jre/64
May 30, 2017 2:22:27 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
May 30, 2017 2:22:28 PM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/eXist-db already exists
************* STARTING eXist-db ***********************
May 30, 2017 2:22:28 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:32 PM org.rzo.yajsw.os.posix.PosixService start
INFO: Starting eXist-db ...
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-httpclient-3.0.1.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-codec-1.3.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-net-3.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/regex/
automaton-1.11.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/joda-
time-2.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/
yacron4j-00.03.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/jgoodies/
forms-1.2.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
jackrabbit-webdav-1.5.6.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
xercesImpl.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-jdk14-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-api-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
vfs-dbx-00.02.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
dropbox-core-sdk-1.7.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
jackson-core-2.2.4.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/keystore/
keystore.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/abeille/
formsrt.jar
YAJSW: yajsw-stable-12.08
OS : Linux/3.13.0-116-generic/amd64
JVM : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-openjdk-amd64/jre/64
************* STARTING eXist-db ***********************
Service eXist-db started
May 30, 2017 2:22:32 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:33 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:33 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
Service eXist-db started
I also get two java process started when I though one was enough...
12991 root 20 0 3973188 92708 14092 S 0.3 1.1 0:04.26 java
13009 root 20 0 6201528 614712 23600 S 0.3 7.5 1:14.54 java
can somebody help me to understand what has gone wrong and how to fix this?
thanks a lot!
after restarting with YAJSW my exist 3.1.1 instance none of my apps works
any more.
I get either an empty template or the following message.
<exception>
<path>/db/apps/monex/modules/view.xql</path>
<message>
exerr:ERROR The actual return type does not match the sequence type
declared in the function's signature: config:app-title(node(), map) text().
Expected cardinality: exactly one, got 0. [at line 63, column 50, source:
/db/apps/monex/modules/view.xql] In function: config:app-title(node(), map)
[217:18:/db/apps/monex/modules/config.xqm] templates:call-with-args(function,
function*, element(), map) [208:13:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*, element()) [205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(),
map, map, function) [187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(),
element(), map) [135:36:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [465:17:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*) [273:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*, element()) [205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(),
map, map, function) [187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(),
element(), map) [143:37:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [131:51:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [88:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:apply(node()+, function, map?, map?) [43:5:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
</message>
</exception>
this is what the console said:
sudo tools/yajsw/bin/startDaemon.sh
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /home/liuzzo/exist/tools/yajsw
configuration: /home/liuzzo/exist/tools/yajsw/conf/wrapper.conf
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /home/liuzzo/exist/tools/yajsw
configuration: /home/liuzzo/exist/tools/yajsw/conf/wrapper.conf
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-httpclient-3.0.1.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-codec-1.3.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-net-3.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/regex/
automaton-1.11.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/joda-
time-2.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/
yacron4j-00.03.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/jgoodies/
forms-1.2.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
jackrabbit-webdav-1.5.6.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
xercesImpl.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-jdk14-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-api-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
vfs-dbx-00.02.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
dropbox-core-sdk-1.7.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
jackson-core-2.2.4.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/keystore/
keystore.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/abeille/
formsrt.jar
YAJSW: yajsw-stable-12.08
OS : Linux/3.13.0-116-generic/amd64
JVM : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-openjdk-amd64/jre/64
May 30, 2017 2:22:27 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
May 30, 2017 2:22:28 PM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/eXist-db already exists
************* STARTING eXist-db ***********************
May 30, 2017 2:22:28 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:32 PM org.rzo.yajsw.os.posix.PosixService start
INFO: Starting eXist-db ...
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-httpclient-3.0.1.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-codec-1.3.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-net-3.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/regex/
automaton-1.11.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/joda-
time-2.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/
yacron4j-00.03.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/jgoodies/
forms-1.2.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
jackrabbit-webdav-1.5.6.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
xercesImpl.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-jdk14-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-api-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
vfs-dbx-00.02.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
dropbox-core-sdk-1.7.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
jackson-core-2.2.4.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/keystore/
keystore.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/abeille/
formsrt.jar
YAJSW: yajsw-stable-12.08
OS : Linux/3.13.0-116-generic/amd64
JVM : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-openjdk-amd64/jre/64
************* STARTING eXist-db ***********************
Service eXist-db started
May 30, 2017 2:22:32 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:33 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:33 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
Service eXist-db started
I also get two java process started when I though one was enough...
12991 root 20 0 3973188 92708 14092 S 0.3 1.1 0:04.26 java
13009 root 20 0 6201528 614712 23600 S 0.3 7.5 1:14.54 java
can somebody help me to understand what has gone wrong and how to fix this?
thanks a lot!
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo