Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004562Clover Designer(No Category)public2010-07-16 11:412010-07-22 14:30
Reporteravackova 
Assigned Tomzatopek 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Versionrel-3-0-0Fixed in Versionrel-3-0-0 
Summary0004562: DataPartition - ranges editor doesn't work properly with datetime
Description: is interpreted as field separator, not the time separator. So when I set the value that contains : as time separator, the graph fails:
Element [PARTITION0:Partition]-Component pre-execute initialization failed.
    at org.jetel.graph.Node.run(Node.java:417)
    at java.lang.Thread.run(Thread.java:619)
Caused by: Element [PARTITION0_lookupTable:]-ORDERDATE_D_start (date) cannot be set to "01 07 1910 11;1=31;2=45" - doesn't match defined format "dd MM yyyy hh:mm:ss" in field # 2 of record # 1, value: '01 07 1910 11;1=31;2=45'
    at org.jetel.lookup.RangeLookupTable.preExecute(RangeLookupTable.java:332)
    at org.jetel.component.partition.RangePartition.preExecute(RangePartition.java:82)
    at org.jetel.component.Partition.preExecute(Partition.java:241)
    at org.jetel.graph.Node.run(Node.java:415)
and the value can't be edited in gui any more:
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at com.cloveretl.gui.jface.RangeValidator.isValid(RangeValidator.java:77)
at com.cloveretl.gui.jface.dialogs.RangeEditorDialog.parseValue(RangeEditorDialog.java:116)
at com.cloveretl.gui.jface.dialogs.RangeEditorDialog.<init>(RangeEditorDialog.java:106)
at com.cloveretl.gui.jface.viewers.RangeCellEditor.openDialogBox(RangeCellEditor.java:71)
at org.eclipse.jface.viewers.DialogCellEditor$2.widgetSelected(DialogCellEditor.java:244)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.cloveretl.gui.dialog.EditComponentDialog.open(EditComponentDialog.java:77)
at com.cloveretl.gui.actions.EditComponentAction.run(EditComponentAction.java:98)
at com.cloveretl.gui.graph.edit.ETLComponentEditPart.performRequest(ETLComponentEditPart.java:249)
at org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:187)
at org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:131)
at org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:955)
at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:501)
at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:208)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:285)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:508)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:183)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Additional InformationThe value should be quoted before serializing.
TagsNo tags attached.
OTRS_Ticket_ID
Time estimate (manhours)
Time duration (manhours)
Completion status10
Attached Files

- Relationships

-  Notes
(0008477)
avackova (developer)
2010-07-16 11:41

xls.grf in test server
(0008566)
mzatopek (developer)
2010-07-22 14:30

That was fixed by more restrictive partition ranges format:

<1,2>;(5,10)

Now the semi-colon is only option how to separate particular ranges. The former implementation makes available to separate them by following characters |;:

- Issue History
Date Modified Username Field Change
2010-07-16 11:41 avackova New Issue
2010-07-16 11:41 avackova Note Added: 0008477
2010-07-21 18:14 pnajvar Assigned To => mzatopek
2010-07-21 18:14 pnajvar Status new => assigned
2010-07-21 18:14 pnajvar Target Version => rel-3-0-0
2010-07-22 14:30 mzatopek Note Added: 0008566
2010-07-22 14:30 mzatopek Status assigned => resolved
2010-07-22 14:30 mzatopek Fixed in Version => rel-3-0-0
2010-07-22 14:30 mzatopek Resolution open => fixed


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker