wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Hibernate 2 data save issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate 2 data save issue" Watch "Hibernate 2 data save issue" New topic
Author

Hibernate 2 data save issue

Sander Evanfield
Greenhorn

Joined: Oct 15, 2004
Posts: 13

I have a class Address that has a Boolean Foreign field and a bit field in sql server 2005. When I try to save I get the following exception

The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 9 (""): Data type 0x32 is unknown.

Parameter 9 is the Boolean field.

The complete stacktrace is

javax.servlet.ServletException: unable to save Address
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
at com.indemand.indabmaint.architecture.IndabMaintRequestProcessor.processException(IndabMaintRequestProcessor.java:81)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
at com.indemand.indabmaint.architecture.IndabMaintRequestProcessor.processActionPerform(IndabMaintRequestProcessor.java:59)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)


root cause

com.indemand.common.DataUpdateException: unable to save Address
at com.indemand.common.persist.Persister.saveObject(Persister.java:219)
at com.indemand.royalty.organization.OrganizationDao.saveAddress(OrganizationDao.java:2015)
at com.indemand.royalty.organization.logic.visitor.GeneralVisitor.submit(GeneralVisitor.java:168)
at com.indemand.royalty.organization.OrganizationFacade.submitModel(OrganizationFacade.java:369)
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474.CGLIB$$ACCESS_submitModel_33()
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474$$FastClassByCGLIB$$d404b301.invoke()
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:201)
at com.indemand.common.util.FacadeInterceptor.intercept(FacadeInterceptor.java:58)
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474.submitModel()
at com.indemand.royalty.organization.OrganizationFacade.submitModel(OrganizationFacade.java:392)
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474.CGLIB$$ACCESS_submitModel_32()
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474$$FastClassByCGLIB$$d404b301.invoke()
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:201)
at com.indemand.common.util.FacadeInterceptor.intercept(FacadeInterceptor.java:58)
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474.submitModel()
at com.indemand.indabmaint.application.orgmaint.OrgMaintenanceSaveAction.execute(OrgMaintenanceSaveAction.java:45)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at com.indemand.indabmaint.architecture.IndabMaintRequestProcessor.processActionPerform(IndabMaintRequestProcessor.java:59)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)
*** Root cause is :
net.sf.hibernate.JDBCException: could not update: [com.indemand.royalty.organization.Address#382]
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:732)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:668)
at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:53)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2306)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2260)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2185)
at com.indemand.common.persist.Persister.saveObject(Persister.java:197)
at com.indemand.royalty.organization.OrganizationDao.saveAddress(OrganizationDao.java:2015)
at com.indemand.royalty.organization.logic.visitor.GeneralVisitor.submit(GeneralVisitor.java:168)
at com.indemand.royalty.organization.OrganizationFacade.submitModel(OrganizationFacade.java:369)
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474.CGLIB$$ACCESS_submitModel_33()
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474$$FastClassByCGLIB$$d404b301.invoke()
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:201)
at com.indemand.common.util.FacadeInterceptor.intercept(FacadeInterceptor.java:58)
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474.submitModel()
at com.indemand.royalty.organization.OrganizationFacade.submitModel(OrganizationFacade.java:392)
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474.CGLIB$$ACCESS_submitModel_32()
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474$$FastClassByCGLIB$$d404b301.invoke()
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:201)
at com.indemand.common.util.FacadeInterceptor.intercept(FacadeInterceptor.java:58)
at com.indemand.royalty.organization.OrganizationFacade$$EnhancerByCGLIB$$99abb474.submitModel()
at com.indemand.indabmaint.application.orgmaint.OrgMaintenanceSaveAction.execute(OrgMaintenanceSaveAction.java:45)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at com.indemand.indabmaint.architecture.IndabMaintRequestProcessor.processActionPerform(IndabMaintRequestProcessor.java:59)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: [VC57]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 9 (""): Data type 0x32 is unknown.
at com.inet.tds.a.a(Unknown Source)
at com.inet.tds.c.new(Unknown Source)
at com.inet.tds.c.executeUpdate(Unknown Source)
at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:22)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:714)


xxx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate 2 data save issue
 
Similar Threads
BeanUtils.populate
BeanUtils.populate
logic:iterate pls any body help me
Date difference, with the table containing null values for date
i got same exception