grails + app-engine upload error -


I am using grails 1.3.3 and app-engine plugin 0.8.10;

My test case is:

upload.gsp:

  & lt; Form action = "/ test / process" method = "post" encrypt = "multipart / form-data" & gt; & Lt; Input type = "file" name = "file" /> & Lt; Input type = "submit" / & gt; & Lt; / Form & gt;  

TestController is:

  def process = {. Println request.getFile ("file") inputStream.text}  

The first time I am trying to upload the file, I am getting the next error:

  Error 500: java.rmi.server.UID is a restricted class. Please see the Google App Engine Developer's Guide for more information. Servletlet: _A_Default URI: / exam / process exception message: java.rmi.server.UID is a restricted category. Please see the Google App Engine Developer's Guide for more information. Reason by: java.rmi.server.UID is a restricted class. Please refer to the Google App Engine Developer's Guide for more information. Class: Unknown line: [-1] Code snippet:  

and stack trace:

  java.lang NoClassDefFoundError: java.rmi.server.UID is a restricted class. Please refer to the Google App Engine Developer's Guide for more information. . Clinit & gt; Com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) is on org.apache.commons.fileupload.disk.DiskFileItem & lt (DiskFileItem.java:103)  

There will be another error after trying to upload any other upload for the first time:

Error 500: org.apache.commons.fileupload.disk Could not initialize DiskFileItem servlet: _ah_default URI: / test / process exception message: could not initialize class org.apache.commons.fileupload.disk.DiskFileItem class :: class org.apache.commons.fileupload.disk.DiskFileItem Could not start because of Line on unknown: [-1] Code snippet:

and stack trace

  java.lang.NoClassDefFoundError: do not start Org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem (DiskFileItemFactory.java:196) class org.apache.commons.fileupload.disk.DiskFileItem  

I have 100 Upload to the usual classpiece

I have tried to run on the output - the same errors

I have found the following:

49.7.1 An error gets java.lang.NoClassDefFoundError: java .rmi.server.UID before 1.6 a limited class you ehcache Is using a version of

But version 1.3.3 for default grails is 1.7.1 and I also tried 1.6.2, 1.7.2, 2.0.0, 2.2.0

I think it's Java because there is a class on Rmi.server.UID GAE, that means you can use it Not allowed.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -