---
title: "Comment by Deepak A L on \"Spring Boot and Java 16 Records\" | Hashnode"
description: "Did you fix the error and is it working now correctly? 2021-03-19 02:01:55.434 ERROR 66059 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet"
url: "https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1/comment/611bd2168b9c03054649ec2e"
---

[Discussion](https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1)

Comment [Spring Boot and Java 16 Records](https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1)

[Deepak A L](https://hashnode.com/@DeepakLalchandani)

[Aug 17, 2021](https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1/comment/611bd2168b9c03054649ec2e)

Did you fix the error and is it working now correctly?

2021-03-19 02:01:55.434 ERROR 66059 --- \[nio-8080-exec-1\] o.a.c.c.C.\[.\[.\[/\].\[dispatcherServlet\] : Servlet.service() for servlet \[dispatcherServlet\] in context with path \[\] threw exception \[Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.example.indianstates.State\]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.example.indianstates.State.<init>()\] with root cause

[Ashish Choudhary](https://hashnode.com/@iashish)

[Aug 21, 2021](https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1/comment/611bd2168b9c03054649ec2e#reply-6121186da5d08237f40e0b18)

Yes you need to use RowMapper. Already explained in the article. You can check out the source code as well and let me know for any issues.
