Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » DateTime widget : java.lang.UnsupportedOperationException: Not a number: "18"
DateTime widget : java.lang.UnsupportedOperationException: Not a number: "18" [message #1109197] Sun, 15 September 2013 02:49 Go to next message
Song David is currently offline Song DavidFriend
Messages: 190
Registered: April 2011
Senior Member
Hi,
java.lang.UnsupportedOperationException: Not a number: xx when using DateTime Widget and the detail is as the following code:

java.lang.UnsupportedOperationException: Not a number: "18"
	at org.eclipse.rap.json.JsonValue.asInt(JsonValue.java:288)
	at org.eclipse.swt.internal.widgets.datetimekit.DateTimeOperationHandler.handleSetDate(DateTimeOperationHandler.java:67)
	at org.eclipse.swt.internal.widgets.datetimekit.DateTimeOperationHandler.handleSet(DateTimeOperationHandler.java:40)
	at org.eclipse.swt.internal.widgets.datetimekit.DateTimeOperationHandler.handleSet(DateTimeOperationHandler.java:1)
	at org.eclipse.rap.rwt.internal.protocol.ControlOperationHandler.handleSet(ControlOperationHandler.java:1)
	at org.eclipse.rap.rwt.internal.protocol.WidgetOperationHandler.handleSet(WidgetOperationHandler.java:39)
	at org.eclipse.rap.rwt.lifecycle.AbstractWidgetLCA.handleOperation(AbstractWidgetLCA.java:161)
	at org.eclipse.rap.rwt.lifecycle.AbstractWidgetLCA.readData(AbstractWidgetLCA.java:84)
	at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$1.doVisit(DisplayLCA.java:78)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidgetTreeVisitor.visit(WidgetTreeVisitor.java:40)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:52)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
	at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
	at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readData(DisplayLCA.java:85)
	at org.eclipse.rap.rwt.internal.lifecycle.ReadData.execute(ReadData.java:26)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:164)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:244)
	at org.eclipse.swt.widgets.Display.sleep(Display.java:1249)
	at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:361)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2734)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
	at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:701)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:684)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
	at datetimetestproj.Application.start(Application.java:18)
	at org.eclipse.rap.ui.internal.application.EntryPointApplicationWrapper.createUI(EntryPointApplicationWrapper.java:38)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:186)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:298)
	at java.lang.Thread.run(Unknown Source)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:104)


and I attach an example project. RAP 2.2 M1 or nightly build rap-2.2.0-N-20130913-1158 on windows 8.

Best Regards
David
Re: DateTime widget : java.lang.UnsupportedOperationException: Not a number: "18" [message #1109378 is a reply to message #1109197] Sun, 15 September 2013 09:43 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1856
Registered: July 2009
Senior Member
Hi David,
thanks for reporting. I fixed it in git master.
Best,
Ivan

On 9/15/2013 5:49 AM, Song David wrote:
> Hi,
> java.lang.UnsupportedOperationException: Not a number: xx when using DateTime Widget and the detail is as the following code:
>
> java.lang.UnsupportedOperationException: Not a number: "18"
> at org.eclipse.rap.json.JsonValue.asInt(JsonValue.java:288)
> at org.eclipse.swt.internal.widgets.datetimekit.DateTimeOperationHandler.handleSetDate(DateTimeOperationHandler.java:67)
> at org.eclipse.swt.internal.widgets.datetimekit.DateTimeOperationHandler.handleSet(DateTimeOperationHandler.java:40)
> at org.eclipse.swt.internal.widgets.datetimekit.DateTimeOperationHandler.handleSet(DateTimeOperationHandler.java:1)
> at org.eclipse.rap.rwt.internal.protocol.ControlOperationHandler.handleSet(ControlOperationHandler.java:1)
> at org.eclipse.rap.rwt.internal.protocol.WidgetOperationHandler.handleSet(WidgetOperationHandler.java:39)
> at org.eclipse.rap.rwt.lifecycle.AbstractWidgetLCA.handleOperation(AbstractWidgetLCA.java:161)
> at org.eclipse.rap.rwt.lifecycle.AbstractWidgetLCA.readData(AbstractWidgetLCA.java:84)
> at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$1.doVisit(DisplayLCA.java:78)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidgetTreeVisitor.visit(WidgetTreeVisitor.java:40)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:52)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.handleChildren(WidgetTreeVisitor.java:127)
> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:57)
> at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readData(DisplayLCA.java:85)
> at org.eclipse.rap.rwt.internal.lifecycle.ReadData.execute(ReadData.java:26)
> at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:164)
> at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:244)
> at org.eclipse.swt.widgets.Display.sleep(Display.java:1249)
> at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:361)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2734)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:701)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:684)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
> at datetimetestproj.Application.start(Application.java:18)
> at org.eclipse.rap.ui.internal.application.EntryPointApplicationWrapper.createUI(EntryPointApplicationWrapper.java:38)
> at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:186)
> at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:298)
> at java.lang.Thread.run(Unknown Source)
> at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:104)
>
>
> and I attach an example project. RAP 2.2 M1 or nightly build rap-2.2.0-N-20130913-1158 on windows 8.
>
> Best Regards
> David

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Cannot set osgi property using RAP launcher
Next Topic:RAP 2.2 Full screen app - resize does not work
Goto Forum:
  


Current Time: Wed Nov 26 02:10:41 GMT 2014

Powered by FUDForum. Page generated in 0.03444 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software