Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363670 - [MVC] DojoTimeBox has exception with MVC code
Summary: [MVC] DojoTimeBox has exception with MVC code
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Huang Ji Yong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 00:59 EST by fahua jin CLA
Modified: 2017-02-23 14:19 EST (History)
3 users (show)

See Also:


Attachments
The sample EGL file. (1.21 KB, application/octet-stream)
2011-11-14 00:59 EST, fahua jin CLA
no flags Details
Fix for the exception message (1.05 KB, patch)
2011-12-14 01:00 EST, Huang Ji Yong CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fahua jin CLA 2011-11-14 00:59:11 EST
Build Identifier: 0.7.0.v201111130901

Open the attached handler, below exception is thrown. Also, it's interesting that in my EGL source code, the pattern is "yyyyMMddHHmmssffffff", while in the exception stack, it prints 'yyyyMMddHHmmssSSSSSS'.

Could not render UI
[CRRUI2032E] 时间戳记模式 yyyyMMddHHmmssSSSSSS 无效
[CRRUI2094E] 以下是导致此错误的 EGL 函数调用:

    DojoTimeTextBox.DojoTextBase._setEvent() [native JavaScript]
    DojoTimeTextBox.DojoValidationBase._setEvent() [native JavaScript]
    DojoTimeTextBox.DojoTimeTextBox._setEvent() [native JavaScript]
    DojoTimeTextBox.DojoTextBase.installEventHandlers() [native JavaScript]
    DojoTimeTextBox.DojoValidationBase.installEventHandlers() [native JavaScript]
    DojoTimeTextBox.DojoTimeTextBox.installEventHandlers() [native JavaScript]

uncaught exception: [type=eglx.lang.AnyException, message=[CRRUI2032E] öô3°! yyyyMMddHHmmssSSSSSS àH]
:0
[CRRUI2095E] 未能找到导致此错误的 EGL 函数调用

Reproducible: Always
Comment 1 fahua jin CLA 2011-11-14 00:59:47 EST
Created attachment 206912 [details]
The sample EGL file.
Comment 2 fahua jin CLA 2011-11-14 01:19:01 EST
Set the defect severity to major.
Comment 3 Justin Spadea CLA 2011-11-14 09:24:26 EST
We're only using timestamp with this control because time is unsupported in 0.7. For 1.0 time will be back and this control will go back to using a time value instead of timestamp. Therefore there is the requirement, for 0.7, that you use the format "HHmmss" on your timestamp field if you wish to use it with the DojoTimeTextBox control.
Comment 4 fahua jin CLA 2011-11-15 00:57:54 EST
(In reply to comment #3)
> We're only using timestamp with this control because time is unsupported in
> 0.7. For 1.0 time will be back and this control will go back to using a time
> value instead of timestamp. Therefore there is the requirement, for 0.7, that
> you use the format "HHmmss" on your timestamp field if you wish to use it with
> the DojoTimeTextBox control.

Thanks Justin... 
But I'm curious that why I specified pattern yyyyMMddHHmmssffffff, while it prints yyyyMMddHHmmssSSSSSS in the error stack trace?
Comment 5 Justin Spadea CLA 2011-11-15 10:23:22 EST
The 'S' format in the error message is very minor, we won't fix that in 0.7.
Comment 6 Huang Ji Yong CLA 2011-12-14 01:00:47 EST
Created attachment 208364 [details]
Fix for the exception message
Comment 7 Huang Ji Yong CLA 2011-12-14 01:01:45 EST
Fix the problem mentioned in comment 4.
Comment 8 fahua jin CLA 2012-01-16 20:29:52 EST
Verified in 0.8.0.v201201150902-1CT-Fiv5_M5_LOPfUa4.