pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prophe ...@cargosoft.ru>
Subject Error in tableView
Date Thu, 06 Oct 2011 08:10:40 GMT
I have an error in my tableView, when I change the data with row editor in
the column and after that try to sort this column? I have an error:
java.lang.reflect.UndeclaredThrowableException
	at $Proxy8.sortChanged(Unknown Source)
	at
org.apache.pivot.wtk.TableView$TableViewSortListenerList.sortChanged(TableView.java:1016)
	at org.apache.pivot.wtk.TableView.setSort(TableView.java:1854)
	at org.apache.pivot.wtk.TableView.setSort(TableView.java:1825)
	at
org.apache.pivot.wtk.skin.terra.TerraTableViewHeaderSkin.mouseClick(TerraTableViewHeaderSkin.java:790)
	at
org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseClick(Component.java:483)
	at org.apache.pivot.wtk.Component.mouseClick(Component.java:2777)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:774)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
	at
org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:914)
	at java.awt.Component.processEvent(Component.java:6032)
	at
org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:709)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: javax.script.ScriptException:
sun.org.mozilla.javascript.internal.WrappedException: Wrapped
java.lang.ClassCastException:
sun.org.mozilla.javascript.internal.NativeString cannot be cast to
java.lang.String (<Unknown source>#4) in <Unknown source> at line number 4
	at
com.sun.script.javascript.RhinoScriptEngine.invoke(RhinoScriptEngine.java:184)
	at
com.sun.script.javascript.RhinoScriptEngine.invokeFunction(RhinoScriptEngine.java:142)
	at
org.apache.pivot.beans.BXMLSerializer$ElementInvocationHandler.invoke(BXMLSerializer.java:180)
	... 36 more

My sort listener is:

					<tableViewSortListeners>
						function sortChanged(tableView) {
							var tableData = tableView.getTableData();
							tableData.setComparator(new
org.apache.pivot.wtk.content.TableViewRowComparator(tableView));
						}
					</tableViewSortListeners>


-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Error-in-tableView-tp3399000p3399000.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Mime
View raw message