-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
Sometimes I have an error in Catalina log in Tomcat!
Apr 09, 2022 1:56:58 PM org.zkoss.zk.ui.impl.DesktopImpl service:732 SEVERE: [Desktop z_ihc:/index.zul] client error: Failed to mount: Unexpected token '.'
Any thoughts on how to resolve this?
The error means a javascript error happened on index.zul in a browser. Since the error message "Unexpected token '.'" is quite general. It's hard to infer what's the root cause. But it's definitely a JavaScript syntax error. So please check the included js files on that page.
It's better to open the browser developer tool > Console tab on the target browser to check the error's stack trace.
If zk doesn't print the stack trace for that error, please put the setting below in zk.xml to print it:
<device-config>
<device-type>ajax</device-type>
<embed><![CDATA[
<script type="text/javascript">
zk.afterLoad('zk', function() {
zk.error = function (msg) {
zAu.send(new zk.Event(null, 'error', {message: msg}, {ignorable: true}), 800);
zk._Erbx.push(msg);
if (msg.stack){
console.log(msg.stack);
}
};
});
</script>
]]></embed>
</device-config>
Asked: 2022-04-09 17:35:11 +0800
Seen: 4 times
Last updated: Apr 13 '22
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate