When I use json-io in my Android app I get lots of "newInstance
failed: no <init>()" messages on the Java console. It appears the
serialization/deserialization works properly, but the messages are a
concern. What could be the cause and resolution? Thanks.
-Ron
When the JsonReader begins instantiating classes to reconstruct the
object graph on the destination side, it first attempts to use a
public constructor. If that fails to instantiate, it then goes
through the rest of the constructors (public or private) until one of
them gets the instance instantiated. Once instantiated, it then
copies the appropriate values to the appropriate fields.
There is a chance that one of the objects you are attempting to
instantiate print's out this message while it is going through this
process. I would locate which object is doing this, and see if that
behavior can be turned off.
I am interested in hearing about what you find.
- John
Make sure you get the latest version, 1.0.4. Thanks for helping solve the issue.