File download from a GWT Service: "java.lang.RuntimeException: Unable to report failure"

651 views
Skip to first unread message

J-Pro

unread,
Jun 2, 2010, 3:29:25 PM6/2/10
to Google Web Toolkit
Hello, dear GWT gurus!

I'm trying to send a String to the client as a file after user presses
a button. After searching I've found and doing it this way:
http://codepad.org/kbZ8Cp2V

But when I run it in GWT DEV mode, I'm getting this exception:
"java.lang.RuntimeException: Unable to report failure" (details see
here: http://codepad.org/TIGk861g)
And also, below it there is another one:
"com.google.gwt.user.client.rpc.InvocationException: File contents
" (details see here: http://codepad.org/JGIXaPCg)

I'm using smartwgt 2.2, GWT SDK 2.0.3 with Eclipse 3.5 SR1 and jdk
1.6.0 u18 from Windows 7 Enterprise x64 and Mozilla Firefox 3.5.9 as
browser.

Please, advise me something, maybe I'm just doing something wrong... I
work with file download in GWT for the first time.

Thank you in advance.

Sripathi Krishnan

unread,
Jun 2, 2010, 3:56:46 PM6/2/10
to google-we...@googlegroups.com
public class MyServiceImpl extends RemoteServiceServlet implements MyService
The above line is wrong. It should NOT extend RemoteServiceServlet. Just extend the regular HttpServlet and it should work.
--Sri



--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Reply all
Reply to author
Forward
0 new messages