EDT Violation Statck in HTMLComponent used by Ads

25 views
Skip to first unread message

Tom Tantisalidchai

unread,
Mar 23, 2013, 9:22:16 AM3/23/13
to codenameone...@googlegroups.com
Hi,

Do I have to worry about this? Every time the banner ad gets refreshed, I get this warning. I set a breakpoint and found "Display.getInstance().isEdt()" actually returns false.

com.codename1.impl.javase.JavaSEPort$EDTViolation: EDT Violation Stack!
 at com
.codename1.impl.javase.JavaSEPort.checkEDT(JavaSEPort.java:311)
 at com
.codename1.impl.javase.JavaSEPort.createAWTFont(JavaSEPort.java:2961)
 at com
.codename1.impl.javase.JavaSEPort.font(JavaSEPort.java:3081)
 at com
.codename1.impl.javase.JavaSEPort.getStyle(JavaSEPort.java:3067)
 at com
.codename1.ui.Font.getStyle(Font.java:433)
 at com
.codename1.ui.Font.equals(Font.java:489)
 at com
.codename1.ui.plaf.Style.setFont(Style.java:1517)
 at com
.codename1.ui.plaf.Style.setFont(Style.java:887)
 at com
.codename1.ui.html.HTMLComponent.handleImage(HTMLComponent.java:2332)
 at com
.codename1.ui.html.HTMLComponent.processTag(HTMLComponent.java:3051)
 at com
.codename1.ui.html.HTMLComponent.processTag(HTMLComponent.java:3247)
 at com
.codename1.ui.html.HTMLComponent.processTag(HTMLComponent.java:3247)
 at com
.codename1.ui.html.HTMLComponent.processTag(HTMLComponent.java:3247)
 at com
.codename1.ui.html.HTMLComponent.processTag(HTMLComponent.java:3247)
 at com
.codename1.ui.html.HTMLComponent.rebuildPage(HTMLComponent.java:1736)
 at com
.codename1.ui.html.HTMLComponent.documentReady(HTMLComponent.java:1123)
 at com
.codename1.ui.html.HTMLComponent$1.run(HTMLComponent.java:779)
 at com
.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)


Thanks.

Shai Almog

unread,
Mar 23, 2013, 11:57:56 AM3/23/13
to codenameone...@googlegroups.com
Hi,
the HTMLComponent violates the EDT on purpose. Its a decision made by the author of that component when he wrote it, I strongly disagreed with that but it does work (for the most part). The EDT violation you see shouldn't pose a problem on the actual devices for this particular case.

Tom Tantisalidchai

unread,
Mar 23, 2013, 7:22:51 PM3/23/13
to codenameone...@googlegroups.com
Thanks Shai.
Reply all
Reply to author
Forward
0 new messages