1

Uncaught TypeError: Cannot read property 'offsetHeight' of null

asked 2015-03-16 06:48:39 +0800

echarish gravatar image echarish flag of Japan
1809 7
http://jp.linkedin.com/in...

updated 2015-03-16 08:21:11 +0800

I am getting below errors while trying to display zul files, this error occurs on allmost all browsers

TypeError: Cannot read property 'offsetHeight' of null

Failed to mount: Cannot read property 'offsetHeight' of null

TypeError: ao is null

in zk.wpd script file

Most of the times it works properly but only sometimes i get this error, i am not able to determine what is the root cause for it, will really appriciate if someone can point me to right direction to solve this issue.

delete flag offensive retag edit

Comments

You are trying to read the getOffsetHeight of a object what is null. (it's a masked NullPointerException) Strangly it happens in the zk.wpd file so if you can simulate this in a fiddle this should be helpful for us to determine what the root cause is.

chillworld ( 2015-03-16 07:04:15 +0800 )edit

The problem is this issue occurs on a zul page where i am displaying data after fetching from DB, it works without any issue for most of the times but if i keep opening and closing the same page for few times it shows this error, there is no constant attempts for this error to occur :(

echarish ( 2015-03-16 07:54:07 +0800 )edit

I have been trying to replicate it consistently but till now no luck

echarish ( 2015-03-16 07:58:48 +0800 )edit

try adding logging for the result of the DB and otherwise classoverride the closest class where the exception is thrown and add logging there

chillworld ( 2015-03-16 08:21:35 +0800 )edit

in zk.wpd it is throwing zk.mounting = false; zk.error("Failed to mount: "+(e.message||e)); how can i check which component its not able to mount, is there a way to override zk.wpd file from application and log the component name in console or logger

echarish ( 2015-03-17 01:45:17 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2015-03-23 02:26:29 +0800

echarish gravatar image echarish flag of Japan
1809 7
http://jp.linkedin.com/in...

updated 2015-03-23 02:27:08 +0800

I am using 6.5.2

link publish delete flag offensive edit

Comments

Any solution i am facing the same problem with 6.5.2 thanks a lot.

javiut ( 2015-10-29 12:35:09 +0800 )edit
0

answered 2015-03-18 15:38:50 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

which zk version do you use?

link publish delete flag offensive edit

Comments

this problem persist.. like echarish say is the same i am facing. the same problem i have 4 listboxes when accesing to the tab a refresh is made from DB in every listbox the problem is throw in the 3 time the refresh is made i mean the 3 time accesing the tab..

javiut ( 2015-11-01 13:14:39 +0800 )edit

If i ignore the listbox.setModel(model); the error is not throw at all. but if i reload from the same listbox model i mean building a new bindinglistmodellist from the existing data in the listbox not error is throw neither but when new data is build in the model from the database

javiut ( 2015-11-01 13:16:45 +0800 )edit

Not error is throw in the console not error is throw in in ZK not popup is show but in the console i can see a Uncaught TypeError: Cannot read property 'sync' of undefined and the dom begin to have problems... i am using 6.5.2

javiut ( 2015-11-01 13:17:39 +0800 )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
2 followers

RSS

Stats

Asked: 2015-03-16 06:48:39 +0800

Seen: 32 times

Last updated: Mar 23 '15

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