2025-06-19 11:45:19 ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.Object[]] to type [observatorio.caracteristicas.documento.otd.DocumentoGridViewOdt] for value [{...}]] with root cause
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [observatorio.caracteristicas.documento.otd.DocumentoGridViewOdt]
Comment From: wilkinsona
Thanks for the report. Unfortunately, it isn't actionable. If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.
Comment From: jcumbico
Hi,
Files Attached.
Comment From: wilkinsona
Thanks. Unfortunately, that app is far from minimal and we can't justify spending time learning an entire codebase. You also haven't described how to reproduce the problem.
Comment From: jcumbico
OK, The error occurs when I try to select records and parse/convert from Entity class to Entity dto
The Query:
public interface DocumentoRepo
extends JpaRepository<DocumentoEntidad, String>
{
@Query("SELECT a.id, a.titulo, a.activo FROM DocumentoEntidad a ORDER by a.titulo")
List<DocumentoGridViewOdt> listar();`
DocumentoEntidad:
@Entity
@Table(name="documentos")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DocumentoEntidad
{
@Id
@Column(unique=true)
private String id;
@NotBlank(message = "El título no puede estar vacío")
private String titulo;
@NotBlank(message = "El archivo no puede estar vacío")
private String archivo;
private String enlaceOriginal;
private boolean activo = false;
private boolean tipoRepositorio=false;
private boolean tipoProtocolo=false;;
private boolean tipoInstrumentoNormativo=false;;
private boolean tipoGlosario = false;
//@OneToOne(mappedBy = "documento", cascade = CascadeType.ALL, orphanRemoval = true)
@OneToOne(cascade = CascadeType.ALL, orphanRemoval = true)
@JoinColumn(name="repositorio_id", referencedColumnName = "id")
private RepositorioEntidad repositorio;
}
DocumentoGridViewOdt:
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DocumentoGridViewOdt
{
private String id;
private String titulo;
private boolean activo;
}
Comment From: philwebb
@jcumbico Thanks for the additional information, but we're really looking for a minimal sample (ideally without Lombok) that works with 3.5.0 and reproduces the issue with 3.5.1 along with the steps we need to take to trigger the exception.