• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Adding an ArrayList of DTO's as a redirectAttribute

Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wondering if someone can help, my controller has the following POST method

The createDTOList returns a List<ChannelProgrammeDTO>.

I have an InvocationTargetException being thrown on this line

With the message

org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.util.ArrayList' to required type 'java.lang.String'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type java.util.ArrayList<?> to type java.lang.String for value '[com.tvfreakz.model.dto.ChannelProgrammeDTO@aa0950]'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.util.ArrayList<?> to type java.lang.String

What am I missing?
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic