java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.bo.Amortizacion


Solutions on the web1

Solution icon of stackoverflow
com.google.gson.internal.LinkedTreeMap cannot be cast to com.bo.Amortizacion

Stack trace

java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.bo.Amortizacion
	at com.dao.impl.TransaccionDAO$1.setValues(TransaccionDAO.java:49)
	at org.springframework.jdbc.core.JdbcTemplate$4.doInPreparedStatement(JdbcTemplate.java:956)
	at org.springframework.jdbc.core.JdbcTemplate$4.doInPreparedStatement(JdbcTemplate.java:946)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:658)
	at org.springframework.jdbc.core.JdbcTemplate.batchUpdate(JdbcTemplate.java:946)
	at com.dao.impl.TransaccionDAO.insertarAmortizaciones(TransaccionDAO.java:44)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.