java.lang.IllegalStateException: Final field private final int java.lang.String.count cannot be stored

Google Groups | S├ębastien Tromp | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Embedded Map: should it work?

    Google Groups | 5 years ago | S├ębastien Tromp
    java.lang.IllegalStateException: Final field private final int java.lang.String.count cannot be stored
  2. 0

    Why are final field modifiers throwing an IllegalStateException?

    Google Groups | 5 years ago | ZachIngraham
    java.lang.IllegalStateException: Final field private final long com.pabutab.dataObjects.FoodAttribute.foodID cannot be stored

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Final field private final int java.lang.String.count cannot be stored

      at com.google.code.twig.annotation.AnnotationConfiguration.store()
    2. com.google.code
      TranslatorObjectDatastore.store
      1. com.google.code.twig.annotation.AnnotationConfiguration.store(AnnotationConfiguration.java:126)
      2. com.google.code.twig.standard.TranslatorObjectDatastore$ConfigurationFieldTranslator.stored(TranslatorObjectDatastore.java:673)
      3. com.google.code.twig.translator.FieldTranslator.encode(FieldTranslator.java:333)
      4. com.google.code.twig.standard.StandardCommonStoreCommand.instanceToEntity(StandardCommonStoreCommand.java:284)
      5. com.google.code.twig.standard.StandardCommonStoreCommand.instancesToEntities(StandardCommonStoreCommand.java:197)
      6. com.google.code.twig.standard.StandardMultipleStoreCommand.now(StandardMultipleStoreCommand.java:31)
      7. com.google.code.twig.standard.RelationTranslator.instancesToKeys(RelationTranslator.java:189)
      8. com.google.code.twig.standard.RelationTranslator.access$000(RelationTranslator.java:26)
      9. com.google.code.twig.standard.RelationTranslator$1.get(RelationTranslator.java:131)
      10. com.google.code.twig.standard.RelationTranslator$1.get(RelationTranslator.java:125)
      11. com.google.code.twig.standard.StandardEncodeCommand.dereferencePropertyValue(StandardEncodeCommand.java:58)
      12. com.google.code.twig.standard.StandardEncodeCommand.transferProperties(StandardEncodeCommand.java:41)
      13. com.google.code.twig.standard.StandardCommonStoreCommand.instanceToEntity(StandardCommonStoreCommand.java:294)
      14. com.google.code.twig.standard.StandardSingleStoreCommand.now(StandardSingleStoreCommand.java:58)
      15. com.google.code.twig.standard.TranslatorObjectDatastore.store(TranslatorObjectDatastore.java:161)
      15 frames
    3. com.fiveorbs.server
      TestEmbeddedMapPersistence.testEmbeddedMap
      1. com.fiveorbs.server.access.embeddedmap.TestEmbeddedMapPersistence.testEmbeddedMap(TestEmbeddedMapPersistence.java:27)
      1 frame