org.zkoss.zk.ui.UiException: Out of bound:
2009-08-19 15:42
302 查看
异常日志:
异常原因分析:
ZK的UiException基本都出现在zul页面的元素错误,根据错误信息可以明显分析出是Listbox索引超出下标了.经过检查发现,两个Listbox同时绑定到一个数据上,而第一个Listbox组件拥有8个listitem,而第二个只有6个,当第一个listbox选中第7个时,就会发生索引越界.
解决方案:
尽量不要多个组件绑定同一个数据.
2009-8-19 15:38:19 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1108 严重: >>org.zkoss.zk.ui.UiException: Out of bound: 8 while size=7 >> at org.zkoss.zul.Listbox.setSelectedIndex(Listbox.java:662) >> at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at org.zkoss.lang.reflect.Fields.set(Fields.java:153) >> at org.zkoss.zkplus.databind.Binding.myLoadAttribute(Binding.java:316) >> at org.zkoss.zkplus.databind.Binding.loadAttribute(Binding.java:279) >> at org.zkoss.zkplus.databind.DataBinder$LoadOnSaveEventListener.loadAllBindings(DataBinder.java:1472) >>...
异常原因分析:
ZK的UiException基本都出现在zul页面的元素错误,根据错误信息可以明显分析出是Listbox索引超出下标了.经过检查发现,两个Listbox同时绑定到一个数据上,而第一个Listbox组件拥有8个listitem,而第二个只有6个,当第一个listbox选中第7个时,就会发生索引越界.
解决方案:
尽量不要多个组件绑定同一个数据.
相关文章推荐
- org.zkoss.zk.ui.UiException: java.lang.NoSuchMethodException:
- zkoss框架异常:org.zkoss.zk.ui.metainfo.PropertyNotFoundException: Method setLable not found for class or
- org.zkoss.zk.ui.UiException:Sourced file: inline evaluation of:
- Exception in org.eclipse.debug.internal.ui.DebugUIPlugin.start() of bundle org.eclipse.debug.ui.
- org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transac
- org.apache.hadoop.hbase.ClockOutOfSyncException
- org.apache.hadoop.hbase.ClockOutOfSyncException: org.apache.hadoop.hbase.ClockOutOfSyncException: Se
- 【解决】org.apache.hadoop.hbase.ClockOutOfSyncException:
- Hbase启动从节点报错:FATAL org.apache.hadoop.hbase.regionserver.HRegionServer:...ClockOutOfSyncException
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration
- 继承类的@Transactional:org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
- org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
- org.springframework.dao.InvalidDataAccessApiUsageException: ERR value is not an integer or out of ra
- java.lang.ArrayIndexOutofBoundException Array index out of range 0
- hbase异常org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hbase.ClockOutOfSyncException): org.a
- org.apache.hive.service.cli.HiveSQLException: Error running query: java.lang.OutOfMemoryError: PermG
- org.apache.hadoop.hbase.ClockOutOfSyncException
- 启动HBase抛出org.apache.hadoop.hbase.ClockOutOfSyncException异常
- org.springframework.dao.TransientDataAccessResourceException: PreparedStatementCallback.....Parameter index out of range (1 > number of parameters, which is 0).;
- 访问Storm ui界面,出现org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts ["master"]. Did you specify a valid list of nimbus hosts for confi的问题解决(图文详解)