Monday, December 26, 2011

Re: RequestFactory Imposible To use

Hi Aidan.

I did what you said about catch the null pointer exception, It looked
like the servlet for the request factory was bad mapped (but it was
never warned on compilation/excecution time). I re-mapped the servlet
as the bellow page says and it worked (for now, because I proved with
the more simple case). Thanks a lot to all of you. I'll be commenting
again when find those "imposible" cases.

Thanks again.

Magus

http://code.google.com/intl/es-ES/webtoolkit/doc/latest/DevGuideRequestFactory.html#wiring

On 21 dic, 18:44, "Aidan O'Kelly" <aida...@gmail.com> wrote:
> Give this a try:
>
> Start in debug mode,
> 1 - Get the app ready to fire() your request,
> *then*
> 2 - In eclipse, add Java Exception Breakpoint on
> java.lang.NullPointerException - make sure 'caught exceptions' is ticked.
> 3 - Make your app fire() the request.
>
> You should drop into debug mode when the NPE is thrown and be able to work
> back through the stacktrace.
> If you do step 2 before step 1, you will catch some unrelated exceptions,
> which are normally handled OK (since they are caught exceptions), so this
> is a kinda awkard way to do it, but it should let you find the problem.
>
>
>
>
>
>
>
> On Wed, Dec 21, 2011 at 11:37 PM, MagusDrk <magus....@googlemail.com> wrote:
> > Hi all again! I've just tried to use a CustomRequestFactoryServlet in
> > order to catch and resolve the NPE in the server side. I could do it,
> > but the catched error was "NullPointerException" with no other info
> > (at all), no strackTrace, no specific cause (just "null") and no
> > location specified! Help, please, I had to avoid using RequestFactory
> > for my week release, but I Have to get it working soon. If you need
> > some specific information, please, let me know.
>
> > --
> > 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.

--
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