org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Could not find value method on SQL annotation. Cause: java.lang.NullPointerException

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via apache.org by Unknown author, 2 years ago
Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Could not find value method on SQL annotation. Cause: java.lang.NullPointerException
via Google Groups by Gregory Kotsaftis, 2 years ago
Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Character'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Character
via tonitech.com by Unknown author, 1 year ago
Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException : Result Maps collection already contains value for com.erp.webservice.inter.UsersMapper.BaseResultMap
via tonitech.com by Unknown author, 1 year ago
Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException : Result Maps collection already contains value for com.erp.webservice.inter.UsersMapper.BaseResultMap
via Stack Overflow by yoprogramo
, 2 years ago
Error creating document instance. Cause: java.io.IOException: Stream closed
org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Could not find value method on SQL annotation. Cause: java.lang.NullPointerException
at org.apache.ibatis.reflection.Reflector.forClass(Reflector.java:391)
at org.apache.ibatis.reflection.MetaClass.(MetaClass.java:11)
at org.apache.ibatis.reflection.MetaClass.forClass(MetaClass.java:15)
at org.apache.ibatis.builder.SqlSourceBuilder$ParameterMappingTokenHandler.buildParameterMapping(SqlSourceBuilder.java:48)
at org.apache.ibatis.builder.SqlSourceBuilder$ParameterMappingTokenHandler.handleToken(SqlSourceBuilder.java:38)
at org.apache.ibatis.parsing.GenericTokenParser.parse(GenericTokenParser.java:29)
at org.apache.ibatis.builder.SqlSourceBuilder.parse(SqlSourceBuilder.java:19)
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.getSqlSourceFromAnnotations(MapperAnnotationBuilder.java:242)
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parseStatement(MapperAnnotationBuilder.java:155)
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:41)
at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:42)
at org.apache.ibatis.mapping.Configuration.addMapper(Configuration.java:310)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.bindMapperForNamespace(XMLMapperBuilder.java:232)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:36)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:220)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:60)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:47)
at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:29)
at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:15)
at org.apache.ibatis.App.main(App.java:35)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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