-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
I am using 6.5.2
which zk version do you use?
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 )editIf 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 )editAsked: 2015-03-16 06:48:39 +0800
Seen: 35 times
Last updated: Mar 23 '15
zk.wpd JS error, with window inside window
Java Script error zk.wpd in Explorer
ArrayIndexOuOfBoundsException showing Messagebox
error PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session
no grammar constraints (dtd or xml schema) detected for the document
ListModelList.clear() - Error in ZK Framework?
You are trying to read the getOffsetHeight of a object what is null. (it's a masked
chillworld ( 2015-03-16 07:04:15 +0800 )editNullPointerException
) 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.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 )editI have been trying to replicate it consistently but till now no luck
echarish ( 2015-03-16 07:58:48 +0800 )edittry 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 )editin 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