-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: don't flush the Session after an exception occurs
PostPosted: Thu May 03, 2007 11:02 am 
Newbie

Joined: Thu May 03, 2007 10:48 am
Posts: 2
We are migrating WSAD 5.1 to RAD 6.1 server. In WSAD 5.1 all mapping are working fine.Reading, Upadateing existing records are working fine. But i am facing the problem in RAD 6.1 while inserting new record in to table. i am getting below error

we are using Hhibernate3.jar

The mapping file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
<class name="com.badcock.cpis.business.manufacturer.MiManufacturer2Department" table="MIMANUFACTURER_DEPARTMENT">

<id name="id" column="ID">
<generator class="native" />
</id>

<property name="potentialOrderTotal" column="POTENTIAL_ORDER_TOTAL" length="6" />
<property name="createDate" column="CREATEDATE" length="26" not-null="true" />
<property name="createdBy" column="CREATEDBY" length="250" not-null="true" />
<property name="updateDate" column="UPDATEDATE" length="26" not-null="true" />
<property name="updatedBy" column="UPDATEDBY" length="250" not-null="true" />

<many-to-one name="miManufacturer" column="MI_MANUFACTURER_ID" index="MI_MANUFACTURER_IDX" foreign-key="FK9C9583649744C9C3"/>
<many-to-one name="department" column="DEPARTMENT_ID" index="DEPARTMENT_IDX" foreign-key="FK9C95836470E432A1" />
</class>

</hibernate-mapping>

Erro:

[5/1/07 15:50:32:515 EDT] 00000023 SystemOut O 2007-05-01 15:50:32,453 DEBUG ManagePotentialOrderTotalAction:88 In Actionsubmit
[5/1/07 15:50:32:609 EDT] 00000023 SystemOut O 2007-05-01 15:50:32,515 DEBUG ServiceLocator:158 Using home interface for ejb/com/badcock/cpis/business/manufacturer/MiManufacturer2DepartmentServiceFacadeHome from ServiceLocator cache.
[5/1/07 15:50:32:687 EDT] 00000023 SystemOut O 2007-05-01 15:50:32,609 DEBUG BaseBusinessInvocationHandler:75 Preparing to call method getMiManufacturer2DepartmentById with arguments: argument 0 = 10argument 1 = T
[5/1/07 15:50:32:796 EDT] 00000023 SystemOut O 2007-05-01 15:50:32,703 DEBUG BaseBusinessInvocationHandler:150 Ready to commit and close....
[5/1/07 15:50:32:875 EDT] 00000023 SystemOut O 2007-05-01 15:50:32,796 DEBUG BaseBusinessInvocationHandler:154 HibernateDAO = com.badcock.persistence.hibernate.HibernateDAOImpl@47e047e0
[5/1/07 15:50:32:953 EDT] 00000023 SystemOut O 2007-05-01 15:50:32,875 DEBUG BaseBusinessInvocationHandler:158 Transaction = org.hibernate.transaction.CMTTransaction@3dbe3dbe
[5/1/07 15:50:33:031 EDT] 00000023 SystemOut O 2007-05-01 15:50:32,953 DEBUG BaseBusinessInvocationHandler:162 Transaction.commit() called.
[5/1/07 15:50:33:109 EDT] 00000023 SystemOut O 2007-05-01 15:50:33,031 DEBUG BaseBusinessInvocationHandler:172 Session closed.
[5/1/07 15:50:33:203 EDT] 00000023 SystemOut O 2007-05-01 15:50:33,140 DEBUG ServiceLocator:158 Using home interface for ejb/com/badcock/cpis/business/manufacturer/MiManufacturer2DepartmentServiceFacadeHome from ServiceLocator cache.
[5/1/07 15:50:33:281 EDT] 00000023 SystemOut O 2007-05-01 15:50:33,203 DEBUG BaseBusinessInvocationHandler:75 Preparing to call method saveMiManufacturer2Department with arguments: argument 0 = com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentDTO@ba40ba4
[5/1/07 15:50:33:765 EDT] 00000023 JDBCException W org.apache.commons.logging.impl.Jdk14Logger warn SQL Error: 0, SQLState: HY000
[5/1/07 15:50:33:875 EDT] 00000023 JDBCException E org.apache.commons.logging.impl.Jdk14Logger error [IBM][SQLServer JDBC Driver]Unsupported method: Connection.prepareStatement
[5/1/07 15:50:34:437 EDT] 00000023 SystemOut O 2007-05-01 15:50:33,890 FATAL BaseBusinessInvocationHandler:105 java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceInvocationHandler.callBusinessMethod(MiManufacturer2DepartmentServiceInvocationHandler.java:30)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:78)
at $Proxy1.saveMiManufacturer2Department(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceFacadeBean.java:59)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.saveMiManufacturer2Department(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:70)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.saveMiManufacturer2Department(_MiManufacturer2DepartmentServiceFacade_Stub.java:275)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceDelegate.java:81)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.getMiManufacturer2Department(ManagePotentialOrderTotalAction.java:229)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by:
org.hibernate.exception.GenericJDBCException: could not insert: [com.badcock.cpis.business.manufacturer.MiManufacturer2Department]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1986)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2405)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:37)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:269)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:502)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:490)
at com.badcock.persistence.hibernate.HibernateDAOImpl.save(HibernateDAOImpl.java:126)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentDaoHibernateImpl.saveMiManufacturer2Department(MiManufacturer2DepartmentDaoHibernateImpl.java:161)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceController.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceController.java:46)
... 45 more
Caused by:
java.sql.SQLException: [IBM][SQLServer JDBC Driver]Unsupported method: Connection.prepareStatement
at com.ibm.websphere.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.ibm.websphere.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.ibm.websphere.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
at com.ibm.websphere.jdbcx.base.BasePooledConnection.prepareStatement(Unknown Source)
at com.ibm.websphere.jdbcx.base.BaseConnectionWrapper.prepareStatement(Unknown Source)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.pmiPrepareStatement(WSJdbcConnection.java:3977)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:3851)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.hibernate.util.GetGeneratedKeysHelper.prepareStatement(GetGeneratedKeysHelper.java:45)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:435)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:93)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1948)
... 61 more
[5/1/07 15:50:34:531 EDT] 00000023 SystemOut O 2007-05-01 15:50:34,437 DEBUG BaseBusinessInvocationHandler:150 Ready to commit and close....
[5/1/07 15:50:34:703 EDT] 00000023 SystemOut O 2007-05-01 15:50:34,531 DEBUG BaseBusinessInvocationHandler:154 HibernateDAO = com.badcock.persistence.hibernate.HibernateDAOImpl@47e047e0
[5/1/07 15:50:34:796 EDT] 00000023 SystemOut O 2007-05-01 15:50:34,703 DEBUG BaseBusinessInvocationHandler:158 Transaction = org.hibernate.transaction.CMTTransaction@5d185d18
[5/1/07 15:50:34:890 EDT] 00000023 AssertionFail E org.apache.commons.logging.impl.Jdk14Logger error an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at org.hibernate.transaction.CMTTransaction.commit(CMTTransaction.java:64)
at com.badcock.persistence.hibernate.HibernateDAOImpl.commit(HibernateDAOImpl.java:94)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.commitAndClose(BaseBusinessInvocationHandler.java:161)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.cleanup(BaseBusinessInvocationHandler.java:138)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:109)
at $Proxy1.saveMiManufacturer2Department(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceFacadeBean.java:59)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.saveMiManufacturer2Department(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:70)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.saveMiManufacturer2Department(_MiManufacturer2DepartmentServiceFacade_Stub.java:275)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceDelegate.java:81)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.getMiManufacturer2Department(ManagePotentialOrderTotalAction.java:229)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

