Strange that it would work locally. MultipartFile doesn't sound like
something that is serializable. You'll want to store your data using the
Blob class we provide, anyway.

Are you storing this in the datastore or a session? You'll want to minimize
the amount of data you store in a session.

On Fri, Jan 22, 2010 at 4:07 AM, java <[email protected]> wrote:

> Hello
>
> This is my class file :
> mult
> package com.ei.server.web.fe;
>
> import java.util.Date;
> import java.util.Map;
>
> import org.springframework.web.multipart.MultipartFile;
>
> import com.ei.server.model.auth.IUser;
> import com.ei.server.model.auth.impl.User;
>
> public class ReviewFrmCmd {
>
>        private String title;
>        private Long category;
>        private String review;
>        private String tags;
>        private Boolean recommend;
>        private Map<Long, String> categories;
>        private Date date;
>        private IUser user;
>        private Character status;
>        private Long id;
>        private Long rating;
>        private Map<Integer, String> ratingCombo;
>        private MultipartFile picture;
>        private Long city;
>        private String company;
>        private String product;
>        private Long companyId;
>        private Long productId;
>        private String cityName;
>        private String catPraentName;
>        private String catName;
>        private byte[] pictureUploaded ;
>
>
>        public byte[] getPictureUploaded() {
>                return pictureUploaded;
>        }
>
>        public void setPictureUploaded(byte[] pictureUploaded) {
>                this.pictureUploaded = pictureUploaded;
>        }
>
>        public String getCatPraentName() {
>                return catPraentName;
>        }
>
>        public void setCatPraentName(String catPraentName) {
>                this.catPraentName = catPraentName;
>        }
>
>        public String getCatName() {
>                return catName;
>        }
>
>        public void setCatName(String catName) {
>                this.catName = catName;
>        }
>
>        public Long getId() {
>                return id;
>        }
>
>        public void setId(Long id) {
>                this.id = id;
>        }
>
>        public void setDate(Date date) {
>                this.date = date;
>        }
>
>        public String getTitle() {
>                return title;
>        }
>
>        public void setTitle(String title) {
>                this.title = title;
>        }
>
>        public Long getCategory() {
>                return category;
>        }
>
>        public void setCategory(Long category) {
>                this.category = category;
>        }
>
>        public Map<Long, String> getCategories() {
>                return categories;
>        }
>
>        public void setCategories(Map<Long, String> categories) {
>                this.categories = categories;
>        }
>
>        public String getReview() {
>                return review;
>        }
>
>        public void setReview(String review) {
>                this.review = review;
>        }
>
>        public String getTags() {
>                return tags;
>        }
>
>        public void setTags(String tags) {
>                this.tags = tags;
>        }
>
>        public Date getDate() {
>                return date;
>        }
>
>        public IUser getUser() {
>                return user;
>        }
>
>        public void setUser(User user) {
>                this.user = user;
>        }
>
>        public Character getStatus() {
>                return status;
>        }
>
>        public void setStatus(Character status) {
>                this.status = status;
>        }
>
>        public Long getRating() {
>                return rating;
>        }
>
>        public void setRating(Long rating) {
>                this.rating = rating;
>        }
>
>        public Boolean getRecommend() {
>                return recommend;
>        }
>
>        public void setRecommend(Boolean recommend) {
>                this.recommend = recommend;
>        }
>
>        public Map<Integer, String> getRatingCombo() {
>                return ratingCombo;
>        }
>
>
>        public MultipartFile getPicture() {
>                return picture;
>        }
>
>        public void setPicture(MultipartFile picture) {
>                this.picture = picture;
>        }
>
>        public void setRatingCombo(Map<Integer, String> ratingCombo) {
>                this.ratingCombo = ratingCombo;
>        }
>
>        public Long getCity() {
>                return city;
>        }
>
>        public void setCity(Long city) {
>                this.city = city;
>        }
>
>        public String getCompany() {
>                return company;
>        }
>
>        public void setCompany(String company) {
>                this.company = company;
>        }
>
>        public String getProduct() {
>                return product;
>        }
>
>        public void setProduct(String product) {
>                this.product = product;
>        }
>
>        public Long getCompanyId() {
>                return companyId;
>        }
>
>        public void setCompanyId(Long companyId) {
>                this.companyId = companyId;
>        }
>
>        public Long getProductId() {
>                return productId;
>        }
>
>        public void setProductId(Long productId) {
>                this.productId = productId;
>        }
>
>        public String getCityName() {
>                return cityName;
>        }
>
>        public void setCityName(String cityName) {
>                this.cityName = cityName;
>        }
>
> }
>
>
> what I should do ???
>
> Thanks
>
>
> On Jan 20, 4:33 pm, John Patterson <[email protected]> wrote:
> > You class ReviewFrmCmd is being put in the session and so must be made
> > serializable.  On the local dev server the session is not serialized
> > so you do not get this exception.
> >
> > On 20 Jan 2010, at 18:13, java wrote:
> >
> >
> >
> > > Hello
> >
> > > I am developed a page which is working fine at local machine but when
> > > I deploy on appspot showing error :
> >
> > > Uncaught exception from servlet
> > > java.lang.RuntimeException: java.io.NotSerializableException:
> > > com.ei.server.web.fe.ReviewFrmCmd
> > >    at com.google.apphosting.runtime.jetty.SessionManager.serialize
> > > (SessionManager.java:361)
> >
> > > Please help me out.
> >
> > > Thanks
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Google App Engine for Java" group.
> > > To post to this group, send email to
> [email protected]
> > > .
> > > To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> > > .
> > > For more options, visit this group athttp://
> groups.google.com/group/google-appengine-java?hl=en
> > > .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en.

Reply via email to