Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar
error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar [message #1066022] Fri, 28 June 2013 23:26 Go to next message
Song David is currently offline Song David
Messages: 186
Registered: April 2011
Senior Member
hi,
error code like below occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar, when I remove the dropDownViewer from the text widget, everything goes ok!
Client Error
Details:

Error: TypeError: this.getParent(...) is null

  stack: .members.getFocusRoot@http://localhost:10080/rwt-resources/rap-client.js:12137
hasFocus@http://localhost:10080/score#gradeinput:436
checkFocus@http://localhost:10080/score#gradeinput:374
.members._dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6261
.members.dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6191
.members._oninterval@http://localhost:10080/rwt-resources/rap-client.js:6902
.statics.bind/wrap@http://localhost:10080/rwt-resources/rap-client.js:5725

  fileName: http://localhost:10080/rwt-resources/rap-client.js
  lineNumber: 12137
  columnNumber: 8
  Stack: .members.getFocusRoot@http://localhost:10080/rwt-resources/rap-client.js:12137
hasFocus@http://localhost:10080/score#gradeinput:436
checkFocus@http://localhost:10080/score#gradeinput:374
.members._dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6261
.members.dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6191
.members._oninterval@http://localhost:10080/rwt-resources/rap-client.js:6902
.statics.bind/wrap@http://localhost:10080/rwt-resources/rap-client.js:5725

  Debug: on


david

[Updated on: Sat, 29 June 2013 00:57]

Report message to a moderator

Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066154 is a reply to message #1066022] Mon, 01 July 2013 05:53 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 379
Registered: July 2009
Senior Member
Hi.

Are you using any custom widgets/components?

Greetings,
Tim

Am 29.06.2013 05:26, schrieb Song David:
> hi,
> error code like below occrors sometimes when mouse moves on Text widget
> in ToolBar
>
> Client Error
> Details:
>
> Error: TypeError: this.getParent(...) is null
>
> stack:
> .members.getFocusRoot@http://localhost:10080/rwt-resources/rap-client.js:12137
>
> hasFocus@http://localhost:10080/score#gradeinput:436
> checkFocus@http://localhost:10080/score#gradeinput:374
> members._dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6261
>
> members.dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6191
>
> members._oninterval@http://localhost:10080/rwt-resources/rap-client.js:6902
> statics.bind/wrap@http://localhost:10080/rwt-resources/rap-client.js:5725
>
> fileName: http://localhost:10080/rwt-resources/rap-client.js
> lineNumber: 12137
> columnNumber: 8
> Stack:
> .members.getFocusRoot@http://localhost:10080/rwt-resources/rap-client.js:12137
>
> hasFocus@http://localhost:10080/score#gradeinput:436
> checkFocus@http://localhost:10080/score#gradeinput:374
> members._dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6261
>
> members.dispatchEvent@http://localhost:10080/rwt-resources/rap-client.js:6191
>
> members._oninterval@http://localhost:10080/rwt-resources/rap-client.js:6902
> statics.bind/wrap@http://localhost:10080/rwt-resources/rap-client.js:5725
>
> Debug: on
>
>
> david

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066157 is a reply to message #1066154] Mon, 01 July 2013 06:01 Go to previous messageGo to next message
Song David is currently offline Song David
Messages: 186
Registered: April 2011
Senior Member
no custom widgets/components
Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066164 is a reply to message #1066157] Mon, 01 July 2013 06:15 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 379
Registered: July 2009
Senior Member
Am 01.07.2013 12:01, schrieb Song David:
> no custom widgets/components

Hm, that strange, the lines

hasFocus@http://localhost:10080/score#gradeinput:436
checkFocus@http://localhost:10080/score#gradeinput:374

strongly suggest you do. Are you absolutely sure you don't have anything
from the incubator in your launch config?

If you really don't, perhaps you can get more info by enabling your
browsers stop-on-exceptions mode (in chrome it's the pause icon on the
sources tab of the developers tools, in firebug its the pause button on
the console tab). You might have to skip some other exceptions that are
handled by the framework to then arrive at this error. You should move
to the hasFocus/checkFocus functions in the stack to see what code they
are. Screenshots of that might help.

Greetings,
Tim

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066197 is a reply to message #1066164] Mon, 01 July 2013 10:00 Go to previous messageGo to next message
Song David is currently offline Song David
Messages: 186
Registered: April 2011
Senior Member
Thanks Tim for your help, I got two screenshots in Chrome,

index.php/fa/15433/0/

index.php/fa/15434/0/
Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066330 is a reply to message #1066197] Tue, 02 July 2013 04:21 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 379
Registered: July 2009
Senior Member
Hi.

This is where the actual exception occurs (getFocusRoot), I need to see
the two calls above in the stack, hasFocus and checkFocus. I'm not sure
clicking on them in the console stack trace works, if not you can
definitely see them in the stack view while the script pauses on the
exception.

Greetings,
Tim

Am 01.07.2013 16:00, schrieb Song David:
> Thanks Tim for your help, I got two screenshots in Chrome,
>
>
>
>

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066360 is a reply to message #1066330] Tue, 02 July 2013 06:41 Go to previous messageGo to next message
Song David is currently offline Song David
Messages: 186
Registered: April 2011
Senior Member
Thanks Tim, as you said, I click the track view item, nothing happened excepted just a yellow flash line on the bottom in Sources window. When I click the pause button, the code displays as below screenshot.

index.php/fa/15443/0/

Regards
David
  • Attachment: pause.png
    (Size: 101.55KB, Downloaded 126 times)
Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066363 is a reply to message #1066360] Tue, 02 July 2013 06:53 Go to previous messageGo to next message
Song David is currently offline Song David
Messages: 186
Registered: April 2011
Senior Member
when I click the stack view item (marked with an arrows), the yellow flash line is located at the line(marked with red line).

index.php/fa/15444/0/
index.php/fa/15445/0/
index.php/fa/15446/0/
index.php/fa/15447/0/
  • Attachment: 001.png
    (Size: 96.51KB, Downloaded 119 times)
  • Attachment: 002.png
    (Size: 101.95KB, Downloaded 117 times)
  • Attachment: 003.png
    (Size: 87.47KB, Downloaded 118 times)
  • Attachment: 004.png
    (Size: 94.70KB, Downloaded 119 times)
Re: error occrors sometimes when mouse moves on Text widget in ToolBar [message #1066426 is a reply to message #1066360] Tue, 02 July 2013 11:37 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 379
Registered: July 2009
Senior Member
That's not it either. This approach isn't going to work.

When I search for "checkFocus" and "hasFocus" it finds nothing in the
RAP core, but it does in a RAP custom widget from the Incubator
(DropDown, even in the call order from your stack trace). So unless I'm
severely mistaken, you *DO* have a custom widget in your launch config
that causes this error and should remove it from your code and launch
config to see if it fixes the issue. If so, it's a bug in that custom
widget.


Greetings,
Tim

Am 02.07.2013 12:41, schrieb Song David:
> Thanks Tim, as you said, I click the track view item, nothing happened excepted just a yellow flash line on the bottom in Sources window. When I click the pause button, the code displays as below screenshot.
>
>
>
> Regards
> David
>

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar [message #1066527 is a reply to message #1066022] Tue, 02 July 2013 20:39 Go to previous messageGo to next message
Song David is currently offline Song David
Messages: 186
Registered: April 2011
Senior Member
Hi Tim,
I DO NOT include any my CUSTOM WIDGETS in the launch config, but other Incubator widgets like clientscript and fileupload. Exception still ecrrors after I remove the fileupload. And the exception ONLY occurs when dropdown is used in the ToolBar widget.

index.php/fa/15457/0/

David
  • Attachment: plugin.png
    (Size: 3.71KB, Downloaded 108 times)

[Updated on: Tue, 02 July 2013 20:51]

Report message to a moderator

Re: error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar [message #1066574 is a reply to message #1066527] Wed, 03 July 2013 04:47 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 379
Registered: July 2009
Senior Member
Hi.

> I DO NOT include any my CUSTOM WIDGETS in the launch config, but other Incubator widgets like clientscript and fileupload.

Then I apologize for not explaining better what I meant with custom
widgets. (Any widget that's not part of the RAP core.)

In any case, see that you have the very latest version of the dropdown.
If yes, I need to know what are are the parents of the dropdown? Not
just their direct parent, but also their parents parent. It looks like
the DropDown widget is somehow disconnected from the DOM, and I need to
find out which parent may cause that.

Greetings,
Tim



--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar [message #1066588 is a reply to message #1066574] Wed, 03 July 2013 06:42 Go to previous messageGo to next message
Song David is currently offline Song David
Messages: 186
Registered: April 2011
Senior Member
Hi Tim,
all the parent-child relationship of the widgets are here:


Shell->ScrolledComposite->Composite->Composite->Composite->ToolBar->ToolItem->Text->DropDownViewer


DropDownViewer ddv = new DropDownViewer(Text);

Regard

David
Re: error occrors sometimes when mouse moves on Text widget with DropDownViewer in ToolBar [message #1066966 is a reply to message #1066588] Fri, 05 July 2013 05:26 Go to previous message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

David,

I've just tried this in a simple snippet, but couldn't reproduce:

ToolBar toolBar = new ToolBar( parent, SWT.NONE );
new ToolItem( toolBar, SWT.NONE ).setText( "toolbar" );
ToolItem toolItem = new ToolItem( toolBar, SWT.SEPARATOR );
Text text = new Text( toolBar, SWT.BORDER );
toolItem.setControl( text );
toolItem.setWidth( 200 );
DropDownViewer viewer = new DropDownViewer( text );
viewer.setContentProvider( new ArrayContentProvider() );
viewer.setLabelProvider( new LabelProvider() );
viewer.setInput( new String[] { "One", "Two", "Three" } );


This snippet works fine in FF and Chrome. Could you provide a snippet
that shows the exception and explain the steps to reproduce it?

Thanks,
Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:JMeter with RAP 2.1
Next Topic:In a MARKUP_ENABLED table, clicking on the link with img tag in a tag will not trigger an SWT.Select
Goto Forum:
  


Current Time: Tue Jul 29 15:02:54 EDT 2014

Powered by FUDForum. Page generated in 0.02474 seconds