[5/1/07 15:50:35:046 EDT] 00000023 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "saveMiManufacturer2Department" on bean "BeanId(CPIS_Java_Enterprise#CPIS_Java_Business.jar#MiManufacturer2DepartmentServiceFacade, null)". Exception data: org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at org.hibernate.transaction.CMTTransaction.commit(CMTTransaction.java:64)
at com.badcock.persistence.hibernate.HibernateDAOImpl.commit(HibernateDAOImpl.java:94)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.commitAndClose(BaseBusinessInvocationHandler.java:161)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.cleanup(BaseBusinessInvocationHandler.java:138)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:109)
at $Proxy1.saveMiManufacturer2Department(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceFacadeBean.java:59)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.saveMiManufacturer2Department(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:70)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.saveMiManufacturer2Department(_MiManufacturer2DepartmentServiceFacade_Stub.java:275)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceDelegate.java:81)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.getMiManufacturer2Department(ManagePotentialOrderTotalAction.java:229)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

[5/1/07 15:50:35:640 EDT] 00000023 SystemOut O 2007-05-01 15:50:35,359 ERROR MiManufacturer2DepartmentServiceDelegate:93 java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:214)
at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:690)
at javax.rmi.CORBA.Util.wrapException(Util.java:296)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.saveMiManufacturer2Department(_MiManufacturer2DepartmentServiceFacade_Stub.java:285)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceDelegate.java:81)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.getMiManufacturer2Department(ManagePotentialOrderTotalAction.java:229)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by:
java.rmi.RemoteException: ; nested exception is:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at org.hibernate.transaction.CMTTransaction.commit(CMTTransaction.java:64)
at com.badcock.persistence.hibernate.HibernateDAOImpl.commit(HibernateDAOImpl.java:94)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.commitAndClose(BaseBusinessInvocationHandler.java:161)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.cleanup(BaseBusinessInvocationHandler.java:138)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:109)
at $Proxy1.saveMiManufacturer2Department(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.saveMiManufacturer2Department(MiManufacturer2DepartmentServiceFacadeBean.java:59)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.saveMiManufacturer2Department(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:70)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.saveMiManufacturer2Department(_MiManufacturer2DepartmentServiceFacade_Stub.java:275)
... 35 more
Caused by:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
... 52 more
[5/1/07 15:50:35:703 EDT] 00000023 SystemOut O 2007-05-01 15:50:35,640 DEBUG ManagePotentialOrderTotalAction:126 SystemException Occurred-->null
[5/1/07 15:50:35:781 EDT] 00000023 SystemOut O 2007-05-01 15:50:35,703 DEBUG ServiceLocator:158 Using home interface for ejb/com/badcock/cpis/business/manufacturer/MiManufacturer2DepartmentServiceFacadeHome from ServiceLocator cache.
[5/1/07 15:50:35:859 EDT] 00000023 SystemOut O 2007-05-01 15:50:35,781 DEBUG BaseBusinessInvocationHandler:75 Preparing to call method getMiManufacturer2DepartmentById with arguments: argument 0 = 10
[5/1/07 15:50:35:921 EDT] 00000023 AssertionFail E org.apache.commons.logging.impl.Jdk14Logger error an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:954)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1099)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.badcock.persistence.hibernate.HibernateDAOImpl.findByQuery(HibernateDAOImpl.java:165)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentDaoHibernateImpl.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentDaoHibernateImpl.java:68)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceController.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceController.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceInvocationHandler.callBusinessMethod(MiManufacturer2DepartmentServiceInvocationHandler.java:30)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:78)
at $Proxy1.getMiManufacturer2DepartmentById(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceFacadeBean.java:75)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.getMiManufacturer2DepartmentById(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:152)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.getMiManufacturer2DepartmentById(_MiManufacturer2DepartmentServiceFacade_Stub.java:330)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceDelegate.java:40)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:141)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

