-->
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.  [ 1 post ] 
Author Message
 Post subject: org.hibernate.MappingException: Unknown entity on StoredProc
PostPosted: Thu Dec 14, 2006 8:28 pm 
Newbie

Joined: Thu Dec 14, 2006 6:45 pm
Posts: 1
I am getting the Error: org.hibernate.MappingException: Unknown entity, when trying to invoke a Stored Procedure. I have seen various manifestations of this problem in other postings but no specific correction that has worked for me.

Any help you can provide is greatly appreciated.

Hibernate version: 3.0.5 & 3.2

Mapping documents:
Hibernate Configuration

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "spring-beans.dtd">
<beans>
<!-- HIBERNATE RESOURCES -->
<bean id="oeAcknowledgementResponseDAOTemplate" class="com.aw.qtc.service.common.dao.OEAcknowledgementResponseDAO">
<property name="sessionFactory">
<ref local="OESessionFactory" />
</property>
</bean>
<bean id="jndiEnvironment" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" singleton="true">
<property name="targetObject">
<bean id="jndiEnvPropertyFactory" class="com.aw.common.config.JndiEnvPropertyFactory">
<property name="initialContextFactory">
<value>com.ibm.websphere.naming.WsnInitialContextFactory</value>
</property>
</bean>
</property>
<property name="targetMethod">
<value>getProperties</value>
</property>
</bean>
<!-- ADDED FOR OE STORED PROCEDURE ACCESS -->
<bean id="OESessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref local="QTC-OEDataSource" />
</property>
<property name="mappingResources">
<list>
<!-- Reference Objects -->
<value>com/aw/qtc/service/common/dao/OEAcknowledgementResponseDAO.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.jdbc.batch_size">0</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">false</prop>
<prop key="hibernate.generate_statistics">false</prop>
<prop key="hibernate.use_outer_join">false</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<prop key="hibernate.cache.use_second_level_cache">false</prop>
</props>
</property>
</bean>
<!-- Data Sources -->
<bean id="QTC-OEDataSource" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true">
<property name="jndiName">
<value>java:comp/env/jdbc/QTC-OEDataSource</value>
</property>
<property name="jndiEnvironment">
<ref bean="jndiEnvironment" />
</property>
</bean>
</beans>


OEAcknowledgementResponseDAO.hbm.xml contents
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<sql-query name="sendOeAcknowledgement_SP" callable="true">
<return alias="OEAcknowledgement" class="com.aw.qtc.service.common.dao.OEAcknowledgementResponseDAO">
<return-property name="status" column="Status"/>
<return-property name="errorText" column="ErrorText"/>
</return>
{ ? = call spSendOEAckPortal(:AWNumber,:PMA,:OrderNumber,:EmailAddress) }
</sql-query>
</hibernate-mapping>


Here is my DAO Code:
package com.aw.qtc.service.common.dao;
import org.apache.commons.lang.builder.CompareToBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.hibernate.Query;
import org.hibernate.Session;
import com.aw.common.log.LogServices;
import com.aw.common.log.LogServicesFactory;
import com.aw.qtc.common.domain.acknowledgement.OEAcknowledgement;

public class OEAcknowledgementResponseDAO extends AbstractDAO {
private static final transient LogServices LOG = LogServicesFactory.getInstance().createLogServices(OEAcknowledgementResponseDAO.class);
private String status;
private String errorText;
public OEAcknowledgementResponseDAO sendOEAcknowledgement(OEAcknowledgement anOEAcknowledgement) {
if (LOG.isDebugEnabled()) {
LOG.debug("OEAcknowledgementResponseDAO >> sendOEAcknowledgement : Start");
}
OEAcknowledgementResponseDAO result = null;
if (anOEAcknowledgement != null) {
Session currentSession = this.getSession();
try {
String SP_Name = "sendOeAcknowledgement_SP";
Query oeQuery = currentSession.getNamedQuery(SP_Name);
if (LOG.isDebugEnabled()) {
LOG.debug("OEAcknowledgementResponseDAO >> Value of OE Query = [" + oeQuery + "]");
}
if (oeQuery != null) {
oeQuery.setParameter("AWNumber", anOEAcknowledgement.getDealerNumber());
oeQuery.setParameter("PMA", anOEAcknowledgement.getPmaNumber());
oeQuery.setParameter("OrderNumber", anOEAcknowledgement.getOrderNumber());
oeQuery.setParameter("EmailAddress", anOEAcknowledgement.getEmailAddress());
if (LOG.isDebugEnabled()) {
LOG.debug("OEAcknowledgementResponseDAO >> About to Call SP = [" + SP_Name + "]");
}
result = (OEAcknowledgementResponseDAO) oeQuery.uniqueResult();
if (LOG.isDebugEnabled()) {
LOG.debug("sendOEAcknowledgement : Received OE Acknowledgement Response from SP [" + SP_Name + "] = [" + result + "]");
}
}
currentSession.flush();
if (result == null) {
result = new OEAcknowledgementResponseDAO();
result.setStatus("NO.RESULTS.RETURNED");
result.setErrorText("No results returned from Stored Procedure: [" + SP_Name + "]");
}
} finally {
this.releaseSession(currentSession);
}
}
return result;
}
/**
* @see java.lang.Comparable#compareTo(Object)
*/
public int compareTo(Object object) {
OEAcknowledgementResponseDAO myClass = (OEAcknowledgementResponseDAO) object;
return new CompareToBuilder().append(this.status, myClass.status).append(this.errorText, myClass.errorText).toComparison();
}
/**
* @see java.lang.Object#equals(Object)
*/
public boolean equals(Object object) {
if (!(object instanceof OEAcknowledgementResponseDAO)) {
return false;
}
OEAcknowledgementResponseDAO rhs = (OEAcknowledgementResponseDAO) object;
return new EqualsBuilder().appendSuper(super.equals(object)).append(this.status, rhs.status).append(this.errorText, rhs.errorText).isEquals();
}
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return new HashCodeBuilder(-1386823521, -99656567).appendSuper(super.hashCode()).append(this.status).append(this.errorText).toHashCode();
}
/**
* @return Returns the errorText.
*/
public String getErrorText() {
return errorText;
}
/**
* @param errorText The errorText to set.
*/
public void setErrorText(String errorText) {
this.errorText = errorText;
}
/**
* @return Returns the status.
*/
public String getStatus() {
return status;
}
/**
* @param status The status to set.
*/
public void setStatus(String status) {
this.status = status;
}
}


