Oops forgot the stack trace:
(this is from the google appengine log viewer):
Uncaught exception from servlet
com.google.appengine.api.channel.ChannelFailureException: An unexpected error
occurred.
at
According to the docs, the namespace is set globally within the app,
but you can use
it On a per-User Basis for users that are logged in as an example
and that user
is the tenant. The docs aren't clear, but the namespace must be
globally just for that
tenant, yes? If that's the case, then you
I like Jeff's solution as it's failsafe, but one more pattern I often
use is to set a couple of flags, and
complete the 2nd action in a finally clause if needed. The timeout
for the 30 sec limit does allow for a very quick
transaction to still succeed, so I use that time to persist any state
On May 13, 2:29 am, Nichole nichole.k...@gmail.com wrote:
Just a quick summary, the servlet spec requires that a servlet
container such as appengine
provider an implementation for a service. Those jars such as servlet-
api-2.4.jar are needed
at compile time.
That's why there's provided
hi,
i want to use a common servlet (say MainServlet) to handle all the requests
and based on url requested i want to transfer request to a different
servlet. for example:
if requested url is www.mydomain.com/* i want to send request to HomeServlet
and if requested url is test.mydomain.com/* i
sorry you're having problems.
dont think this is an app engine issue
since many folks use stripes on gae.
here are the stripe parts from my web XML
?xml version=1.0 encoding=utf-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee;
there is no file system in gae so
the multipart wrapper could be your problem.
it probably would work locally by not in prod
On May 15, 8:30 am, Mike Lawrence m...@systemsplanet.com wrote:
sorry you're having problems.
dont think this is an app engine issue
since many folks use stripes on gae.
I think you need to use a uppercase B for the classes.
When I tried deploying using a lowercase b1 eclipse was complating about a
volidation with the backends.xsd.
Try this:
backends
backend name=tastBackend
classB1/class
instances1/instances
/backend
/backends
However, I can
Do you mean: response.sendRedirect(url);
Brandon Donnelson
http://gwt-examples.googlecode.com
--
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 google-appengine-java@googlegroups.com.
To
Dev or Production side? I've had this happen on the dev side at times. I
haven't seen it recently in my app.
Brandon Donnelson
http://gwt-examples.googlecode.com
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this
Hie
Just a little question. I am using this pdfJet thing.
The requirement for us is to create a pdf and then mail it to a user.
So i am done with pdf creation part and at then end i have the code like:
OutputStream out = resp.getOutputStream();
PDF pdf = new PDF(out);
some actual writing.
no, sorry :( . i want (kind of) server side redirect. you can think of a
scenario where multiple applications are hosted in a single google appengine
app but each app has to respond to its own unique domain. all the
applications are handled by a master application. master application will
accept
Using Spring MVC you could use it to solve the problem.
Basically you want different Controller for http://www.mainsite.com and
http://test.mainsite.com
I have used it in one of my application. I write all the steps in a blog
here. I hope it will helpfull
thanks a lot Ravi. i will read your article and give it a try
On Sun, May 15, 2011 at 8:20 PM, Ravi Sharma ping2r...@gmail.com wrote:
Using Spring MVC you could use it to solve the problem.
Basically you want different Controller for http://www.mainsite.com and
http://test.mainsite.com
You're writing the PDF as your web page output. Use a ByteArrayOutputStream
instead.
On Sun, May 15, 2011 at 7:16 AM, Vik vik@gmail.com wrote:
Hie
Just a little question. I am using this pdfJet thing.
The requirement for us is to create a pdf and then mail it to a user.
So i am done
Hie Stephon
Still I am not sure on the part that ultimately how will i use this stream
to attach the generated pdf as an attachment in the email. Please advise
Thankx and Regards
Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org
On Sun, May 15, 2011 at 9:56 PM, Stephen Johnson
You should be able to use the RequestDispatcher object to do what you want
but you'll have to have mappings in web.xml for each of the servlets your
forwarding to for instance MyGalleryApp would have mappings that all start
with /MyGalleryApp/ (or something similar) so GalleryServlet would map to
Hi Vik,
Call toByteArray() method on ByteArrayOutputStream when finished with
creating PDF and then
MimeBodyPart attachment = new MimeBodyPart();
attachment.setFileName(whatever.pdf);
attachment.setContent(attachmentData, application/pdf);
Thanks 2 futher things
1. What is the link between toByteArray() and attachment part of the code? I
mean i do not see the byteArray being used anywhere in the code you
provided.
2. Servlet response is giving ServletResponseOutputStream and on googling i
did not find a way to convert it to
Dennis,
You're half-way there :)
GAE won't create a backend for you until you use the appcfg.sh
'update' command to update the backends.
Check out the docs here:
http://code.google.com/appengine/docs/java/backends/overview.html#Commands
I also was really expecting the backends.xml file
thanks Ravi and Stephen for your responses. my application needs to do
mapping at run time, i.e. it wouldn't be knowing how may subdomains it would
be handling, so, i can't not use your techniques :(
On Sun, May 15, 2011 at 10:13 PM, Stephen Johnson onepagewo...@gmail.comwrote:
You should be
The code snippet is from the link I provided. Replace the attachmentData in
the code snippet with the byte[] array returned from toByteArray(). You do
not convert the ServletResponseOutputStream to a ByteArrayOutputStream.
Create your own ByteArrayOuputStream. You want to send the PDF as an
Hello
I did implement an empty mulitpart wrapper as I listed in my previous
message so that was not the problem. Fortunately, I did solve my problem.
The problem was not in the Stripes configuration at all. I had a following
tag in my web.xml:
jsp-config
jsp-property-group
I'm planning to build a web service on GAE that I anticipate having to deal
with significant amounts of load. I therefore want to make full use of
memcache such that hopefully, most requests won't need to go to the
datastore.
There will be several different users of this web service, and each
memcache is shared between all instances, so there's no need to check this
you should also have a look at datastore namespaces
On Sunday, May 15, 2011, Ian Clarke ian.cla...@gmail.com wrote:
I'm planning to build a web service on GAE that I anticipate having to deal
with significant
Thanks Pieter, yes, it sounds like namespaces will solve this problem for
me.
Ian.
--
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 google-appengine-java@googlegroups.com.
To unsubscribe from
Hi Jake,
Can you give me the exact command you used?
I'm not sure how to use appcfg.sh for the backend features. I'm actually
planning to use the affcfg.py (which I believe is the same but just the
python version)
So what are the dir and [update] values supposed to be to make these
backends.xml
Thanks a lot Stephen ! I could complete the code and testing now. Your great
support will really help our cause to serve the needy.
Thankx and Regards
Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org
On Sun, May 15, 2011 at 11:15 PM, Stephen Johnson onepagewo...@gmail.comwrote:
Great! Glad to hear you got it working.
On Sun, May 15, 2011 at 7:18 PM, Vik vik@gmail.com wrote:
Thanks a lot Stephen ! I could complete the code and testing now. Your
great support will really help our cause to serve the needy.
Thankx and Regards
Vik
Founder
Get queue, create task, add task to queue:
Queue q = QueueFactory.getDefaultQueue();
TaskOptions opts = TaskOptions.Builder.withUrl(some_url);
opts.param(some_name, some_value);
q.add(opts);
The task is executed but HttpServletRequest.getParameterMap().size() == 0
for
On Sun, May 15, 2011 at 7:58 AM, Philippe Marschall
philippe.marsch...@gmail.com wrote:
On May 13, 2:29 am, Nichole nichole.k...@gmail.com wrote:
Just a quick summary, the servlet spec requires that a servlet
container such as appengine
provider an implementation for a service. Those
Hie
Trying to send a pdf created using pdfJet throws the exception
class javax.mail.SendFailedException:Send failure
(javax.mail.MessagingException: Converting attachment data failed)
The code is like:
MimeBodyPart htmlPart = new MimeBodyPart();
HI,
From the description of your needs, it seems that the Java inheritance
mechanism is all what you need.
Yours servlets should all inherit from HomeServlet, in their doGet()
method, they will just call super.doGet() at the beginning and then
execute their own thing.
regards
didier
On May
Rewrote the code:
QueueFactory.getDefaultQueue().add(TaskOptions.Builder.withUrl(some_url).
param(some_name, some_value).
method(TaskOptions.Method.GET));
Works fine now. Method needed to be set or it defaulted to POST and
created problems.
Disregard piece about it
Hi Matthew,
In your logging.properties file, can you set the logging level to ALL
and see if that gives you more information? I've found that in these
cases, it's helpful to see exactly what's going on under the hood,
before the stack trace is generated.
If it's not clear to you what's going on
35 matches
Mail list logo