Please help me out for this issue. Is this the cause of contentUrl?

Caused by: com.sdl.webapp.common.impl.mapping.SemanticAnnotationException: The field private java.lang.String com.sdl.webapp.common.api.model.entity.MediaItem.url has a @SemanticProperty annotation with prefix 's', but the entity class has no @SemanticEntity annotation with this prefix.

This is the available in MediaItem class in Common API jar.

private String url;
  • Can you please provide the entire Entity class source code? Nov 19 '16 at 11:08
  • For clarity: class MediaItem is an abstract class and hence cannot be instantiated itself; only concrete subclasses can be instantiated. Which subclass are you using? How is it defined? We really need more info to be able to answer this question. Nov 22 '16 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.