« Return to Thread: NPE

NPE

by Tom Duffey-2 :: Rate this Message:

Reply to Author | View in Thread

Hi All,

Just upgraded to 2.3.2 and getting an NPE.  This is because "type" is  
null in the call to: Enum.class.isAssignableFrom(type).  Looks like  
you need to be careful not to do that if type is null?

Tom

java.lang.NullPointerException
        at java.lang.Class.isAssignableFrom(Native Method)
        at  
com
.ibatis
.sqlmap
.engine.type.TypeHandlerFactory.getTypeHandler(TypeHandlerFactory.java:
143)
        at  
com
.ibatis
.sqlmap
.engine.type.TypeHandlerFactory.getTypeHandler(TypeHandlerFactory.java:
123)
        at  
com
.ibatis
.sqlmap
.engine
.mapping.result.ResultMap.prepareBeanParameterObject(ResultMap.java:591)
        at  
com
.ibatis
.sqlmap
.engine
.mapping.result.ResultMap.getNestedSelectMappingValue(ResultMap.java:
475)
        at  
com
.ibatis
.sqlmap.engine.mapping.result.ResultMap.getResults(ResultMap.java:341)
        at  
com
.ibatis
.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:384)
        at  
com
.ibatis
.sqlmap
.engine.execution.SqlExecutor.handleMultipleResults(SqlExecutor.java:
300)
        at  
com
.ibatis
.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:189)
        at  
com
.ibatis
.sqlmap
.engine
.mapping
.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)
        at  
com
.ibatis
.sqlmap
.engine
.mapping
.statement
.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)
        at  
com
.ibatis
.sqlmap
.engine
.mapping
.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)
        at  
com
.ibatis
.sqlmap
.engine
.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:
567)
        at  
com
.ibatis
.sqlmap
.engine
.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:
541)
        at  
com
.ibatis
.sqlmap
.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
        at  
com
.ibatis
.sqlmap
.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:94)


 « Return to Thread: NPE

LightInTheBox - Buy quality products at wholesale price!