Full stack trace of any exception that occurs:
The following exception was logged org.hibernate.MappingException: Unknown entity: com.aw.qtc.service.common.dao.OEAcknowledgementResponseDAO
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:548)
at org.hibernate.loader.custom.sql.SQLQueryReturnProcessor.getSQLLoadable(SQLQueryReturnProcessor.java:312)
at org.hibernate.loader.custom.sql.SQLQueryReturnProcessor.processRootReturn(SQLQueryReturnProcessor.java:353)
at org.hibernate.loader.custom.sql.SQLQueryReturnProcessor.processReturn(SQLQueryReturnProcessor.java:332)
at org.hibernate.loader.custom.sql.SQLQueryReturnProcessor.process(SQLQueryReturnProcessor.java:148)
at org.hibernate.loader.custom.sql.SQLCustomQuery.<init>(SQLCustomQuery.java:64)
at org.hibernate.engine.query.NativeSQLQueryPlan.<init>(NativeSQLQueryPlan.java:43)
at org.hibernate.engine.query.QueryPlanCache.getNativeSQLQueryPlan(QueryPlanCache.java:114)
at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:444)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:351)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at com.aw.qtc.service.common.util.OEHibernateDAOFactory.getOEAcknowledgementResponseDAOTemplate(OEHibernateDAOFactory.java:50)
at com.aw.qtc.common.service.domain.QTCServicesImpl.sendOEAcknowledgement(QTCServicesImpl.java:252)
at com.aw.qtc.common.service.QTCServicesEJB.sendOEAcknowledgement(QTCServicesEJB.java:203)
at com.aw.qtc.common.service.EJSRemoteStatelessQTCServiceEJB_be792b9d.sendOEAcknowledgement(EJSRemoteStatelessQTCServiceEJB_be792b9d.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
at $Proxy2.sendOEAcknowledgement(Unknown Source)
at com.aw.qtc.common.service._QTCServicesEJBRemote_Stub.sendOEAcknowledgement(_QTCServicesEJBRemote_Stub.java:877)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:103)
at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:75)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)
at $Proxy0.sendOEAcknowledgement(Unknown Source)
at com.aw.common.service.acknowledgement.test.OEAcknowledgementTests.testValidOEAcknowledgement(OEAcknowledgementTests.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:124)
at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:124)
at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
.
org.hibernate.MappingException: Unknown entity: com.aw.qtc.service.common.dao.OEAcknowledgementResponseDAO
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:548)
at org.hibernate.loader.custom.sql.SQLQueryReturnProcessor.getSQLLoadable(SQLQueryReturnProcessor.java:312)
at org.hibernate.loader.custom.sql.SQLQueryReturnProcessor.processRootReturn(SQLQueryReturnProcessor.java:353)
at org.hibernate.loader.custom.sql.SQLQueryReturnProcessor.processReturn(SQLQueryReturnProcessor.java:332)
at org.hibernate.loader.custom.sql.SQLQueryReturnProcessor.process(SQLQueryReturnProcessor.java:148)
at org.hibernate.loader.custom.sql.SQLCustomQuery.<init>(SQLCustomQuery.java:64)
at org.hibernate.engine.query.NativeSQLQueryPlan.<init>(NativeSQLQueryPlan.java:43)
at org.hibernate.engine.query.QueryPlanCache.getNativeSQLQueryPlan(QueryPlanCache.java:114)
at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:444)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:351)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at com.aw.qtc.service.common.util.OEHibernateDAOFactory.getOEAcknowledgementResponseDAOTemplate(OEHibernateDAOFactory.java:50)
at com.aw.qtc.common.service.domain.QTCServicesImpl.sendOEAcknowledgement(QTCServicesImpl.java:252)
at com.aw.qtc.common.service.QTCServicesEJB.sendOEAcknowledgement(QTCServicesEJB.java:203)
at com.aw.qtc.common.service.EJSRemoteStatelessQTCServiceEJB_be792b9d.sendOEAcknowledgement(EJSRemoteStatelessQTCServiceEJB_be792b9d.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
at $Proxy2.sendOEAcknowledgement(Unknown Source)
at com.aw.qtc.common.service._QTCServicesEJBRemote_Stub.sendOEAcknowledgement(_QTCServicesEJBRemote_Stub.java:877)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:103)
at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:75)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)
at $Proxy0.sendOEAcknowledgement(Unknown Source)
at com.aw.common.service.acknowledgement.test.OEAcknowledgementTests.testValidOEAcknowledgement(OEAcknowledgementTests.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:124)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:124)
at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:124)
at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Name and version of the database you are using:
[12/14/06 16:38:50:623 CST] 0000002a SettingsFacto I RDBMS: Microsoft SQL Server, version: Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
May 3 2005 23:18:38
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: )

