Hola gente de foros del web,
Quisiera saber si alguien me podria dar una mano con la siguiente excepcion que estoy teniendo ya que soy nuevo en el mundo de Hibernate y he buscado por todas partes alguna solución a mi problema y no he podido dar con la solucion:
StackTrace:
exception
org.springframework.web.util.NestedServletExceptio n: Request processing failed; nested exception is org.springframework.orm.hibernate4.HibernateSystem Exception: IllegalArgumentException occurred calling getter of local.model.Pedido.codigo; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of local.model.Pedido.codigo
org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:894)
org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:778)
javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
javax.servlet.http.HttpServlet.service(HttpServlet .java:723)
root cause
org.springframework.orm.hibernate4.HibernateSystem Exception: IllegalArgumentException occurred calling getter of local.model.Pedido.codigo; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of local.model.Pedido.codigo
org.springframework.orm.hibernate4.SessionFactoryU tils.convertHibernateAccessException(SessionFactor yUtils.java:206)
org.springframework.orm.hibernate4.HibernateTransa ctionManager.convertHibernateAccessException(Hiber nateTransactionManager.java:606)
org.springframework.orm.hibernate4.HibernateTransa ctionManager.doCommit(HibernateTransactionManager. java:488)
org.springframework.transaction.support.AbstractPl atformTransactionManager.processCommit(AbstractPla tformTransactionManager.java:754)
org.springframework.transaction.support.AbstractPl atformTransactionManager.commit(AbstractPlatformTr ansactionManager.java:723)
org.springframework.transaction.interceptor.Transa ctionAspectSupport.commitTransactionAfterReturning (TransactionAspectSupport.java:394)
org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:120)
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
org.springframework.aop.framework.Cglib2AopProxy$D ynamicAdvisedInterceptor.intercept(Cglib2AopProxy. java:622)
local.dao.PedidoDao$$EnhancerByCGLIB$$a9771d59_2.s ave(<generated>)
local.controller.PedidoController.finishP(PedidoCo ntroller.java:252)
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.springframework.web.method.support.InvocableHa ndlerMethod.invoke(InvocableHandlerMethod.java:213 )
org.springframework.web.method.support.InvocableHa ndlerMethod.invokeForRequest(InvocableHandlerMetho d.java:126)
org.springframework.web.servlet.mvc.method.annotat ion.ServletInvocableHandlerMethod.invokeAndHandle( ServletInvocableHandlerMethod.java:96)
org.springframework.web.servlet.mvc.method.annotat ion.RequestMappingHandlerAdapter.invokeHandlerMeth od(RequestMappingHandlerAdapter.java:617)
org.springframework.web.servlet.mvc.method.annotat ion.RequestMappingHandlerAdapter.handleInternal(Re questMappingHandlerAdapter.java:578)
org.springframework.web.servlet.mvc.method.Abstrac tHandlerMethodAdapter.handle(AbstractHandlerMethod Adapter.java:80)
org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:923)
org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:852)
org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:882)
org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:778)
javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
javax.servlet.http.HttpServlet.service(HttpServlet .java:723)
root cause
org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of local.model.Pedido.codigo
org.hibernate.property.BasicPropertyAccessor$Basic Getter.get(BasicPropertyAccessor.java:187)
org.hibernate.tuple.entity.AbstractEntityTuplizer. getIdentifier(AbstractEntityTuplizer.java:341)
org.hibernate.persister.entity.AbstractEntityPersi ster.getIdentifier(AbstractEntityPersister.java:43 23)
org.hibernate.persister.entity.AbstractEntityPersi ster.isTransient(AbstractEntityPersister.java:4045 )
org.hibernate.engine.internal.ForeignKeys.isTransi ent(ForeignKeys.java:209)
org.hibernate.engine.internal.ForeignKeys.getEntit yIdentifierIfNotUnsaved(ForeignKeys.java:248)
org.hibernate.type.EntityType.getIdentifier(Entity Type.java:459)
org.hibernate.type.ManyToOneType.nullSafeSet(ManyT oOneType.java:132)
org.hibernate.persister.entity.AbstractEntityPersi ster.dehydrate(AbstractEntityPersister.java:2603)
org.hibernate.persister.entity.AbstractEntityPersi ster.update(AbstractEntityPersister.java:2984)
org.hibernate.persister.entity.AbstractEntityPersi ster.updateOrInsert(AbstractEntityPersister.java:2 919)
org.hibernate.persister.entity.AbstractEntityPersi ster.update(AbstractEntityPersister.java:3248)
org.hibernate.action.internal.EntityUpdateAction.e xecute(EntityUpdateAction.java:140)
org.hibernate.engine.spi.ActionQueue.execute(Actio nQueue.java:362)
org.hibernate.engine.spi.ActionQueue.executeAction s(ActionQueue.java:354)
org.hibernate.engine.spi.ActionQueue.executeAction s(ActionQueue.java:276)
org.hibernate.event.internal.AbstractFlushingEvent Listener.performExecutions(AbstractFlushingEventLi stener.java:326)
org.hibernate.event.internal.DefaultFlushEventList ener.onFlush(DefaultFlushEventListener.java:52)
org.hibernate.internal.SessionImpl.flush(SessionIm pl.java:1214)
org.hibernate.internal.SessionImpl.managedFlush(Se ssionImpl.java:403)
org.hibernate.engine.transaction.internal.jdbc.Jdb cTransaction.beforeTransactionCommit(JdbcTransacti on.java:101)
org.hibernate.engine.transaction.spi.AbstractTrans actionImpl.commit(AbstractTransactionImpl.java:175 )
org.springframework.orm.hibernate4.HibernateTransa ctionManager.doCommit(HibernateTransactionManager. java:480)
org.springframework.transaction.support.AbstractPl atformTransactionManager.processCommit(AbstractPla tformTransactionManager.java:754)
org.springframework.transaction.support.AbstractPl atformTransactionManager.commit(AbstractPlatformTr ansactionManager.java:723)
org.springframework.transaction.interceptor.Transa ctionAspectSupport.commitTransactionAfterReturning (TransactionAspectSupport.java:394)
org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:120)
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
org.springframework.aop.framework.Cglib2AopProxy$D ynamicAdvisedInterceptor.intercept(Cglib2AopProxy. java:622)
local.dao.PedidoDao$$EnhancerByCGLIB$$a9771d59_2.s ave(<generated>)
local.controller.PedidoController.finishP(PedidoCo ntroller.java:252)
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.springframework.web.method.support.InvocableHa ndlerMethod.invoke(InvocableHandlerMethod.java:213 )
org.springframework.web.method.support.InvocableHa ndlerMethod.invokeForRequest(InvocableHandlerMetho d.java:126)
org.springframework.web.servlet.mvc.method.annotat ion.ServletInvocableHandlerMethod.invokeAndHandle( ServletInvocableHandlerMethod.java:96)
org.springframework.web.servlet.mvc.method.annotat ion.RequestMappingHandlerAdapter.invokeHandlerMeth od(RequestMappingHandlerAdapter.java:617)
org.springframework.web.servlet.mvc.method.annotat ion.RequestMappingHandlerAdapter.handleInternal(Re questMappingHandlerAdapter.java:578)
org.springframework.web.servlet.mvc.method.Abstrac tHandlerMethodAdapter.handle(AbstractHandlerMethod Adapter.java:80)
org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:923)
org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:852)
org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:882)
org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:778)
javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
javax.servlet.http.HttpServlet.service(HttpServlet .java:723)
root cause