google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

UiBinder: Provide implementation for DOMImplPatcher.toString(Element) #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, thank you in advance for looking into the below issue.
Regards.
Luc

What steps will reproduce the problem?
1. Instantiate a UiBinder widget within a GwtTest test case.

What is the expected output? What do you see instead?
The test should go through, however a java.lang.UnsatisfiedLinkError: 
com.google.gwt.dom.client.DOMImpl.toString(String) gets thrown.
Indeed this JSNI method is still left unpatched when looking at DOMImplPatcher.

What version of the product are you using? On what operating system?
0.28 Snapshot rev. 730 / GWT 2.2

Please provide any additional information below.
Here is more of the stack trace:

java.lang.UnsatisfiedLinkError: 
com.google.gwt.dom.client.DOMImpl.toString(Lcom/google/gwt/dom/client/Element;)L
java/lang/String;
    at com.google.gwt.dom.client.DOMImpl.toString(Native Method)
    at com.google.gwt.dom.client.Element.getString(Element.java:424)
    at com.google.gwt.user.client.DOM.toString(DOM.java:1234)
    at com.google.gwt.user.client.ui.UIObject.toString(UIObject.java:781)
    at java.lang.String.valueOf(Unknown Source)
    at java.lang.StringBuffer.append(Unknown Source)
    at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:795)
    at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
    at com.octo.gwt.test.internal.uibinder.objects.UiBinderWidget.complete(UiBinderWidget.java:102)
    at com.octo.gwt.test.internal.uibinder.objects.UiBinderWidget.addTag(UiBinderWidget.java:87)
    at com.octo.gwt.test.internal.uibinder.objects.UiBinderComponentBuilder.endTag(UiBinderComponentBuilder.java:84)
    at com.octo.gwt.test.internal.uibinder.UiXmlContentHandler.endElement(UiXmlContentHandler.java:36)

Original issue reported on code.google.com by dinde...@googlemail.com on 22 Apr 2011 at 1:28

GoogleCodeExporter commented 9 years ago
Could you give it a try with the lastest trunk revision ?

If the exception would still be thrown, could you provide the UiBinder widget 
which throws it ? Its weird that the toString() method is called, I think 
another exception is thrown before (maybe by commons-beanutils).

Thank you in advance.

Original comment by gael.laz...@gmail.com on 25 Apr 2011 at 9:07

GoogleCodeExporter commented 9 years ago
I still don't figured out why the toString() method is called, but I've tried 
to implement a fidel DOMImpl.toString() patch method.

It's available on trunk, could you please give it a try and give me some 
feedback ?

Thanks :-)

Original comment by gael.laz...@gmail.com on 30 Apr 2011 at 1:30

GoogleCodeExporter commented 9 years ago
Thank you Gaël.
The issue is gone in v0.3 with GWT 2.3.

Sorry about the late reply.
Best regards.
Luc

Original comment by dinde...@googlemail.com on 26 May 2011 at 12:22

GoogleCodeExporter commented 9 years ago
No problem, thank you very much for your feedback !

Original comment by gael.laz...@gmail.com on 26 May 2011 at 12:29