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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:56:09+00:00 2026-05-29T07:56:09+00:00

I am using Objectify as a data access layer in my GoogleAppEngine hosted application.

  • 0

I am using Objectify as a data access layer in my GoogleAppEngine hosted application.

The problem comes when I try to persist a map. My bean looks like this:

@Entity
@Cached
class MyBean{
    @Id 
    private Long id;
    @Embedded
    Map<String, String> parameters = new HashMap<String, String>();

    public MyBean(){}

    //getters and setters below
}

First of all note that the map ‘parameters’ is not private, it was throwing a JRE exception.
When saving the map everything goes well. When retreiving it from the DataStore it fails.

My workaround is to use the @Serialized annotation. This is just a workaround since what I want to acheive is to use the expando feature of GAE Datastore.

According to the objectify doc I’m doing the right operations.

Exception details:

Caused by: java.lang.NullPointerException at
com.googlecode.objectify.impl.Transmog.loadSingleValue(Transmog.java:364)
at
com.googlecode.objectify.impl.load.EmbeddedMapSetter.safeSet(EmbeddedMapSetter.java:65)
at
com.googlecode.objectify.impl.load.CollisionDetectingSetter.set(CollisionDetectingSetter.java:37)
at
com.googlecode.objectify.impl.Transmog.loadSingleValue(Transmog.java:359)
at com.googlecode.objectify.impl.Transmog.load(Transmog.java:340) at
com.googlecode.objectify.impl.ConcreteEntityMetadata.toObject(ConcreteEntityMetadata.java:203)
at
com.googlecode.objectify.impl.QueryImpl$ToObjectIterator.translate(QueryImpl.java:668)
at
com.googlecode.objectify.impl.QueryImpl$ToObjectIterator.translate(QueryImpl.java:657)
at
com.googlecode.objectify.util.TranslatingIterator.next(TranslatingIterator.java:35)

  • 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-29T07:56:09+00:00Added an answer on May 29, 2026 at 7:56 am

    Embedded maps were poorly supported in Objectify3, and should not have been publicly announced. The section on @Embedded Map has been removed from the Objectify3 documentation.

    Objectify4 supports maps extensively, including these expando-style maps:

    • Map (or any primitive)
    • Map (key references)
    • Map (embedded classes

    In addition, there is a @Mapify annotation that lets you take a normal collection of objects, pick one property out as a key, and store that as a Map.

    Unfortunately Objectify4’s documentation is not ready at this time. However, the source code is in active use by several parties. If you feel daring, build from trunk.

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

Sidebar

Related Questions

I am developing an iPhone application using Objective-C. I want to access a data
I'm trying to make my first application using Objective C + Core Data, but
I have a WCF data service hosted on a IIS server; I am using
I've been trying to code a simple screenshot application using rococoa (java to osx
I have a lot of classes for data-access in one of my projects, but
I use Objectify for datastore operations in my GAE/Java application. I have used Objectify's
I'm trying to create a webb application using Struts 2 and javascript and I'm
What is the best way to represent this data structure? I'm using Objective-C for
I am using Objective C Proxy objects(which was created using wsdl2Objc tool) to access
I need some help in using objects from Core Data with GCD; I seem

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.