java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.sample.mappers.UserMapper.getAllUsers

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Lucky
, 1 year ago
Mapped Statements collection already contains value for com.sample.mappers.UserMapper.getAllUsers
via Google Groups by Colin Williams, 1 year ago
Result Maps collection already contains value for com.example.SavedUserSessionMapper.getSessionByIdentifier-String
via irfen.me by Unknown author, 2 years ago
Result Maps collection already contains value for me.irfen.ssm.dao.BlogMapper.BaseResultMap
via GitHub by iwanagah
, 2 years ago
XML fragments parsed from previous mappers already contains value for org.terasoluna.gfw.functionaltest.domain.repository.queryescape.TodoMybatisRepository.findAllByTitleLike
via pr8x.com by Unknown author, 1 year ago
Mapped Statements collection already contains value for com.foo.FooDAO.getIDs
java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.sample.mappers.UserMapper.getAllUsers
at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:802)
at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:774)
at org.apache.ibatis.session.Configuration.addMappedStatement(Configuration.java:598)
at org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:300)
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parseStatement(MapperAnnotationBuilder.java:313)
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:128)
at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:72)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.