I did use printstacktrace but it is not giving any exceptions.
I did try logging and was getting garbage value for the stream but
what i cant understand is why is it happening only when i deploy my
app since everything works perfectly fine on local datastore.

On Jul 13, 11:30 pm, Shyam Visamsetty <[email protected]>
wrote:
> So, if you are directly accessing the stream, it is still in memory
> and not stored anywhere. I think you should try logging the stream you
> receive. I think it is hitting a null ptr exception for some reason.
> did you use printstacktrace in your catch block?
>
> Thanks,
> Shyam.
>
> On Jul 13, 1:47 am, Vishakha <[email protected]> wrote:
>
> > Hi I am akriti's team member.
>
> > This is part of my servlet code.
>
> > public void doPost(HttpServletRequest request, HttpServletResponse
> > response)  throws ServletException, IOException {
> >                 {
> >         ServletFileUpload upload = new ServletFileUpload();
>
> >         try{
> >             FileItemIterator iter = upload.getItemIterator(request);
>
> >             while (iter.hasNext()) {
> >                 FileItemStream item = iter.next();
> >                 String name = item.getFieldName();
> >                 InputStream stream = item.openStream();
> >                // try{
> >                  Kml kml = Kml.unmarshal(stream);
>
> >                 //if (kml == null)
> >                         {
> >                                 Feature feature = kml.getFeature();
> >                                 processFeature(null, feature);
> >                         }
>
> > On Jul 13, 12:31 pm, Pieter Coucke <[email protected]> wrote:
>
> > > Could it be that the file upload tries to store the file in a temporary
> > > directory somewhere?
>
> > > --
> > > Pieter Coucke
> > > Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be-Hide quoted 
> > > text -
>
> > - Show quoted text -

-- 
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