hibernate - java.lang.AbstractMethodError: org.springframework.orm.hibernate3.SpringSessionSynchronization.afterCommit()V -
i creating spring mvc web application. giving httprequest app-
http://localhost:8080/mvc_crud_spring/add
below code have written in employeecontroller handles request path '/add'
@requestmapping(value="/add",method=requestmethod.get) public modelandview addemployee(employeebean employeebean,bindingresult bindingresult){ map<string, object> model=new hashmap<string,object>(); model.put("employees", preparelistofemployeebeans(employeeservice.listemployees())); return new modelandview("addemployee","command",model); }
after hitting url while debugging code see employee objects being retrieved successfully.
but post getting below error , request failed render requested page, error saying call being made abstract method
apr 01, 2015 3:28:01 pm org.apache.catalina.core.standardwrappervalve invoke severe: servlet.service() servlet [employee] in context path [/mvc_crud_spring] threw exception [handler processing failed; nested exception java.lang.abstractmethoderror: org.springframework.orm.hibernate3.springsessionsynchronization.aftercommit()v] root cause java.lang.abstractmethoderror: org.springframework.orm.hibernate3.springsessionsynchronization.aftercommit()v @ org.springframework.transaction.support.transactionsynchronizationutils.invokeaftercommit(transactionsynchronizationutils.java:133) @ org.springframework.transaction.support.transactionsynchronizationutils.triggeraftercommit(transactionsynchronizationutils.java:121) @ org.springframework.transaction.support.abstractplatformtransactionmanager.triggeraftercommit(abstractplatformtransactionmanager.java:951) @ org.springframework.transaction.support.abstractplatformtransactionmanager.processcommit(abstractplatformtransactionmanager.java:797) @ org.springframework.transaction.support.abstractplatformtransactionmanager.commit(abstractplatformtransactionmanager.java:724) @ org.springframework.transaction.interceptor.transactionaspectsupport.committransactionafterreturning(transactionaspectsupport.java:475) @ org.springframework.transaction.interceptor.transactionaspectsupport.invokewithintransaction(transactionaspectsupport.java:270) @ org.springframework.transaction.interceptor.transactioninterceptor.invoke(transactioninterceptor.java:94) @ org.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:172) @ org.springframework.aop.framework.jdkdynamicaopproxy.invoke(jdkdynamicaopproxy.java:204)
any on highly appreciated.
Comments
Post a Comment