qickrooms / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
0 stars 0 forks source link

ObjectifyFactory::getTranslators throws "No such instance method" error #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

    public class ObjectifyProvider
    {
        static
        {
            factory().getTranslators(); // error thrown on this line
        }

        public static Objectify ofy()
        {
            return ObjectifyService.ofy();
        }

        public static ObjectifyFactory factory()
        {
            return ObjectifyService.factory();
        }
    }

What is the expected output? What do you see instead?

  There doesn't seem to be any real documentation on the translator system, so I might be completely oblivious to how I should be using them. But I'm assuming that by using the ideas in the Best Practices guide I should be able to get the Translators object during static initialization.

What version of the product are you using? On what operating system?

  Objectify 5.0 on Windows 7

Please provide any additional information below.

  Full error description is,

  java.lang.NoSuchMethodError: com.googlecode.objectify.ObjectifyFactory.getTranslators()Lcom/googlecode/objectify/impl/translate/Translators;

Original issue reported on code.google.com by par...@byhook.com on 18 May 2014 at 9:15

GoogleCodeExporter commented 9 years ago
See FAQ #2:

https://code.google.com/p/objectify-appengine/wiki/FrequentlyAskedQuestions#NoSu
chMethodError_?!?

Original comment by lhori...@gmail.com on 18 May 2014 at 11:01