0

client error: Failed to mount: Unexpected token '.'

asked 2022-04-09 17:35:11 +0800

mattelite gravatar image mattelite
3 1

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?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-04-11 15:06:23 +0800

hawk gravatar image hawk
3023 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2022-04-13 09:23:08 +0800

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>
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2022-04-09 17:35:11 +0800

Seen: 2 times

Last updated: Apr 13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More