Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6376481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:45:04+00:00 2026-05-25T01:45:04+00:00

My App engine/ GWT project is spitting out a nasty little pile of stack

  • 0

My App engine/ GWT project is spitting out a nasty little pile of stack trace whenever it attempts to return from my login method. I am using GAE version 1.5.0 and GWT version 2.3.0 .

It’s a facebook app, so what I’ve got is this:

  • The player navigates to the app page.
  • They click a button, and are redirected to the OAuth authentication page
  • They are then redirected back to the app, with the authentication token in the query string
  • I break the query string apart to get the UID, and then use that as the primary key for my Player entity (RPC to app engine backend)
  • I retrieve the Player entity instance from the datastore, and turn it into a serializable type to return to the client
  • Epic fail.

When I spit out the exception in a JSAlert, I get a big nasty pile of stack trace (I already was thoughtful enough to compile using “pretty” instead of “obfuscated”).

My login function looks like this:

@Override
public ClientPlayer login(String uid) {
    PersistenceManager pm=PMF.get().getPersistenceManager();
    log.warning(Player.class.getName());
    log.warning(uid);
    Key k=KeyFactory.createKey(Player.class.getSimpleName(), uid);
    Player p;
    List<List<Integer>> stats;
    try{
        p=pm.getObjectById(Player.class, k);
    } catch (JDOObjectNotFoundException e){
        p=new Player(uid);
        p.setKey(k);
        pm.makePersistent(p);
    } finally {
        pm.close();
    }
    stats=p.getStats();
    return new ClientPlayer(p.getUID(),p.getPerm(), p.getDecks(),stats.get(0), stats.get(1), stats.get(2));
}

Unfortunately, due to NDA, I can’t link to the app, but here’s the output:

    Failure to log in because of: 
    com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot call method 'nullMethod' of null
     arguments: nullMethod,
     type: non_object_property_call
     stack: TypeError: Cannot call method 'nullMethod' of null
        at Object.ClientPlayer_1 (http://*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:993:89)
        at Object.ClientPlayer_0 (http://*com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:984:18)
        at Array.instantiate_1 [as 0] (http://*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:1031:10)
        at $instantiate_0 (http://*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:10660:34)
        at $instantiate (http://*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:1948:10)
        at $readObject (http://*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:10148:95)
        at Object.read_8 [as read] (http://*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:10608:10)
        at $onResponseReceived (http://*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:10352:247)
        at $fireOnResponseReceived (http://*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:5002:5)
        at Object.onReadyStateChange (http:/*.com/com.MES.Tap2/A37A2E2E9A65DB1BAAE2BFA42572F7F8.cache.html:5222:5)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:45:05+00:00Added an answer on May 25, 2026 at 1:45 am

    The issue was in the use of the IsSerializable interface, or rather my poor understanding of it.

    When you create an IsSerialiazable object, it requires a no-argument constructor. I was passing null values from that constructor to the main constructor, so when methods were called on them, null pointer exceptions occurred. This was dumb of me, but hey, it was a learning experience.

    In my particular case, it went a little like this…

    public class ClientObject implements IsSerializable {
        private Object field1;
        private Object field2;
        private String field3;
    
        public ClientObject(){
            this(null, null);
        }
        public ClientObject(Object arg1, Object arg2){
            field1=arg1;
            field2=arg2;
            field3=arg1.toString()+arg2.toString(); 
            //Error on above line, though not obviously mentioned in the message
        }
    }
    

    What should have been done was…

    public ClientObject(){
        this(new Object(), new Object());
    }
    

    Hope this helps someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Someone must know of a working eclipse project for GWT / App Engine datastore
I'm just getting started with a project that combines GWT, Google App Engine and
My GWT project is setup with google app engine. Now I want to run
In my Google App Engine project I got an unexpected exception: com.google.gwt.user.server.rpc.UnexpectedException: Service method
I and my friend are working on a GWT-Google App Engine project, using Tortoise
I'm having some problem persisting object with my GWT-App engine project which I use
I have a working GWT-App Engine web project which works before I added the
I'm developing a app in Google app Engine with GWT and GXT so i
I am learning to use GWT with App Engine in Eclipse. I included the
Hi Im new to GWT and Google App Engine. Im trying to layout which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.