Skip to main content
Tweeted twitter.com/StackTridion/status/1064624450551914496
Bumped by Community user
Bumped by Community user
added 1 character in body
Source Link
Velmurugan
  • 8.2k
  • 2
  • 15
  • 27

UPDATE This error happens not only in our tests, but also when running the webappweb app

This is java Entity Class Hotel witch havewhich has HotelKeyword attribute with name “name”

In line 144 of the log its, it's trying to map the information of the attribute name of the hotel entity, but it fails to do so because it expects a field in the metadata called nearby, this happens only when the keyword doesn’t have this metadata field

UPDATE This error happens not only in our tests, but also when running the webapp

This is java Entity Class Hotel witch have HotelKeyword attribute with name “name”

In line 144 of the log its trying to map the information of the attribute name of the hotel entity, but it fails to do so because it expects a field in the metadata called nearby, this happens only when the keyword doesn’t have this metadata field

UPDATE This error happens not only in our tests but also when running the web app

This is java Entity Class Hotel which has HotelKeyword attribute with name “name”

In line 144 of the log, it's trying to map the information of the attribute name of the hotel entity, but it fails to do so because it expects a field in the metadata called nearby, this happens only when the keyword doesn’t have this metadata field

Bumped by Community user
Bumped by Community user
added 890 characters in body
Source Link
tfinez
  • 1.2k
  • 9
  • 10

UPDATE This error happens not only in our tests, but also when running the webapp

This is java Entity Class Hotel witch have HotelKeyword attribute with name “name”

@Data
@SemanticEntity(entityName = "Hotel", vocabulary = SDL_CORE)
public class Hotel extends AbstractEntityModel {

    //General
    private Text text;
    private ContactInfo contactInfo;

    //Metadata
    @SemanticProperty("tripadvisor")
    private String tripAdvisorCode;
    private HotelKeyword name;
    private Tag brand;
    private Tag city;
    private Tag state;
}

In line 144 of the log its trying to map the information of the attribute name of the hotel entity, but it fails to do so because it expects a field in the metadata called nearby, this happens only when the keyword doesn’t have this metadata field

UPDATE This error happens not only in our tests, but also when running the webapp

This is java Entity Class Hotel witch have HotelKeyword attribute with name “name”

@Data
@SemanticEntity(entityName = "Hotel", vocabulary = SDL_CORE)
public class Hotel extends AbstractEntityModel {

    //General
    private Text text;
    private ContactInfo contactInfo;

    //Metadata
    @SemanticProperty("tripadvisor")
    private String tripAdvisorCode;
    private HotelKeyword name;
    private Tag brand;
    private Tag city;
    private Tag state;
}

In line 144 of the log its trying to map the information of the attribute name of the hotel entity, but it fails to do so because it expects a field in the metadata called nearby, this happens only when the keyword doesn’t have this metadata field

edited tags
Link
Rick Pannekoek
  • 21.4k
  • 1
  • 18
  • 30
Source Link
tfinez
  • 1.2k
  • 9
  • 10
Loading