[5/1/07 15:50:36:203 EDT] 00000023 SystemOut O 2007-05-01 15:50:36,046 FATAL BaseBusinessInvocationHandler:105 java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceInvocationHandler.callBusinessMethod(MiManufacturer2DepartmentServiceInvocationHandler.java:30)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:78)
at $Proxy1.getMiManufacturer2DepartmentById(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceFacadeBean.java:75)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.getMiManufacturer2DepartmentById(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:152)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.getMiManufacturer2DepartmentById(_MiManufacturer2DepartmentServiceFacade_Stub.java:330)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceDelegate.java:40)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:141)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:954)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1099)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.badcock.persistence.hibernate.HibernateDAOImpl.findByQuery(HibernateDAOImpl.java:165)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentDaoHibernateImpl.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentDaoHibernateImpl.java:68)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceController.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceController.java:26)
... 44 more
[5/1/07 15:50:36:281 EDT] 00000023 SystemOut O 2007-05-01 15:50:36,203 DEBUG BaseBusinessInvocationHandler:150 Ready to commit and close....
[5/1/07 15:50:36:359 EDT] 00000023 SystemOut O 2007-05-01 15:50:36,281 DEBUG BaseBusinessInvocationHandler:154 HibernateDAO = com.badcock.persistence.hibernate.HibernateDAOImpl@47e047e0
[5/1/07 15:50:36:421 EDT] 00000023 SystemOut O 2007-05-01 15:50:36,359 DEBUG BaseBusinessInvocationHandler:158 Transaction = org.hibernate.transaction.CMTTransaction@5d185d18
[5/1/07 15:50:36:500 EDT] 00000023 AssertionFail E org.apache.commons.logging.impl.Jdk14Logger error an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at org.hibernate.transaction.CMTTransaction.commit(CMTTransaction.java:64)
at com.badcock.persistence.hibernate.HibernateDAOImpl.commit(HibernateDAOImpl.java:94)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.commitAndClose(BaseBusinessInvocationHandler.java:161)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.cleanup(BaseBusinessInvocationHandler.java:138)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:109)
at $Proxy1.getMiManufacturer2DepartmentById(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceFacadeBean.java:75)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.getMiManufacturer2DepartmentById(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:152)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.getMiManufacturer2DepartmentById(_MiManufacturer2DepartmentServiceFacade_Stub.java:330)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceDelegate.java:40)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:141)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

