Hey all,

           I am student without much knowledge of Google App Engine. I
am trying to deploy this simple application which runs properly on
Eclipse but the moment I deploy it on GAE and try to run it gives an
error. Before I give you the details regarding the error I'll briefly
try and explain what this application is all about. The welcome page
is "start.jsp" which contains a where the user has to enter values
into 2 fields: Name and Roll Number.The usebean tag in this jsp is as
follows:
                                   <jsp:useBean id="MyBean"
scope="request" class="com.sample.mydatastore.TestBean"/>

When the form is submitted it goes to "Process.jsp" where the contents
of the bean are validated. If the entered values are correct then the
user is directed to "Success.jsp" else to the welcome page again using
the <jsp:foward> tag. The usebean tag in this jsp is:
                                    <jsp:useBean id="MyBean"
scope="session" class="com.sample.mydatastore.TestBean">
                                                    <jsp:setProperty
name="MyBean" property="*"/>
                                     </jsp:useBean>

After the user clicks on the done button on Success.jsp the servlet
"Datastore_sampleTransaction.java" is called which contains the code
to persist the data. Also this page contains the log.info statements.
The output generated on Eclipse when I run this application is of the
form:
                                      IN
SERVLET
                                      Name of the
bean==com.sample.mydatastore.testb...@11ef443
                                      Name of the Student==Test
                                      Rollno of the Student==123

But after deploying the application and running it on GAE, I get error
500.  I tried going through the log but simply cant understand why the
value of the bean is shown as null. I've copied the log message which
is as follows:
 
com.sample.mydatastore.Datastore_sampleTransaction doPost: IN
SERVLET :
 
com.sample.mydatastore.Datastore_sampleTransaction doPost: Name of the
Bean==null

The Stacktrace of the Exception is as shown below:
Uncaught exception from servlet
java.lang.NullPointerException
        at
com.sample.mydatastore.Datastore_sampleTransaction.doPost(Datastore_sampleTransaction.java:
21)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
        at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1093)
        at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
97)
        at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084)
        at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
35)
        .
        .
        .
        .
        .
        .
        .
        .
        .
        .
        .
        at
com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
        at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:394)
        at java.lang.Thread.run(Unknown Source)

Please help me out with this. Thanks in advance

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