send events often causes a exception

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

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

updated 2009-05-12 09:16:29 +0800

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){
Events.sendEvent(new Event("onAfterClick",save));

I often get this exception, not always.
嚴重的: >>java.lang.NullPointerException
>> at org.zkoss.zkplus.databind.DataBinder.lookupBean(DataBinder.java:1166)
>> at org.zkoss.zkplus.databind.DataBinder.myGetBeanWithExpression(DataBinder.java:904)
>> at org.zkoss.zkplus.databind.DataBinder.getBeanAndRegisterBeanSameNodes(DataBinder.java:886)
>> at org.zkoss.zkplus.databind.Binding.loadAttribute(Binding.java:278)
>> at org.zkoss.zkplus.databind.Binding$LoadEventListener.onEvent(Binding.java:502)
>> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:170)

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?

delete flag offensive retag edit
Be the first one to reply this discussion!
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




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

Seen: 172 times

Last updated: May 12 '09

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