[5/1/07 15:50:37:171 EDT] 00000023 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "getMiManufacturer2DepartmentById" on bean "BeanId(CPIS_Java_Enterprise#CPIS_Java_Business.jar#MiManufacturer2DepartmentServiceFacade, null)". Exception data: org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at org.hibernate.transaction.CMTTransaction.commit(CMTTransaction.java:64)
at com.badcock.persistence.hibernate.HibernateDAOImpl.commit(HibernateDAOImpl.java:94)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.commitAndClose(BaseBusinessInvocationHandler.java:161)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.cleanup(BaseBusinessInvocationHandler.java:138)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:109)
at $Proxy1.getMiManufacturer2DepartmentById(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceFacadeBean.java:75)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.getMiManufacturer2DepartmentById(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:152)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.getMiManufacturer2DepartmentById(_MiManufacturer2DepartmentServiceFacade_Stub.java:330)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceDelegate.java:40)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:141)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

[5/1/07 15:50:38:046 EDT] 00000023 SystemOut O 2007-05-01 15:50:37,484 ERROR MiManufacturer2DepartmentServiceDelegate:52 java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:214)
at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:690)
at javax.rmi.CORBA.Util.wrapException(Util.java:296)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.getMiManufacturer2DepartmentById(_MiManufacturer2DepartmentServiceFacade_Stub.java:340)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceDelegate.java:40)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:141)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by:
java.rmi.RemoteException: ; nested exception is:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at org.hibernate.transaction.CMTTransaction.commit(CMTTransaction.java:64)
at com.badcock.persistence.hibernate.HibernateDAOImpl.commit(HibernateDAOImpl.java:94)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.commitAndClose(BaseBusinessInvocationHandler.java:161)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.cleanup(BaseBusinessInvocationHandler.java:138)
at com.badcock.cpis.business.common.BaseBusinessInvocationHandler.invoke(BaseBusinessInvocationHandler.java:109)
at $Proxy1.getMiManufacturer2DepartmentById(Unknown Source)
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceFacadeBean.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceFacadeBean.java:75)
at com.badcock.cpis.business.manufacturer.EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.getMiManufacturer2DepartmentById(EJSRemoteStatelessMiManufacturer2DepartmentService_6a5acb82.java:152)
at com.badcock.cpis.business.manufacturer._MiManufacturer2DepartmentServiceFacade_Stub.getMiManufacturer2DepartmentById(_MiManufacturer2DepartmentServiceFacade_Stub.java:330)
... 34 more
Caused by:
org.hibernate.AssertionFailure: null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department entry (don't flush the Session after an exception occurs)
... 51 more
[5/1/07 15:50:38:093 EDT] 00000023 RequestProces W org.apache.commons.logging.impl.Jdk14Logger warn Unhandled Exception thrown: class com.badcock.exceptions.SystemException
[5/1/07 15:50:38:140 EDT] 00000023 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: action. Exception thrown : javax.servlet.ServletException
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
---- Begin backtrace for Nested Throwables
com.badcock.exceptions.SystemException
at com.badcock.cpis.business.manufacturer.MiManufacturer2DepartmentServiceDelegate.getMiManufacturer2DepartmentById(MiManufacturer2DepartmentServiceDelegate.java:54)
at com.badcock.cpis.presentation.manufacturer.ManagePotentialOrderTotalAction.execute(ManagePotentialOrderTotalAction.java:141)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.badcock.common.servlets.filters.NoCacheFilter.doFilter(NoCacheFilter.java:41)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilte


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 04, 2007 3:49 pm 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Here is the error you should look at:
Code:
null id in com.badcock.cpis.business.manufacturer.MiManufacturer2Department

What does your MiManufacturer2Department class look like?

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 04, 2007 5:36 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
It seems like the problem is this one:

Quote:
java.sql.SQLException: [IBM][SQLServer JDBC Driver]Unsupported method: Connection.prepareStatement


You may want to try a different driver that supports prepared statements. A quick search in the docs didn't turn up any way to turn off prepared statements in Hibernate, so it seems that you have to use a driver that supports them (shouldn't be hard to find one...).

_________________
nathan


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 09, 2007 11:03 am 
Newbie

Joined: Thu May 03, 2007 10:48 am
Posts: 2
Thanks for nathanmoon and batman. I resloved this bug. In WAS 5.1.2 serevri used hibernate3.jar file its works fine. But its giving error in WAS 6.1 server while we are doing hibernate insert.

Resolution: Downloaded new hibernate3.jar file it fixes this proble.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.