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 9008149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:52:25+00:00 2026-06-16T01:52:25+00:00

ConfigProperty.idPropertyMap is filled on the server side. (verified via log output) Accessing it on

  • 0

ConfigProperty.idPropertyMap is filled on the server side. (verified via log output)

Accessing it on the client side shows it’s empty. 🙁 (verified via log output)

Is this some default behaviour? (I don’t think so)
Is the problem maybe related to the inner class ConfigProperty.IdPropertyMap, java.util.HashMap usage, serialization or some field access modifier issue?

Thanks for your help

    // the transfer object

    public class ConfigProperty implements IsSerializable, Comparable {

        ...

    static public class IdPropertyMap extends HashMap 
             implements IsSerializable 
        {
           ...
        }

    protected static IdPropertyMap idPropertyMap = new IdPropertyMap();

        ...
    }


    // the server service

    public class ManagerServiceImpl extends RemoteServiceServlet implements
        ManagerService 
    {
        ...

        public IdPropertyMap getConfigProps(String timeToken) 
            throws ConfiguratorException 
        {
            ...
        }
    }

added from below after some good answers (thanks!):

answer bottom line: static field sync is not implemented/supported currently. someone/me would have to file a feature request

just my perspective (an fallen-in-love newby to GWT :-)):

I understand pretty good (not perfect! ;-)) the possible implications of “global” variable syncing (a dependency graph or usage of annotations could be useful).
But from a new (otherwise experienced Java EE/web) user it looks like this:

  • you create some myapp.shared.dto.MyClass class (dto = data transfer objects)

  • you add some static fields in it that just represent collections of those objects (and maybe some other DTOs)

  • you can also do this on the client side and all the other static methods work as well

  • only thing not working is synchronization (which is not sooo bad in the first place)

BUT: some provided annotation, let’s say @Transfer static Collection<MyClass> myObjList; would be handy, since I seem to know the impact and benefits that this would bring.

In my case it’s rather simple since the client is more static, but would like to have this data without explicitely implementing it if the GWT framework could do it.

  • 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-16T01:52:26+00:00Added an answer on June 16, 2026 at 1:52 am

    static variables are purely class variable It has nothing to do with individual instances. serialization applies only to object.

    So ,your are getting always empty a ConfigProperty.idPropertyMap

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

Sidebar

Related Questions

I'm currently using JerseyTest w/ Grizzly embedded server to test some code. I do
I have implemented this example into my application: https-clientserver-grizzly Here is Server.java from that
I prefer creating my nav menus from markup (rather than Javascript), like in this
I have a REST server made in Grizzly that uses HTTPS and works wonderfully
I am trying to launch a Jetty server from a class. When I try
I ve created a sample REST web service which writes some data in a
I am looking into REST and protocol buffers atm. Therefore I found [this][1] tutorial
I have an EAR application which contains an MDB and a WAR. In this
I've created my app and following the suggestions here I've done this: In proguard-project.txt:
I'm currently building a simple REST interface using Jersey with embedded Jetty. Server server

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.