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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:44:59+00:00 2026-06-10T04:44:59+00:00

I have a JSON map like: { element:value,element2:value2,…} With both key and value strings.

  • 0

I have a JSON map like:

{ "element":"value","element2":"value2",...}

With both key and value strings. I try to read it with an autobean and I get strange exceptions. It should be straightforward, shouldn’t?

The error I’m getting is:

[ERROR] [project_name] - The java.util.Map parameterization is not simple, but the getConf method does not provide a delegate

I read the map like that:

final String jsObject = GeneralContextNativeReader.read("globalConf");
GlobalConfFactory globalConfFactory = GWT.create(GlobalConfFactory.class);
Map<String, String> globalConf = AutoBeanCodex.decode(globalConfFactory, Map.class, jsObject).as();

and the factory is defined as:

public interface GlobalConfFactory extends AutoBeanFactory {
    AutoBean<Map<String, String>> globalConf();
}

What is wrong with that ?

  • 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-10T04:45:00+00:00Added an answer on June 10, 2026 at 4:45 am

    AFAIK Maps and Lists and other non simple objects can only be reference types and not value types. See here for more details.
    Changing the code to this should make it work:

    public interface Data {
       public Map<String,String>> getGlobalConf();
    }
    
    public interface DataFactory extends AutoBeanFactory {
       AutoBean<Data> getData();
    }
    
    final String jsObject = GeneralContextNativeReader.read("globalConf");
    DataFactory dataFactory = GWT.create(DataFactory.class);
    Data data = AutoBeanCodex.decode(dataFactory, Data.class, jsObject).as();
    Map<String, String> globalConf = data.getGlobalConf();
    

    Your json string has to look something like that:

    {"globalConf":{ "element":"value","element2":"value2",...}}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some JSON objects I'd like to store in a map for the
I have a chunk of JSON which looks something like: { map: [ [
I have JSON like this: { something: http://something.com } and HTML like this: <a
I have JSON text that looks like this: { ok: true, totalPages: 256, arReports:
i have json data like this {GetStudentDetails: {TotalCount:5, RootResults:[ {city:West Chester,country:USA,state:PA ,student_id:100}, {city:Philly,country:USA,state:PA,student_id:101}, {city:Buffalo,country:USA,state:NY,student_id:102},
I have an json Object like this. {'01/19/2012': Array[1],'02/19/2012': Array[7],'03/19/2012': Array[6]} Now i want
I have a C++ map based structure that I'd like to save onto an
I have a form I'd like to submit as JSON via jQuery AJAX, so
I have a Json file that looks like this: [ { field:val }, ....
I would like to deserialise Scala case classes that have been serialised using lift-json.

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.