1.- It seems you want to use gwtupload in AppEngine. If so, you have
to use 0.5.7, but you have to consider a bunch of GAE restrictions.
2.- If you are getting this error in eclipse, disable appengine for the project
3.- Your code seems ok.

Cheers
Manolo

On Wed, Apr 21, 2010 at 10:53 AM, laurent <[email protected]> wrote:
> When i click on send button for a file with 15kb size , i've a error.
>
> I've not an idea where are the problem from.
> In the servlet , i provoke an IllegalArgumentException but when i go
> to the log , i see nothing.
> On the screen , i've two dialog box.First print 'null' and the
> second :
> '"Timeout sending the file:
>  perhups your browser does not send files correctly,
>  your session has expired,
>  or there was a server error.
> Please try again. "
>
> appengine-web.xml :
>     [...]
>  <!-- Configure java.util.logging -->
>  <system-properties>
>    <property name="java.util.logging.config.file" value="WEB-INF/
> logging.properties"/>
>  </system-properties>
>
>  <sessions-enabled>true</sessions-enabled>
>
> </appengine-web-app>
>
> web.xml :
>        <context-param>
>                <!-- max size of the upload request -->
>                <param-name>maxSize</param-name>
>                <param-value>3145728</param-value>
>        </context-param>
>
>        <context-param>
>                <!-- Useful in development mode to slow down the uploads in 
> fast
> networks.
>                        Put the number of milliseconds to sleep in each block 
> received in
> the server.
>                        false or 0, means don't use slow uploads -->
>                <param-name>slowUploads</param-name>
>                <param-value>200</param-value>
>        </context-param>
>
>        <servlet>
>                <servlet-name>SampleUploadServlet</servlet-name>
>                <servlet-class>miro.server.SampleUploadServlet</servlet-class>
>        </servlet>
>
>        <servlet-mapping>
>                <servlet-name>SampleUploadServlet</servlet-name>
>                <url-pattern>*.gupld</url-pattern>
>        </servlet-mapping>
>
> TopPanel.java :
> [...]
> singleUploader.setServletPath("SampleUploadServlet.gupld");
>                singleUploader.addOnFinishUploadHandler(new 
> OnFinishUploaderHandler()
> {
>
>                       �...@override
>                        public void onFinish(IUploader uploader) {
>                        }});
> [...]
>
> SampleUploadServlet.java :
>         �...@override
>          public String executeAction(HttpServletRequest request,
> List<FileItem> sessionFiles) throws UploadActionException {
>                  String read ="";
>
>                  for(FileItem fileItem : sessionFiles){
>                          try {
>                                InputStream inputStream = 
> fileItem.getInputStream();
>                                BufferedReader buffered = new 
> BufferedReader(new
> InputStreamReader(inputStream));
>
>                                read = buffered.readLine();
>                                throw new IOException();
>                          } catch (IOException e) {
>                                  //e.printStackTrace();
>                                throw new IllegalArgumentException("lecture" + 
> read);
>                        }
>                  }
>                  return "";
>          }
>
> Thanks for your request
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to