[12/14/06 16:38:50:653 CST] 0000002a SettingsFacto I JDBC driver: SQLServer, version: 3.60.8 (023718.010809.013912)


Debug level Hibernate log excerpt:
[12/14/06 18:20:32:227 CST] 0000002f WSRdbDataSour I DSRA8203I: Database product name : Microsoft SQL Server
[12/14/06 18:20:32:287 CST] 0000002f WSRdbDataSour I DSRA8204I: Database product version : Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
May 3 2005 23:18:38
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: )

[12/14/06 18:20:32:287 CST] 0000002f WSRdbDataSour I DSRA8205I: JDBC driver name : SQLServer
[12/14/06 18:20:32:307 CST] 0000002f WSRdbDataSour I DSRA8206I: JDBC driver version : 3.60.8 (023718.010809.013912)
[12/14/06 18:20:32:607 CST] 0000002f SettingsFacto I RDBMS: Microsoft SQL Server, version: Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
May 3 2005 23:18:38
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: )

[12/14/06 18:20:32:617 CST] 0000002f SettingsFacto I JDBC driver: SQLServer, version: 3.60.8 (023718.010809.013912)
[12/14/06 18:20:32:697 CST] 0000002f Dialect I Using dialect: org.hibernate.dialect.SQLServerDialect
[12/14/06 18:20:32:848 CST] 0000002f TransactionFa I Using default transaction strategy (direct JDBC transactions)
[12/14/06 18:20:32:868 CST] 0000002f TransactionMa I No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[12/14/06 18:20:32:968 CST] 0000002f SettingsFacto I Automatic flush during beforeCompletion(): disabled
[12/14/06 18:20:32:968 CST] 0000002f SettingsFacto I Automatic session close at end of transaction: disabled
[12/14/06 18:20:32:978 CST] 0000002f SettingsFacto I Scrollable result sets: enabled
[12/14/06 18:20:32:988 CST] 0000002f SettingsFacto I JDBC3 getGeneratedKeys(): enabled
[12/14/06 18:20:33:028 CST] 0000002f SettingsFacto I Connection release mode: on_close
[12/14/06 18:20:33:038 CST] 0000002f SettingsFacto I Default batch fetch size: 1
[12/14/06 18:20:33:038 CST] 0000002f SettingsFacto I Generate SQL with comments: disabled
[12/14/06 18:20:33:038 CST] 0000002f SettingsFacto I Order SQL updates by primary key: disabled
[12/14/06 18:20:33:248 CST] 0000002f SettingsFacto I Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[12/14/06 18:20:33:268 CST] 0000002f ASTQueryTrans I Using ASTQueryTranslatorFactory
[12/14/06 18:20:33:278 CST] 0000002f SettingsFacto I Query language substitutions: {}
[12/14/06 18:20:33:278 CST] 0000002f SettingsFacto I JPA-QL strict compliance: disabled
[12/14/06 18:20:33:338 CST] 0000002f SettingsFacto I Second-level cache: disabled
[12/14/06 18:20:33:348 CST] 0000002f SettingsFacto I Query cache: disabled
[12/14/06 18:20:33:378 CST] 0000002f SettingsFacto I Optimize cache for minimal puts: disabled
[12/14/06 18:20:33:378 CST] 0000002f SettingsFacto I Structured second-level cache entries: disabled
[12/14/06 18:20:33:518 CST] 0000002f SettingsFacto I Echoing all SQL to stdout
[12/14/06 18:20:33:528 CST] 0000002f SettingsFacto I Statistics: disabled
[12/14/06 18:20:33:528 CST] 0000002f SettingsFacto I Deleted entity synthetic identifier rollback: disabled
[12/14/06 18:20:33:538 CST] 0000002f SettingsFacto I Default entity-mode: pojo
[12/14/06 18:20:33:719 CST] 0000002f SessionFactor I building session factory
[12/14/06 18:20:33:749 CST] 0000002f SessionFactor I Not binding factory to JNDI, no JNDI name configured


Thanks again.


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

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.