Your "fooModel" is a private member and nothing ever sets its value. The constructor takes a FooModel, but doesn't use it.
Paul
On 24/12/12 03:57, vitaliy.se@gmail.com wrote:
> Hello,
>
> I have a checked exception FooModelValidationException which is declared in interface of an RPC service ValidationService
> FooModelValidationException is thrown if a server side validation fails.
>
> The Exception contains two fields:
> FooModel fooModel;
> HashSet<ConstraintViolation<FooModel>> violations = new HashSet<ConstraintViolation<FooModel>>();
>
> When the exception arrives to client fooModel is ALWAYS null, despite the fact that the object was not null when the exception was thrown on server.
> violations is not null, but ConstraintViolation(s) inside has null instead of FooModel object in getRootBean, getLeafBean() properties(again both are not null when i send them from server), but getPropertyPath() is NOT null
>
> No exceptions or warnings in a server log.
>
> The question, why fields of checked RPC exception are replaced with nulls?!
>
> I attach FooModel declaration as whell as ValidationService interface decoration here.
>
> Thanks in advance,
> Vitaliy
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gdc3TMP8Df8J.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment