I've learned to use ByteArrayOutputStream rather than FileOutputStream when
needing to write files using server side logic.
What happens after you've created one is another story.


On Mon, Jan 3, 2011 at 1:41 PM, Thomas Broyer <t.bro...@gmail.com> wrote:

>
>
> On Monday, January 3, 2011 4:46:38 PM UTC+1, alanmechy wrote:
>>
>> The stack trace says it all...
>>
>> com.example.foobar.client.RPCInterface.testRPC (java.lang.String)'
>> Threw an unexpected exception: java. lang.NoClassDefFoundError:
>> java.io.FileWriter is a restricted class. Please see the Google App
>> Engine developer's guide for more details.
>>
>
> You're right that the stack trace says it all, but you actually didn't read
> it correctly: the issue is that java.io.FileWriter cannot be used in
> AppEngine; this has nothing to do with GWT and/or client vs. server
> packages.
> See http://code.google.com/appengine/docs/java/jrewhitelist.html and
> http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox
>
>  --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M.
Andretti

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

Reply via email to