Oh crap, I'd swear I had tested it before git-pushing…
Will fix asap, thanks for the report!
On Friday, May 5, 2017 at 5:00:58 AM UTC+2, nikola wrote:
>
> You are right.. This can be ignored.
>
> Actually, real problem that I had is that after login I couldn't see main
> screen with text box and button that says hello to server.
>
> I debugged and found that problem is with User interface.
>
> When calling* user.getUserName() *browser throws this exception:
>
> Uncaught Error: com.google.web.bindery.event.shared.UmbrellaException:
> Exception caught: (TypeError) : user_0_g$.getUserName is not a function
>
> To fix this I had to add *@JsProperty* to interface methods which is
> properly translated to javascript *user.userName* instead of calling a
> function.
>
> this is the fix:
>
> import jsinterop.annotations.JsProperty;
> import jsinterop.annotations.JsType;
>
> @JsType(isNative = true)
> public interface User {
> @JsProperty
> String getUserName();
>
> @JsProperty
> boolean isAdmin();
> }
>
>
>
> On Thursday, May 4, 2017 at 6:43:10 PM UTC+2, Thomas Broyer wrote:
>>
>>
>>
>> On Thursday, May 4, 2017 at 6:34:21 PM UTC+2, nikola wrote:
>>>
>>> Hi all,
>>>
>>> I tried to generate project from *dagger-guice-rf-activities *as
>>> described here <https://github.com/tbroyer/gwt-maven-archetypes/> but
>>> when I tried to run it I am getting this error.
>>>
>>> Any idea what is happening ?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> INFO: Starting service Tomcat
>>>
>>> May 04, 2017 4:38:21 PM org.apache.catalina.core.StandardEngine
>>> startInternal
>>>
>>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
>>>
>>> May 04, 2017 4:38:23 PM com.google.web.bindery.requestfactory.server.
>>> ReflectiveServiceLayer <clinit>
>>>
>>> INFO: Unable to initialize a JSR 303 Bean Validator
>>>
>>> javax.validation.ValidationException: Unable to find a default provider
>>>
>>
>> It's not an error, it's an information.
>>
>> The archetype does not make use of JSR 303 Bean Validation, but
>> RequestFactory looks for a validator anyway and emits this message.
>> You can configure logging (java.util.logging) to get rid of the message,
>> or if you intend to use Hibernate Validator (is there any other JSR 303
>> implementation out there?) then the message will go away as soon as you add
>> the dependency.
>>
>
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.