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

  • Home
  • SEARCH
  • 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 7717517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:55:11+00:00 2026-06-01T02:55:11+00:00

I’m having the following problem when using GWT and request factory. I am working

  • 0

I’m having the following problem when using GWT and request factory.

I am working on an object tree that is composed of different entities, say A references B and C, C references D.

I have a loadAs method that return the whole object graph using the with annotations (with("B", "C", "C.D")). So far everything looks great and i have the following structure loaded on the client.

A1
  -> B1
  -> C1
    -> D1

Now I create the following within a request context on the client.

A* (created on the client using context.create() )
  -> B1 (same B1 that was already loaded)
  -> C* (created on the client using context.create())
    -> D1 (same D1 that was already loaded)

My persist Method looks like this: Request<List<A>> persistAs(List<A>)

I fire it with the exact same with-parameters as loadAs (with("B", "C", "C.D")) but still my response looks like this:

A* (now contains an id that was created on the server)
  -> B1 (same as the previously loaded)
  -> C* (now contains an id that was created on the server)
      -> null

So, the D1 that already exists on the client is not part of the response’s object tree. However, D1 is sent to the server and available in the persistAs method as part of the requests object tree. In addition, persistAs makes sure that the full object tree is returned (D1 is contained).

I have no clue why this happens. I also don’t know where to debug. I don’t get any exception.

Additional information or findings that I noticed while debugging and trying to nail this down:

  • when I trigger loadAs on the client after they have been persisted, the full object graph is returned
  • I am using objectify as persistency api
  • C is a supertype that is abtract in nature, it is however implemented as a normal entity and its subtypes are too, as this concept works everywhere else i can’t imagine that this is the problem. To be more precise: C is always a concrete subtype. The reference from C to D however is directly on the super type C. C and all its subtypes are marked as entity proxies and have corresponding server entities.
  • For testing purposes i modified my server implementation of the persistAs method so that it internally calls loadAs after the As have been persisted. But then the client receives nothing at all?!? See the following code example for illustration:

    List<A> persistAs(List<A> As) {
       //Persist the As
    
       // Make sure the object graph of the As is loaded
    
       // return As;
    
       // Debug only - return As using loadAs -> the client receives nothing at all
       return loadAs(As);
    }
    
  • 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-06-01T02:55:12+00:00Added an answer on June 1, 2026 at 2:55 am

    I suppose (I fear) it might be a weird consequence of http://code.google.com/p/google-web-toolkit/issues/detail?id=7189

    Try edit()ing your D1 proxy (and B1 too, as you’re at it) before you fire() the RequestContext.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the

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.