Revision history [back]

click to hide/show revision 1
initial version

asked 2009-05-12 07:59:00 +0800

hawk gravatar image hawk

http://hawkphoenix.blogsp... ZK Team

send events often causes a exception

2009/5/12 下午 03:53:01 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1108 Hi, when I use Events.sendEvent(new Event("onAfterClick",save)); save is a Button.

public void onSave(Event e){ companyDAO.update(selectedCompany); Events.sendEvent(new Event("onAfterClick",save)); }

I often get this exception, not always. 嚴重的: >>java.lang.NullPointerException

at org.zkoss.zkplus.databind.DataBinder.lookupBean( at org.zkoss.zkplus.databind.DataBinder.myGetBeanWithExpression( at org.zkoss.zkplus.databind.DataBinder.getBeanAndRegisterBeanSameNodes( at org.zkoss.zkplus.databind.Binding.loadAttribute( at org.zkoss.zkplus.databind.Binding$LoadEventListener.onEvent( at org.zkoss.zk.ui.impl.EventProcessor.process0(

and after one exception happened, it will continue happening when sending events. Especially in IE6, with firefox rarely happened. does anybody know why?

I found that in lookupBean()

if (bean == null) { final Object self = page.getNamespace().getVariableNames().contains("self") ? page.getNamespace().getVariable("self", true) : null; } ... page.getNamespace() is null, someone know what does it mean?

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