I figured out the problem. Setting a null value in a request header will cause this exception. Not sure if this should be the expected behavior, since its hard to tell where the null pointer is coming from.
On Apr 23, 5:29 pm, hector <[email protected]> wrote: > I'm sometimes getting a NullPointerException when using the > URLFetchService to a web service running on another appspot. In these > cases the request does not show up in the other appspot's logs. > > If I make this request from the command-line, it works fine and I can > see the request in the logs. > > I'm also using the URLFetchService to access other web services NOT > running on appspot, and those are working fine. > > This exception was happening yesterday, then magically went away. Now > its showing up again. > > ------------------------------------------- > > java.lang.NullPointerException > at com.google.appengine.api.urlfetch.URLFetchServicePb$URLFetchRequest > $Header$Builder.setValue(URLFetchServicePb.java:756) > at > com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertToPb(URLFetchServiceImpl.java: > 147) > at > com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java: > 30) > at > org.systemsbiology.addama.coresvcs.gae.filters.CheckAccessFilter.doFilter(CheckAccessFilter.java: > 68) > > -- > 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 > 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]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
