icoloma / appbuilder

Entorno de generación de Apps de Segittur
0 stars 0 forks source link

RoomPrices #79

Closed ehdez73 closed 11 years ago

ehdez73 commented 11 years ago

Al intentar guardar un Poi de tipo Lodging con precios salta una ClassCastException

java.lang.ClassCastException: info.spain.opencatalog.domain.poi.Price cannot be cast to info.spain.opencatalog.domain.poi.lodging.RoomPrice
    at info.spain.opencatalog.domain.poi.types.LodgingType.validate(LodgingType.java:38)
    at info.spain.opencatalog.domain.poi.types.PoiTypeRepository.validate(PoiTypeRepository.java:39)
    at info.spain.opencatalog.domain.poi.BasicPoi.validate(BasicPoi.java:139)
    at info.spain.opencatalog.domain.poi.lodging.Lodging.validate(Lodging.java:100)
    at info.spain.opencatalog.web.controller.PoiController.update(PoiController.java:207)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)