Thursday, December 1, 2011

[PlayMorphia]RuntimeException: bad type, not parameterized...

Just got this exception stack:
@68i05o17j
Internal Server Error (500) for request GET /@tests

Oops: RuntimeException
An unexpected error occured caused by exception RuntimeException: bad type, not parameterized...

play.exceptions.UnexpectedException: Unexpected Error
        at play.Play.start(Play.java:525)
        at play.Play.detectChanges(Play.java:610)
        at play.Invoker$Invocation.init(Invoker.java:186)
        at Invocation.HTTP Request(Play!)
Caused by: java.lang.RuntimeException: bad type, not parameterized...
        at com.google.code.morphia.utils.ReflectionUtils.isPropertyType(ReflectionUtils.java:194)
        at com.google.code.morphia.mapping.MappedField.discover(MappedField.java:102)
        at com.google.code.morphia.mapping.MappedField.(MappedField.java:78)
        at com.google.code.morphia.mapping.MappedClass.discover(MappedClass.java:166)
        at com.google.code.morphia.mapping.MappedClass.(MappedClass.java:110)
        at com.google.code.morphia.mapping.Mapper.getMappedClass(Mapper.java:200)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:319)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:319)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:319)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:319)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:319)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:319)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:319)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:319)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:280)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:341)
        at com.google.code.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:334)
        at play.modules.morphia.MorphiaPlugin.configureDs_(MorphiaPlugin.java:569)
        at play.modules.morphia.MorphiaPlugin.onApplicationStart(MorphiaPlugin.java:453)
        at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:425)
        at play.Play.start(Play.java:495)
        ... 3 more
The reason is I put a Blob type field inside an @Embedded class, which will not be enhanced at all. Taking that out of embedded class solves the issue

No comments:

Post a Comment