[/liningVMservice] threw exception [Handler processing failed; nested exception is java.lang.AbstractMethodE
at com.sun.proxy.$Proxy11.insert(Unknown Source)
检查一下resultMap 和sql语句是否正确,nested exception 不是sql 语句有问题,就应该是resultmap映射有问题~
at com.sun.proxy.$Proxy11.insert(Unknown Source)
检查一下resultMap 和sql语句是否正确,nested exception 不是sql 语句有问题,就应该是resultmap映射有问题~
解决方案 »
- MyEclipse总是报内存不足。
- 怎么用java写个门卫进出记录排序的程序?记录很乱!
- 请教HttpServletRequest和HttpSession的区别?
- Struts连接数据源问题
- 如何让保存在数据库里的HTML代码在读到页面上时起作用?求教,在线等!
- 大家看看有没有必要学习“设计模式”阿!“java与模式”这本书怎么样啊?
- java应用程序中连接 mysql问题
- 编译cocoon 时找不到org.jaxen.dom.DOMXPath
- DefaultMutableTreeNode 要用到什么包啊?
- hibernate多对多——配不出来,跪求指点
- CXFwebservice动态调用client时空指针异常
- spring mvc 一个<url-pattern>的配置问题
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table vmguest
*
* @mbggenerated
*/
int insert(VMGuest record);
<insert id="insert" parameterType="com.lining.vmservice.model.VMGuest" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into vmguest (id, name, vm_type,
cpu_clock, cpu_count, memory_size,
architecture, os_type, power_state,
vm_state, create_date, update_date,
image_id, template_id, lserver_key
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{vmType,jdbcType=VARCHAR},
#{cpuClock,jdbcType=DOUBLE}, #{cpuCount,jdbcType=INTEGER}, #{memorySize,jdbcType=DOUBLE},
#{architecture,jdbcType=INTEGER}, #{osType,jdbcType=VARCHAR}, #{powerState,jdbcType=VARCHAR},
#{vmState,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP},
#{imageId,jdbcType=VARCHAR}, #{templateId,jdbcType=VARCHAR}, #{lserverKey,jdbcType=VARCHAR}
)
</insert> 以上是我的代码 和sql
<resultMap id="BaseResultMap" type="com.lining.vmservice.model.VMGuest" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="vm_type" property="vmType" jdbcType="VARCHAR" />
.........................
</resultMap> 以上是我的resultMap