java.lang.IllegalArgumentException: Cannot set null selection on DateTime

GitHub | MicheleMUC | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    IllegalArgumentException: Cannot set null selection on DateTime

    GitHub | 6 months ago | MicheleMUC
    java.lang.IllegalArgumentException: Cannot set null selection on DateTime
  2. 0

    The DateTime control is returning an exception during data binding

    Stack Overflow | 3 months ago | Kevin King
    java.lang.IllegalArgumentException: Cannot set null selection on DateTime

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot set null selection on DateTime

      at org.eclipse.jface.internal.databinding.swt.DateTimeSelectionProperty.doSetValue()
    2. org.eclipse.jface
      DateTimeSelectionProperty.doSetValue
      1. org.eclipse.jface.internal.databinding.swt.DateTimeSelectionProperty.doSetValue(DateTimeSelectionProperty.java:70)
      1 frame
    3. org.eclipse.core
      SimplePropertyObservableValue.doSetValue
      1. org.eclipse.core.databinding.property.value.ValueProperty.setValue(ValueProperty.java:89)
      2. org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.doSetValue(SimplePropertyObservableValue.java:110)
      2 frames
    4. Databinding
      Realm$1.run
      1. org.eclipse.core.databinding.observable.value.AbstractObservableValue.setValue(AbstractObservableValue.java:66)
      2. org.eclipse.core.databinding.observable.value.DecoratingObservableValue.setValue(DecoratingObservableValue.java:115)
      3. org.eclipse.core.databinding.observable.value.DateAndTimeObservableValue.doSetValue(DateAndTimeObservableValue.java:270)
      4. org.eclipse.core.databinding.observable.value.DateAndTimeObservableValue.doSetValue(DateAndTimeObservableValue.java:1)
      5. org.eclipse.core.databinding.observable.value.AbstractObservableValue.setValue(AbstractObservableValue.java:66)
      6. org.eclipse.core.databinding.UpdateValueStrategy.doSet(UpdateValueStrategy.java:469)
      7. org.eclipse.core.databinding.ValueBinding$3$1.run(ValueBinding.java:206)
      8. org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
      8 frames
    5. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    6. Databinding
      Realm$1.run
      1. org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
      2. org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
      3. org.eclipse.core.databinding.ValueBinding$3.run(ValueBinding.java:196)
      4. org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
      4 frames
    7. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    8. Databinding
      DataBindingContext.bindValue
      1. org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
      2. org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
      3. org.eclipse.core.databinding.ValueBinding.doUpdate(ValueBinding.java:158)
      4. org.eclipse.core.databinding.ValueBinding.updateModelToTarget(ValueBinding.java:123)
      5. org.eclipse.core.databinding.ValueBinding.postInit(ValueBinding.java:101)
      6. org.eclipse.core.databinding.Binding.init(Binding.java:81)
      7. org.eclipse.core.databinding.DataBindingContext.bindValue(DataBindingContext.java:167)
      8. org.eclipse.core.databinding.DataBindingContext.bindValue(DataBindingContext.java:130)
      8 frames
    9. org.eclipse.emf
      SimpleControlSWTRenderer.renderControl
      1. org.eclipse.emf.ecp.view.internal.core.swt.renderer.DateTimeControlSWTRenderer.createBindings(DateTimeControlSWTRenderer.java:127)
      2. org.eclipse.emf.ecp.view.spi.core.swt.SimpleControlSWTControlSWTRenderer.createControl(SimpleControlSWTControlSWTRenderer.java:67)
      3. org.eclipse.emf.ecp.view.spi.core.swt.SimpleControlSWTRenderer.renderControl(SimpleControlSWTRenderer.java:255)
      3 frames
    10. org.eclipse.emfforms
      AbstractSWTRenderer.render
      1. org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer.render(AbstractSWTRenderer.java:198)
      1 frame
    11. org.eclipse.emf
      ViewSWTRenderer.renderControl
      1. org.eclipse.emf.ecp.view.spi.core.swt.AbstractControlSWTRenderer.render(AbstractControlSWTRenderer.java:163)
      2. org.eclipse.emf.ecp.view.spi.core.swt.ContainerSWTRenderer.renderControl(ContainerSWTRenderer.java:176)
      3. org.eclipse.emf.ecp.view.internal.core.swt.renderer.ViewSWTRenderer.renderControl(ViewSWTRenderer.java:100)
      3 frames
    12. org.eclipse.emfforms
      AbstractSWTRenderer.render
      1. org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer.render(AbstractSWTRenderer.java:198)
      1 frame
    13. org.eclipse.emf
      ECPE4Editor.setInput
      1. org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:113)
      2. org.eclipse.emf.ecp.ui.e4.editor.ECPE4Editor.setInput(ECPE4Editor.java:102)
      2 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    15. org.eclipse.e4
      EclipseContext.set
      1. org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:54)
      2. org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:90)
      3. org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)
      4. org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:343)
      5. org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:358)
      5 frames
    16. org.eclipse.emf
      DynamicCreateChildrenElementsMenuContribution$1.execute
      1. org.eclipse.emf.ecp.application.e4.editor.E4ModelElementOpener.openModelElement(E4ModelElementOpener.java:77)
      2. org.eclipse.emf.ecp.spi.ui.util.ECPHandlerHelper.openModelElement(ECPHandlerHelper.java:450)
      3. org.eclipse.emf.ecp.ui.e4.view.DynamicCreateChildrenElementsMenuContribution$CustomCreateChildAction.run(DynamicCreateChildrenElementsMenuContribution.java:150)
      4. org.eclipse.emf.ecp.ui.e4.view.DynamicCreateChildrenElementsMenuContribution$1.execute(DynamicCreateChildrenElementsMenuContribution.java:117)
      4 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    18. org.eclipse.e4
      AbstractContributionItem$3.handleEvent
      1. org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:54)
      2. org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
      3. org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)
      4. org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      5. org.eclipse.e4.ui.workbench.renderers.swt.DirectContributionItem.executeItem(DirectContributionItem.java:130)
      6. org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:454)
      7. org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:482)
      7 frames
    19. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
      5 frames
    20. Eclipse Workbench SWT
      PartRenderingEngine$4.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
      1 frame
    21. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      1 frame
    22. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
      1 frame
    23. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
      1 frame
    24. Eclipse Workbench SWT
      E4Application.start
      1. org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:161)
      1 frame
    25. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    26. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      4 frames
    27. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    28. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1519)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      4 frames